Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vip-room
Overview
Overview
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
kc-repo
vip-room
Commits
f97ae15b
Commit
f97ae15b
authored
Nov 11, 2019
by
liupt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kc-demo
parent
034ce3ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Dockerfile
Dockerfile
+13
-8
No files found.
Dockerfile
View file @
f97ae15b
FROM
tomcat:8-jdk8
ARG
WAR_LOCATION
RUN
rm
-rf
/usr/local/tomcat/webapps/
*
&&
\
cd
/usr/local/tomcat/webapps/
&&
\
wget
-O
vip-room.tar.gz
"
${
WAR_LOCATION
}
"
&&
\
tar
-zxf
vip-room.tar.gz
&&
\
rm
-f
vip-room.tar.gz &
\
chown
-R
1000:1000 /usr/local/tomcat/webapps/
USER
1000
ARG
WAR_LOCATION=http://kcuc.koala-cloud.com/kc-demo.tar.gz
ARG
JAR_LOCATION=http://kcuc.koala-cloud.com/adapter.tar.gz
RUN
rm
-rf
/usr/local/tomcat/webapps/
*
\
&&
cd
/usr/local/tomcat/lib
\
&&
wget
-O
b.tar.gz
"
${
JAR_LOCATION
}
"
\
&&
tar
-zxf
b.tar.gz
\
&&
rm
-rf
b.tar.gz
\
&&
cd
/usr/local/tomcat/webapps/
\
&&
wget
-O
a.tar.gz
"
${
WAR_LOCATION
}
"
\
&&
tar
-zxf
a.tar.gz
\
&&
rm
-f
a.tar.gz
#chown -R 1000:1000 /usr/local/tomcat/
#USER 1000
CMD
["/usr/local/tomcat/bin/catalina.sh", "run"]
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