Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-backend
Commits
674be45f
Commit
674be45f
authored
1 year ago
by
Lückemeyer
Browse files
Options
Download
Email Patches
Plain Diff
externalized build number from pipeline as variable BUILD_NUMBER
parent
467730ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+2
-1
Dockerfile
pom.xml
+1
-1
pom.xml
with
3 additions
and
2 deletions
+3
-2
Dockerfile
+
2
-
1
View file @
674be45f
...
...
@@ -29,6 +29,7 @@ ARG AUSER=appuser
ARG
AGID=137
ENV
USER=$AUSER
ENV
GID=$AGID
ARG
BUILD_NUMBER=
RUN
addgroup
-g
$GID
-S
docker
RUN
adduser
--no-create-home
-u
1000
-G
docker
-D
$USER
...
...
@@ -40,7 +41,7 @@ RUN mkdir /data && \
VOLUME
/data
COPY
--chown=1000:$GID target/dta-backend.jar app.jar
COPY
--chown=1000:$GID target/dta-backend
-$BUILD_NUMBER
.jar app.jar
USER
1000:$GID
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
1
-
1
View file @
674be45f
...
...
@@ -10,7 +10,7 @@
</parent>
<groupId>
de.hftstuttgart
</groupId>
<artifactId>
dta-backend
</artifactId>
<version>
${
buildNumber
}
</version>
<version>
${
env.BUILD_NUMBER
}
</version>
<name>
dta-backend
</name>
<description>
Dockerized test agent for moodle
</description>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment