Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello-world-spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josh Steinberg
hello-world-spring-boot
Commits
4ac5c351
Commit
4ac5c351
authored
Jun 16, 2022
by
Josh Steinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added dockerfile
parent
2fc3fd46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
Dockerfile
Dockerfile
+13
-0
Jenkinsfile
Jenkinsfile
+15
-0
No files found.
Dockerfile
0 → 100644
View file @
4ac5c351
FROM
maven:3.6.0-jdk-11-slim AS TEMP_BUILD_IMAGE
# RUN gradle build || return 0
COPY
src /home/app/src
COPY
pom.xml /home/app
RUN
mvn
-f
/home/app/pom.xml clean package
# actual container
FROM
openjdk:11-jre-slim
COPY
--from=TEMP_BUILD_IMAGE /home/app/target/spring-boot-complete-0.0.1-SNAPSHOT.jar /usr/local/lib/hello-world.jar
EXPOSE
8080
ENTRYPOINT
["java","-jar","/usr/local/lib/hello-world.jar"]
\ No newline at end of file
Jenkinsfile
View file @
4ac5c351
...
@@ -73,5 +73,20 @@ pipeline {
...
@@ -73,5 +73,20 @@ pipeline {
}
}
}
}
}
}
stage
(
'Build App and Make Image'
)
{
steps
{
echo
'Building App, Making Image and Pushing Image'
container
(
name:
'kaniko'
,
shell:
'/busybox/sh'
)
{
dir
(
"inventory-backend"
){
sh
"pwd"
sh
"ls"
sh
'''#!/busybox/sh
/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=nexus.mynisum.com:2376/ascend-kafka/ascend2-inventory-backend:latest
'''
}
}
}
}
}
}
}
}
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