Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SpringTemplate
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
Serdar TURKEL
SpringTemplate
Commits
b5fcabd4
Commit
b5fcabd4
authored
Nov 20, 2022
by
Serdar TURKEL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy kubernetes 1
parent
efc06801
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Jenkinsfile
Jenkinsfile
+5
-5
docker-command.sh
docker-command.sh
+1
-1
docker-compose.yml
docker-compose.yml
+1
-1
No files found.
Jenkinsfile
View file @
b5fcabd4
...
...
@@ -30,11 +30,6 @@ pipeline {
sh
'mvn dependency:tree -Dverbose -B -DskipTests clean package'
}
}
stage
(
'Docker Image'
)
{
steps
{
sh
'docker build -t springtemplate:latest .'
}
}
stage
(
"Nexus"
)
{
steps
{
script
{
...
...
@@ -71,5 +66,10 @@ pipeline {
}
}
}
stage
(
'Docker Image'
)
{
steps
{
sh
'docker build -t inity/springtemplate:latest .'
}
}
}
}
\ No newline at end of file
docker-command.sh
View file @
b5fcabd4
...
...
@@ -4,4 +4,4 @@ mvn dependency:tree -Dverbose -B -DskipTests clean package
cp
target/
*
.jar ./
docker-compose build
sudo
docker run
-d
-it
--net
=
host
--restart
=
always springtemplate:latest
sudo
docker run
-d
-it
--net
=
host
-p
8080:8
080
--restart
=
always
--name
springtemplate springtemplate:latest
sudo
docker run
-d
-it
--net
=
host
-p
9080:9
080
--restart
=
always
--name
springtemplate springtemplate:latest
docker-compose.yml
View file @
b5fcabd4
...
...
@@ -8,4 +8,4 @@ services:
volumes
:
-
/tmp
ports
:
-
"
8080:8080"
\ No newline at end of file
-
"
9080:9080"
\ No newline at end of file
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