Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OS-SWEB-Image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ostermayer, Markus
OS-SWEB-Image
Commits
1f839f65
Commit
1f839f65
authored
2 years ago
by
Ostermayer, Markus
Browse files
Options
Downloads
Patches
Plain Diff
Added SWET to the container and switched to kaniko
parent
3357d0c1
Branches
Branches containing commit
No related tags found
1 merge request
!4
Added SWET to the container and switched to kaniko
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-9
9 additions, 9 deletions
.gitlab-ci.yml
Dockerfile
+5
-1
5 additions, 1 deletion
Dockerfile
with
14 additions
and
10 deletions
.gitlab-ci.yml
+
9
−
9
View file @
1f839f65
image
:
docker:20.10.10
stages
:
-
build
build-image
:
stage
:
build
variables
:
IMAGE_NAME
:
"
os-sweb-image"
IMAGE_TAG
:
$CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
services
:
-
docker:20.10.10-dind
image
:
name
:
gcr.io/kaniko-project/executor:v1.9.0-debug
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
-
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:latest"
--build-arg CI_TOKEN=${CI_JOB_TOKEN}
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
changes
:
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
5
−
1
View file @
1f839f65
FROM
alpine:3.16
ARG
CI_TOKEN
RUN
apk update
# QEMU-Dependencies
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
gcc g++ make libc-dev \
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment