Skip to content
Snippets Groups Projects
Commit 53ea3d3a authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Merge branch 'ci' into 'master'

CI: Create docker container

See merge request sw/simox/simox!150
parents f03ea64b f65b2345
No related branches found
No related tags found
No related merge requests found
build/
stages:
- build-and-test
- documentation
- deploy
- post-deploy-test
- downstream
......@@ -94,6 +94,78 @@ build-and-test-jammy:
image: git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-jammy
docker-bionic:
stage: deploy
needs: ["build-and-test-bionic"]
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/docker/bionic"
--destination "${CI_REGISTRY_IMAGE}:latest-bionic"
rules:
- if: $CI_COMMIT_BRANCH == "master"
docker-jammy:
stage: deploy
needs: ["build-and-test-jammy"]
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/docker/jammy"
--destination "${CI_REGISTRY_IMAGE}:latest-jammy"
rules:
- if: $CI_COMMIT_BRANCH == "master"
.test-docker-image-common:
before_script:
- source /axii/scripts/install_axii.sh
- _axii_auto_env_refresh
script:
- echo "ArmarX Workspace = '$ARMARX_WORKSPACE'"
- printenv
- axii workspace list-modules
- axii workspace list-modules --deps
- axii workspace info
- echo "Simox directory = '$Simox_DIR'"
- which RobotViewer
test-docker-image-bionic:
stage: post-deploy-test
needs: ["docker-bionic"]
extends: .test-docker-image-common
image: git.h2t.iar.kit.edu:5050/sw/simox/simox:latest-bionic
rules:
- if: $CI_COMMIT_BRANCH == "master"
test-docker-image-jammy:
stage: post-deploy-test
needs: ["docker-jammy"]
extends: .test-docker-image-common
image: git.h2t.iar.kit.edu:5050/sw/simox/simox:latest-jammy
rules:
- if: $CI_COMMIT_BRANCH == "master"
armarx-core:
stage: downstream
......@@ -103,7 +175,7 @@ armarx-core:
trigger:
project: sw/armarx/armarx-core
# This is optional, but we could tell ArmarX which Simox branch to use.
branch: master
branch: master
rules:
- if: $CI_COMMIT_BRANCH == "master"
{
"modules": {
"deps/doxygen": {},
"simox": {}
},
"global": {
"prepare": {
"cmake": {
"definitions": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
}
}
}
}
FROM git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-bionic
# Setup environment.
SHELL ["/bin/bash", "-c"]
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Berlin
# Setup apt environment.
RUN apt-get -qq update
# Setup workspace in Docker.
RUN axii workspace create /workspace workspace
RUN axii workspace activate workspace
# Simulate activating the workspace.
ENV ARMARX_WORKSPACE=/workspace
# Setup repo in Docker.
WORKDIR $ARMARX_WORKSPACE/simox
COPY --chmod=755 . .
# Use workspace config.
COPY docker/armarx-workspace.json $ARMARX_WORKSPACE/armarx-workspace.json
# Run the upgrade.
RUN axii workspace system --accept-apt-install
# ToDo: Prevent this from updating Simox itself.
RUN axii workspace update --prefer-https
RUN axii workspace upgrade
FROM git.h2t.iar.kit.edu:5050/sw/armarx/meta/axii:latest-jammy
# Setup environment.
SHELL ["/bin/bash", "-c"]
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Berlin
# Setup apt environment.
RUN apt-get -qq update
# Temporary fix until Axii is updated
# Simulate install_axii.sh.
ENV _AXII_INSTALL_DIR /axii
ENV PATH /axii/bin:$PATH
ENV _axii_installed true
# Temporary fix - end.
# Setup workspace in Docker.
RUN axii workspace create /workspace workspace
RUN axii workspace activate workspace
# Simulate activating the workspace.
ENV ARMARX_WORKSPACE=/workspace
# Setup repo in Docker.
WORKDIR $ARMARX_WORKSPACE/simox
COPY --chmod=755 . .
# Use workspace config.
COPY docker/armarx-workspace.json $ARMARX_WORKSPACE/armarx-workspace.json
# Run the upgrade.
RUN axii workspace system --accept-apt-install
# ToDo: Prevent this from updating Simox itself.
RUN axii workspace update --prefer-https
RUN axii workspace upgrade
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment