File tree Expand file tree Collapse file tree 16 files changed +60
-36
lines changed
Expand file tree Collapse file tree 16 files changed +60
-36
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,13 @@ script:
5353 - docker pull darkmattercoder/qt-build:base-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH || true
5454 - travis_wait 180 docker build --pull --cache-from darkmattercoder/qt-build:base-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH=$QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --target=base -t darkmattercoder/qt-build:base-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH . || travis_terminate 1;
5555 - travis_wait 180 docker build --pull --cache-from darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH=$QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --target=builder -t darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH . || travis_terminate 1;
56- - travis_wait 180 docker build --pull --cache-from darkmattercoder/qt-build:qt -$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH=$QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --target=qt -t darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH . || travis_terminate 1;
56+ - travis_wait 180 docker build --pull --cache-from darkmattercoder/qt-build:builder -$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH=$QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --target=qt -t darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH . || travis_terminate 1;
5757 - tests/generate_tests.py || travis_terminate 1;
5858 - docker run --rm -u $UID -v $PWD/tests:/var/build darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH build || travis_terminate 1;
5959 - docker run --rm -u $UID -v $PWD/tests:/var/build darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH /var/build/run-tests.sh /var/build/build || travis_terminate 1;
6060 - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker push darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH || travis_terminate 1; fi'
6161 - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker push darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH || travis_terminate 1; fi'
6262 - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker push darkmattercoder/qt-build:base-$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH || travis_terminate 1; fi'
63- - python ci/tag_image.py darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH || travis_terminate 1;
6463 - ' if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then python ci/push_images.py darkmattercoder/qt-build:$QT_VERSION_MAJOR.$QT_VERSION_MINOR.$QT_VERSION_PATCH; fi'
6564jobs :
6665 include :
Original file line number Diff line number Diff line change @@ -120,7 +120,15 @@ ENV ENTRYPOINT_DIR=/usr/local/bin
120120ENV APP_BUILDDIR=/var/build
121121
122122COPY --from=builder ${QT_PREFIX} ${QT_PREFIX}
123- COPY --from=builder /opt/extra-dependencies/ /
123+
124+ # the next copy statement failed often. My only guess is, that the extra dependencies are not existent and somehow that
125+ # triggers a failure here.... A workaround for similar issues is to put an empty run statement in between: https://github.com/moby/moby/issues/37965
126+ RUN true
127+ COPY --from=builder /opt/extra-dependencies /opt/extra-dependencies
128+
129+ # for modifications during configuration
130+ ENV LD_LIBRARY_PATH=/opt/extra-dependencies/lib:${LD_LIBRARY_PATH}
131+
124132# the next copy statement failed often. My only guess is, that the extra dependencies are not existent and somehow that
125133# triggers a failure here.... A workaround for similar issues is to put an empty run statement in between: https://github.com/moby/moby/issues/37965
126134RUN true
Original file line number Diff line number Diff line change 11#! /bin/bash
22# Call this script like so:
3- # ./build-dockerfile-local.sh 5 6 0 everywhere-opensource 2 8
3+ # ./build-dockerfile-local.sh 5 6 0 official_releases everywhere-opensource 2 8
4+ set -e
45QT_VERSION_MAJOR=$1
56QT_VERSION_MINOR=$2
67QT_VERSION_PATCH=$3
7- QT_TARBALL_NAMING_SCHEME=$4
8- CI_BUILD=$5
9- CORE_COUNT=$6
10- PROXY=$7
8+ QT_DOWNLOAD_BRANCH=$4
9+ QT_TARBALL_NAMING_SCHEME=$5
10+ CI_BUILD=$6
11+ CORE_COUNT=$7
12+ PROXY=$8
13+ # base
14+ docker build --pull --cache-from darkmattercoder/qt-build:base-$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH=$QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --build-arg PROXY=$PROXY --target=base -t darkmattercoder/qt-build:base-$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH .
1115# builder
12- docker build --pull --build- arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --build-arg PROXY=$PROXY --target=builder -t darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH .
16+ docker build --pull --cache-from darkmattercoder/qt- build:builder- $QT_VERSION_MAJOR . $QT_VERSION_MINOR . $QT_VERSION_PATCH --build- arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH= $QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --build-arg PROXY=$PROXY --target=builder -t darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH .
1317# qt
14- docker build --pull --cache-from darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --target=qt -t darkmattercoder/qt-build:$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH .
18+ docker build --pull --cache-from darkmattercoder/qt-build:builder-$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH --build-arg QT_VERSION_MAJOR=$QT_VERSION_MAJOR --build-arg QT_VERSION_MINOR=$QT_VERSION_MINOR --build-arg QT_VERSION_PATCH=$QT_VERSION_PATCH --build-arg QT_DOWNLOAD_BRANCH= $QT_DOWNLOAD_BRANCH --build-arg QT_TARBALL_NAMING_SCHEME=$QT_TARBALL_NAMING_SCHEME --build-arg CI_BUILD=$CI_BUILD --build-arg CORE_COUNT=$CORE_COUNT --target=qt -t darkmattercoder/qt-build:$QT_VERSION_MAJOR .$QT_VERSION_MINOR .$QT_VERSION_PATCH .
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ make test > /dev/null 2>&1 || make test
1414make install > /dev/null 2>&1 || make install
1515cd ..
1616OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
17- mkdir /opt/extra-dependencies/opt
18- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
17+ mkdir -p /opt/extra-dependencies/lib
18+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
19+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ make test > /dev/null 2>&1 || make test
1616make install > /dev/null 2>&1 || make install
1717cd ..
1818OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../../qt-everywhere-opensource-src-5.6.1/configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
19- mkdir /opt/extra-dependencies/opt
20- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
19+ mkdir -p /opt/extra-dependencies/lib
20+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
21+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ make test > /dev/null 2>&1 || make test
1414make install > /dev/null 2>&1 || make install
1515cd ..
1616OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
17- mkdir /opt/extra-dependencies/opt
18- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
17+ mkdir -p /opt/extra-dependencies/lib
18+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
19+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ make test > /dev/null 2>&1 || make test
1414make install > /dev/null 2>&1 || make install
1515cd ..
1616OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
17- mkdir /opt/extra-dependencies/opt
18- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
17+ mkdir -p /opt/extra-dependencies/lib
18+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
19+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ make test > /dev/null 2>&1 || make test
1414make install > /dev/null 2>&1 || make install
1515cd ..
1616OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
17- mkdir /opt/extra-dependencies/opt
18- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
17+ mkdir -p /opt/extra-dependencies/lib
18+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
19+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ make test > /dev/null 2>&1 || make test
1414make install > /dev/null 2>&1 || make install
1515cd ..
1616OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
17- mkdir /opt/extra-dependencies/opt
18- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
17+ mkdir -p /opt/extra-dependencies/lib
18+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
19+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ make test > /dev/null 2>&1 || make test
1414make install > /dev/null 2>&1 || make install
1515cd ..
1616OPENSSL_LIBS=' -L/opt/openssl_build_stable/lib -lssl -lcrypto' ../configure -prefix $QT_PREFIX -opensource -confirm-license -nomake examples -nomake tests -qt-xcb -openssl-linked -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib
17- mkdir /opt/extra-dependencies/opt
18- cp -r /opt/openssl_build_stable /opt/extra-dependencies/opt
17+ mkdir -p /opt/extra-dependencies/lib
18+ cp -r /opt/openssl_build_stable /opt/extra-dependencies
19+ ln -s /opt/extra-dependencies/openssl_build_stable/lib/* /opt/extra-dependencies/lib
You can’t perform that action at this time.
0 commit comments