Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user-manager
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
user-manager
Commits
2e5c4bbf
Commit
2e5c4bbf
authored
2 years ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-2651 native build
parent
b7d97541
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile.native
+27
-0
27 additions, 0 deletions
Dockerfile.native
Jenkinsfile
+4
-4
4 additions, 4 deletions
Jenkinsfile
with
31 additions
and
4 deletions
Dockerfile.native
0 → 100644
+
27
−
0
View file @
2e5c4bbf
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
#
# Before building the container image run:
#
# ./mvnw package -Pnative
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/user-manager .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/user-manager
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.5
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --chown=1001:root target/*-runner /work/application
EXPOSE 8080
USER 1001
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
This diff is collapsed.
Click to expand it.
Jenkinsfile
+
4
−
4
View file @
2e5c4bbf
...
@@ -81,7 +81,7 @@ pipeline {
...
@@ -81,7 +81,7 @@ pipeline {
withCredentials
([
usernamePassword
(
credentialsId:
'jenkins-docker-login'
,
usernameVariable:
'USER'
,
passwordVariable:
'PASSWORD'
)])
{
withCredentials
([
usernamePassword
(
credentialsId:
'jenkins-docker-login'
,
usernameVariable:
'USER'
,
passwordVariable:
'PASSWORD'
)])
{
sh
'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}'
sh
'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}'
sh
'docker build -f
src/main/docker/
Dockerfile.
jvm
-t docker.ozg-sh.de/user-manager:build-latest .'
sh
'docker build -f Dockerfile.
native
-t docker.ozg-sh.de/user-manager:build-latest .'
}
}
}
}
}
}
...
@@ -151,7 +151,7 @@ pipeline {
...
@@ -151,7 +151,7 @@ pipeline {
failure
{
failure
{
script
{
script
{
if
(
env
.
BRANCH_NAME
==
'master'
||
env
.
BRANCH_NAME
==
'release'
)
{
if
(
env
.
BRANCH_NAME
==
'master'
||
env
.
BRANCH_NAME
==
'release'
)
{
sendFailureMessage
()
//
sendFailureMessage()
}
}
}
}
}
}
...
...
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