Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
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
openSource
apollo
Commits
9a706e13
Commit
9a706e13
authored
Oct 01, 2017
by
Jason Song
Committed by
GitHub
Oct 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #774 from nobodyiam/fix-docker-startup-issue
fix no 'ps -p' option available when running with alpine
parents
c62f807e
aa04fe20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
27 deletions
+26
-27
Dockerfile
apollo-adminservice/src/main/docker/Dockerfile
+8
-9
Dockerfile
apollo-configservice/src/main/docker/Dockerfile
+8
-9
Dockerfile
apollo-portal/src/main/docker/Dockerfile
+10
-9
No files found.
apollo-adminservice/src/main/docker/Dockerfile
View file @
9a706e13
...
...
@@ -2,17 +2,17 @@
# Build with:
# docker build -t apollo-adminservice .
# Run with:
# docker run -p 8090:8090 -d --name apollo-adminservice apollo-adminservice
# docker run -p 8090:8090 -d -
v /tmp/logs:/opt/logs -
-name apollo-adminservice apollo-adminservice
FROM
openjdk:8-jre-
alpine
FROM
openjdk:8-jre-
slim
MAINTAINER
ameizi <sxyx2008@163.com>
ENV
VERSION 0.
8.0
ENV
VERSION 0.
9.0-SNAPSHOT
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.6/main"
>
/etc/apk/repositorie
s
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.6/community"
>>
/etc/apk/repositorie
s
\
&&
apk update upgrade
\
&&
apk add
--no-cache
unzip curl bash tzdata
\
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommend
s
\
procp
s
\
curl
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
\
&&
echo
"Asia/Shanghai"
>
/etc/timezone
...
...
@@ -25,4 +25,4 @@ RUN unzip /apollo-adminservice/apollo-adminservice-${VERSION}-github.zip -d /apo
EXPOSE
8090
CMD
["/apollo-adminservice/scripts/startup.sh"]
\ No newline at end of file
CMD
["/apollo-adminservice/scripts/startup.sh"]
apollo-configservice/src/main/docker/Dockerfile
View file @
9a706e13
...
...
@@ -2,17 +2,17 @@
# Build with:
# docker build -t apollo-configservice .
# Run with:
# docker run -p 8080:8080 -d --name apollo-configservice apollo-configservice
# docker run -p 8080:8080 -d -
v /tmp/logs:/opt/logs -
-name apollo-configservice apollo-configservice
FROM
openjdk:8-jre-
alpine
FROM
openjdk:8-jre-
slim
MAINTAINER
ameizi <sxyx2008@163.com>
ENV
VERSION 0.
8.0
ENV
VERSION 0.
9.0-SNAPSHOT
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.6/main"
>
/etc/apk/repositorie
s
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.6/community"
>>
/etc/apk/repositorie
s
\
&&
apk update upgrade
\
&&
apk add
--no-cache
unzip curl bash tzdata
\
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommend
s
\
procp
s
\
curl
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
\
&&
echo
"Asia/Shanghai"
>
/etc/timezone
...
...
@@ -25,4 +25,4 @@ RUN unzip /apollo-configservice/apollo-configservice-${VERSION}-github.zip -d /a
EXPOSE
8080
CMD
["/apollo-configservice/scripts/startup.sh"]
\ No newline at end of file
CMD
["/apollo-configservice/scripts/startup.sh"]
apollo-portal/src/main/docker/Dockerfile
View file @
9a706e13
...
...
@@ -2,17 +2,19 @@
# Build with:
# docker build -t apollo-portal .
# Run with:
# docker run -p 9090:8080 -d --name apollo-portal apollo-portal
# docker run -p 8080:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
# Or if 8080 was taken:
# docker run -p 8070:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
FROM
openjdk:8-jre-
alpine
FROM
openjdk:8-jre-
slim
MAINTAINER
ameizi <sxyx2008@163.com>
ENV
VERSION 0.
8.0
ENV
VERSION 0.
9.0-SNAPSHOT
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.6/main"
>
/etc/apk/repositorie
s
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.6/community"
>>
/etc/apk/repositorie
s
\
&&
apk update upgrade
\
&&
apk add
--no-cache
unzip curl bash tzdata
\
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommend
s
\
procp
s
\
curl
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
\
&&
echo
"Asia/Shanghai"
>
/etc/timezone
...
...
@@ -25,4 +27,4 @@ RUN unzip /apollo-portal/apollo-portal-${VERSION}-github.zip -d /apollo-portal \
EXPOSE
8080
CMD
["/apollo-portal/scripts/startup.sh"]
\ No newline at end of file
CMD
["/apollo-portal/scripts/startup.sh"]
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