Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
test
Project
Project
Details
Activity
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
Administrator
test
Commits
8c28790e
Commit
8c28790e
authored
Jun 19, 2020
by
bill lin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdfsdfdsf
parent
bb4089d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
Dockerfile
Dockerfile
+6
-4
Jenkinsfile
Jenkinsfile
+20
-0
No files found.
Dockerfile
View file @
8c28790e
FROM
nginx:latest
FROM
tomcat:7.0.96
## Remove default nginx website
## Remove default nginx website
RUN
rm
-rf
/usr/share/nginx/html/
*
#
RUN rm -rf /usr/share/nginx/html/*
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
COPY
new/ /usr/share/nginx/html
COPY
target/CargoTrans_BPA.war /usr/local/tomcat/webapps/
CMD
["nginx", "-g", "daemon off;"]
#EXPOSE 8080
#CMD ["catalina.sh", "run"]
Jenkinsfile
View file @
8c28790e
...
@@ -14,5 +14,25 @@ pipeline {
...
@@ -14,5 +14,25 @@ pipeline {
'''
'''
}
}
}
}
stage
(
'BUILD IMAGE'
)
{
steps
{
sh
'''docker build -t $registry_address/$image_name:latest .'''
}
}
}
stage
(
'PUSH IMAGE'
)
{
steps
{
sh
'''docker login -u deployment -p deployment123 nexus.gsstcloud.com:8093
docker push $registry_address/$image_name:latest'''
}
}
}
environment
{
registry_address
=
'nexus.gsstcloud.com:8093/bws'
image_name
=
'bws'
app_server_sit
=
'192.168.12.162:5000'
app_project_name
=
'default-fe'
}
}
}
\ 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