Skip to content
Snippets Groups Projects
Commit 048271ce authored by Ostermayer, Markus's avatar Ostermayer, Markus
Browse files

Merge branch 'include_swet_use_kaniko' into 'main'

Added SWET to the container and switched to kaniko

See merge request !4
parents 3357d0c1 1f839f65
No related branches found
No related tags found
1 merge request!4Added SWET to the container and switched to kaniko
Pipeline #196458 failed
image: docker:20.10.10 stages:
- build
build-image: build-image:
stage: build stage: build
variables: image:
IMAGE_NAME: "os-sweb-image" name: gcr.io/kaniko-project/executor:v1.9.0-debug
IMAGE_TAG: $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
services:
- docker:20.10.10-dind
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - /kaniko/executor
- docker build -t $IMAGE_TAG . --context "${CI_PROJECT_DIR}"
- docker push $IMAGE_TAG --dockerfile "Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:latest"
--build-arg CI_TOKEN=${CI_JOB_TOKEN}
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: $CI_COMMIT_BRANCH == "main"
changes: changes:
......
FROM alpine:3.16 FROM alpine:3.16
ARG CI_TOKEN
RUN apk update RUN apk update
# QEMU-Dependencies # QEMU-Dependencies
RUN apk update && apk add qemu qemu-img qemu-system-x86_64 \ RUN apk update && apk add qemu qemu-img qemu-system-x86_64 \
...@@ -8,6 +10,8 @@ RUN apk update && apk add qemu qemu-img qemu-system-x86_64 \ ...@@ -8,6 +10,8 @@ RUN apk update && apk add qemu qemu-img qemu-system-x86_64 \
# https://packages.ubuntu.com/jammy/build-essential # https://packages.ubuntu.com/jammy/build-essential
gcc g++ make libc-dev \ gcc g++ make libc-dev \
# Install other sweb Dependencies # Install other sweb Dependencies
python3 cmake python3 py3-pip cmake
RUN pip install swet --extra-index-url https://gitlab-ci-token:$CI_TOKEN@gitlab.tugraz.at/api/v4/projects/21215/packages/pypi/simple
WORKDIR /sweb WORKDIR /sweb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment