Commit 960d1ac8 authored by Yunus Sevinchan's avatar Yunus Sevinchan
Browse files

Fix failing docker image

parent 58e313e4
Loading
Loading
Loading
Loading
+20 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ variables:
  # counterpart (deployed from the ci_test stage for testing)
  UTOPIA_IMAGE_NAME: ccees/utopia
  UTOPIA_IMAGE_REMOTE_URL: https://gitlab.com/utopia-project/utopia.git
  UTOPIA_IMAGE_BRANCH: master

  UTOPIA_DEV_IMAGE_TAG: dev
  UTOPIA_DEV_IMAGE_CHECKOUT: master
@@ -112,6 +113,7 @@ image: ${BASE_IMAGE}
  variables:
    DOCKER_DRIVER: overlay2
  before_script:
    - docker info
    - $DOCKER_HUB_LOGIN


@@ -590,9 +592,25 @@ pages:
    url: https://docs.utopia-project.org/


deploy:dockerhub-latest:
deploy:dockerhub:
  extends: .dind
  stage: deploy
  # Speed up pipeline by requiring only test jobs to complete, not docs:build.
  # Need to specify them all individually to not trigger artifacts download.
  needs:
    - job: test:core
      artifacts: false
    - job: test:dataio
      artifacts: false
    - job: test:cli
      artifacts: false
    - job: test:models
      artifacts: false
    - job: test:link_build_tree
      artifacts: false
    - job: test:link_install_tree
      artifacts: false
  # Should always run on master and optionally via CI/CD variable
  rules:
    - if: '$DEPLOY_DOCKER_IMAGE == "true"'
      when: always
@@ -603,7 +621,7 @@ deploy:dockerhub-latest:
    - docker build -f docker/utopia.dockerfile
                   --build-arg BASE_IMAGE=$BASE_IMAGE
                   --build-arg PROCNUM=$CPUS_DIND
                   --build-arg GIT_CHECKOUT=master
                   --build-arg GIT_CHECKOUT=$UTOPIA_IMAGE_BRANCH
                   --build-arg GIT_REMOTE_URL=$UTOPIA_IMAGE_REMOTE_URL
                   -t $UTOPIA_IMAGE_NAME:latest
                   ./
+2 −1
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ RUN if [ -n "$GIT_REMOTE_URL" ]; then git remote set-url origin ${GIT_REMOTE_URL

# Configure and build Utopia
WORKDIR /utopia/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && make -j${PROCNUM} all
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_PACKAGE_REGISTRY=On ..
RUN make -j${PROCNUM} all

# To make sure everything works as desired, make a quick run... and directly
# delete the data again.