|
@@ -5,8 +5,10 @@ ADD . /opt/open62541
|
|
# Get all the git tags to make sure we detect the correct version with git describe
|
|
# Get all the git tags to make sure we detect the correct version with git describe
|
|
WORKDIR /opt/open62541
|
|
WORKDIR /opt/open62541
|
|
RUN git remote add github-upstream https://github.com/open62541/open62541.git
|
|
RUN git remote add github-upstream https://github.com/open62541/open62541.git
|
|
-RUN git fetch --tags github-upstream
|
|
|
|
-RUN git submodule update --init --recursive
|
|
|
|
|
|
+RUN git fetch -f --tags github-upstream
|
|
|
|
+# Ignore error here. This always fails on Docker Cloud. It's fine there because the submodule is alread initialized. See also:
|
|
|
|
+# https://stackoverflow.com/questions/58690455/how-to-correctly-initialize-git-submodules-in-dockerfile-for-docker-cloud
|
|
|
|
+RUN git submodule update --init --recursive || true
|
|
|
|
|
|
WORKDIR /opt/open62541/build
|
|
WORKDIR /opt/open62541/build
|
|
RUN cmake -DBUILD_SHARED_LIBS=ON \
|
|
RUN cmake -DBUILD_SHARED_LIBS=ON \
|