Commit d42331e6 authored by Jason Song's avatar Jason Song Committed by GitHub

update docker run sample (#2628)

parent d3a5050e
# Dockerfile for apollo-adminservice # Dockerfile for apollo-adminservice
# 1. Copy apollo-adminservice-${VERSION}-github.zip to current directory # 1. Copy apollo-adminservice-${VERSION}-github.zip to current directory
# 2. Build with: docker build -t apollo-adminservice . # 2. Build with: docker build -t apollo-adminservice .
# 3. Run with: docker run -p 8090:8090 -d -v /tmp/logs:/opt/logs --name apollo-adminservice apollo-adminservice # 3. Run with: docker run -p 8090:8090 -e DS_URL="jdbc:mysql://fill-in-the-correct-server:3306/ApolloConfigDB?characterEncoding=utf8" -e DS_USERNAME=FillInCorrectUser -e DS_PASSWORD=FillInCorrectPassword -d -v /tmp/logs:/opt/logs --name apollo-adminservice apollo-adminservice
FROM openjdk:8-jre-alpine FROM openjdk:8-jre-alpine
MAINTAINER ameizi <sxyx2008@163.com> MAINTAINER ameizi <sxyx2008@163.com>
......
...@@ -3,7 +3,6 @@ SERVICE_NAME=apollo-adminservice ...@@ -3,7 +3,6 @@ SERVICE_NAME=apollo-adminservice
## Adjust log dir if necessary ## Adjust log dir if necessary
LOG_DIR=/opt/logs/100003172 LOG_DIR=/opt/logs/100003172
## Adjust server port if necessary ## Adjust server port if necessary
#SERVER_PORT=8090
SERVER_PORT=${SERVER_PORT:=8090} SERVER_PORT=${SERVER_PORT:=8090}
## Create log directory if not existed because JDK 8+ won't do that ## Create log directory if not existed because JDK 8+ won't do that
......
# Dockerfile for apollo-configservice # Dockerfile for apollo-configservice
# 1. Copy apollo-configservice-${VERSION}-github.zip to current directory # 1. Copy apollo-configservice-${VERSION}-github.zip to current directory
# 2. Build with: docker build -t apollo-configservice . # 2. Build with: docker build -t apollo-configservice .
# 3. Run with: docker run -p 8080:8080 -d -v /tmp/logs:/opt/logs --name apollo-configservice apollo-configservice # 3. Run with: docker run -p 8080:8080 -e DS_URL="jdbc:mysql://fill-in-the-correct-server:3306/ApolloConfigDB?characterEncoding=utf8" -e DS_USERNAME=FillInCorrectUser -e DS_PASSWORD=FillInCorrectPassword -d -v /tmp/logs:/opt/logs --name apollo-configservice apollo-configservice
FROM openjdk:8-jre-alpine FROM openjdk:8-jre-alpine
MAINTAINER ameizi <sxyx2008@163.com> MAINTAINER ameizi <sxyx2008@163.com>
......
...@@ -3,7 +3,6 @@ SERVICE_NAME=apollo-configservice ...@@ -3,7 +3,6 @@ SERVICE_NAME=apollo-configservice
## Adjust log dir if necessary ## Adjust log dir if necessary
LOG_DIR=/opt/logs/100003171 LOG_DIR=/opt/logs/100003171
## Adjust server port if necessary ## Adjust server port if necessary
#SERVER_PORT=8080
SERVER_PORT=${SERVER_PORT:=8080} SERVER_PORT=${SERVER_PORT:=8080}
## Create log directory if not existed because JDK 8+ won't do that ## Create log directory if not existed because JDK 8+ won't do that
......
# Dockerfile for apollo-portal # Dockerfile for apollo-portal
# 1. Copy apollo-portal-${VERSION}-github.zip to current directory # 1. Copy apollo-portal-${VERSION}-github.zip to current directory
# 2. Build with: docker build -t apollo-portal . # 2. Build with: docker build -t apollo-portal .
# 3. Run with: docker run -p 8070:8070 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal # 3. Run with: docker run -p 8070:8070 -e DS_URL="jdbc:mysql://fill-in-the-correct-server:3306/ApolloPortalDB?characterEncoding=utf8" -e DS_USERNAME=FillInCorrectUser -e DS_PASSWORD=FillInCorrectPassword -e DEV_META=http://fill-in-dev-meta-server:8080 -e PRO_META=http://fill-in-pro-meta-server:8080 -d -v /tmp/logs:/opt/logs --name apollo-portal apollo-portal
FROM openjdk:8-jre-alpine FROM openjdk:8-jre-alpine
MAINTAINER ameizi <sxyx2008@163.com> MAINTAINER ameizi <sxyx2008@163.com>
......
...@@ -3,7 +3,6 @@ SERVICE_NAME=apollo-portal ...@@ -3,7 +3,6 @@ SERVICE_NAME=apollo-portal
## Adjust log dir if necessary ## Adjust log dir if necessary
LOG_DIR=/opt/logs/100003173 LOG_DIR=/opt/logs/100003173
## Adjust server port if necessary ## Adjust server port if necessary
#SERVER_PORT=8070
SERVER_PORT=${SERVER_PORT:=8070} SERVER_PORT=${SERVER_PORT:=8070}
## Create log directory if not existed because JDK 8+ won't do that ## Create log directory if not existed because JDK 8+ won't do that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment