Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
DTABackend
Commits
674be45f
Commit
674be45f
authored
Oct 19, 2023
by
Lückemeyer
Browse files
externalized build number from pipeline as variable BUILD_NUMBER
parent
467730ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
674be45f
...
@@ -29,6 +29,7 @@ ARG AUSER=appuser
...
@@ -29,6 +29,7 @@ ARG AUSER=appuser
ARG
AGID=137
ARG
AGID=137
ENV
USER=$AUSER
ENV
USER=$AUSER
ENV
GID=$AGID
ENV
GID=$AGID
ARG
BUILD_NUMBER=
RUN
addgroup
-g
$GID
-S
docker
RUN
addgroup
-g
$GID
-S
docker
RUN
adduser
--no-create-home
-u
1000
-G
docker
-D
$USER
RUN
adduser
--no-create-home
-u
1000
-G
docker
-D
$USER
...
@@ -40,7 +41,7 @@ RUN mkdir /data && \
...
@@ -40,7 +41,7 @@ RUN mkdir /data && \
VOLUME
/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
USER
1000:$GID
...
...
pom.xml
View file @
674be45f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</parent>
</parent>
<groupId>
de.hftstuttgart
</groupId>
<groupId>
de.hftstuttgart
</groupId>
<artifactId>
dta-backend
</artifactId>
<artifactId>
dta-backend
</artifactId>
<version>
${
buildNumber
}
</version>
<version>
${
env.BUILD_NUMBER
}
</version>
<name>
dta-backend
</name>
<name>
dta-backend
</name>
<description>
Dockerized test agent for moodle
</description>
<description>
Dockerized test agent for moodle
</description>
...
...
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