Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
decker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
decker
decker
Commits
9a82389a
Commit
9a82389a
authored
Oct 30, 2020
by
Jan-Philipp Stauffert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build Dockerfile in CI
parent
a15f2daf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
.gitlab-ci.yml
.gitlab-ci.yml
+23
-0
Dockerfile-prebuilt
Dockerfile-prebuilt
+26
-0
No files found.
.gitlab-ci.yml
View file @
9a82389a
...
...
@@ -173,6 +173,29 @@ deploy:linux:
interruptible
:
true
resource_group
:
deploy_linux
deploy:docker:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
tags
:
-
docker
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
stage
:
ci-img
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context=$CI_PROJECT_DIR --dockerfile=$CI_PROJECT_DIR/Dockerfile-prebuilt --verbosity=warn --destination=$CI_REGISTRY_IMAGE:latest
needs
:
-
job
:
build:linux
artifacts
:
true
rules
:
-
if
:
'
$CI_COMMIT_REF_NAME
==
"master"'
when
:
always
-
if
:
'
$CI_COMMIT_REF_NAME
=~
/^v\d\.\d\.\d-patching$/'
when
:
always
interruptible
:
true
deploy:win:
stage
:
deploy
image
:
...
...
Dockerfile-prebuilt
0 → 100644
View file @
9a82389a
FROM ubuntu:focal as decker
RUN apt-get update && apt-get install -y \
graphviz \
gnuplot \
rsync \
unzip \
zip
COPY decker /usr/bin/decker
ADD https://dl.min.io/client/mc/release/linux-amd64/mc /usr/bin/mc
RUN chmod +x /usr/bin/mc
#set the encoding on UTF-8, so the parser works correctly, german language is also added for umlaute
#source of fix: https://blog.mkowalski.net/2016/05/16/solving-locale-issues-with-docker-containers/
RUN apt-get install --reinstall -y locales && \
sed -i 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen de_DE.UTF-8
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE
ENV LC_ALL de_DE.UTF-8
RUN dpkg-reconfigure --frontend noninteractive locales
WORKDIR /decker
ENTRYPOINT ["decker"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment