1234567891011121314151617181920212223242526272829 |
- # Dockerfile for apollo-config-server
- # Build with:
- # docker build -t apollo-config-server:v1.0.0 .
- FROM openjdk:8-jre-alpine3.8
- RUN \
- echo "http://mirrors.aliyun.com/alpine/v3.8/main" > /etc/apk/repositories && \
- echo "http://mirrors.aliyun.com/alpine/v3.8/community" >> /etc/apk/repositories && \
- apk update upgrade && \
- apk add --no-cache procps curl bash tzdata && \
- ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
- echo "Asia/Shanghai" > /etc/timezone && \
- mkdir -p /apollo-config-server
- ADD . /apollo-config-server/
- ENV APOLLO_CONFIG_SERVICE_NAME="service-apollo-config-server.sre"
- ENV DATASOURCES_URL="jdbc:mysql://service-mysql-for-apollo.sre:3306/ApolloConfigDB?characterEncoding=utf8"
- ENV DATASOURCES_USERNAME="FillInCorrectUser"
- ENV DATASOURCES_PASSWORD="FillInCorrectPassword"
- EXPOSE 8080
- ENTRYPOINT ["/apollo-config-server/entrypoint.sh"]
- CMD ["/apollo-config-server/scripts/startup-kubernetes.sh"]
|