Update project docker image name #416

pull/420/head
khs1994 2019-08-31 17:47:38 +08:00
parent 593a0c39ff
commit c075122492
6 changed files with 19 additions and 15 deletions

View File

@ -17,14 +17,20 @@ script:
after_success: after_success:
- sudo chmod -R 777 _book - sudo chmod -R 777 _book
- echo "FROM nginx:1.13.8-alpine" >> Dockerfile
- echo "FROM nginx:alpine" >> Dockerfile
- echo "COPY _book /usr/share/nginx/html" >> Dockerfile - echo "COPY _book /usr/share/nginx/html" >> Dockerfile
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t dockerpracticecn/docker_practice .
- docker run -dit --rm -p 4000:80 dockerpracticecn/docker_practice - docker build -t dockerpracticesig/docker_practice .
- docker run -dit --rm -p 4000:80 dockerpracticesig/docker_practice
- sleep 5 - sleep 5
- curl 127.0.0.1:4000 - curl 127.0.0.1:4000
- docker push dockerpracticecn/docker_practice
- docker push dockerpracticesig/docker_practice
- cd _book - cd _book
- git init - git init
- git remote add origin "$REPO" - git remote add origin "$REPO"

View File

@ -1,4 +1,4 @@
FROM node:9-alpine FROM node:alpine
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai

View File

@ -11,7 +11,7 @@
"-livereload", "-livereload",
"image-captions", "image-captions",
"github", "github",
"page-treeview", "page-treeview@2.9.8",
"editlink" "editlink"
], ],
"pluginsConfig": { "pluginsConfig": {

View File

@ -1,6 +1,7 @@
## ##
* 1.1.0 2019-06-30 * 1.1.0 2019-12-31
* v19.x
* `BuildKit` * `BuildKit`
* `docker manifest` 使 * `docker manifest` 使
* `Ubuntu 14.04` `Debian 8` `Debian 7` * `Ubuntu 14.04` `Debian 8` `Debian 7`

View File

@ -18,7 +18,7 @@
* 线[GitBook](https://yeasy.gitbooks.io/docker_practice/content/)[Github](https://github.com/yeasy/docker_practice/blob/master/SUMMARY.md)[GitBook 国内镜像](https://docker_practice.gitee.io/)[GitBook 英文版国内镜像](https://docker_practice.gitee.io/us_en)[国内镜像](https://github.com/yeasy/docker_practice/wiki/%E9%A1%B9%E7%9B%AE%E5%9B%BD%E5%86%85%E9%95%9C%E5%83%8F) * 线[GitBook](https://yeasy.gitbooks.io/docker_practice/content/)[Github](https://github.com/yeasy/docker_practice/blob/master/SUMMARY.md)[GitBook 国内镜像](https://docker_practice.gitee.io/)[GitBook 英文版国内镜像](https://docker_practice.gitee.io/us_en)[国内镜像](https://github.com/yeasy/docker_practice/wiki/%E9%A1%B9%E7%9B%AE%E5%9B%BD%E5%86%85%E9%95%9C%E5%83%8F)
* [pdf](https://github.com/yeasy/docker_practice/wiki/%E4%B8%8B%E8%BD%BD)[epub](https://github.com/yeasy/docker_practice/wiki/%E4%B8%8B%E8%BD%BD) * [pdf](https://github.com/yeasy/docker_practice/wiki/%E4%B8%8B%E8%BD%BD)[epub](https://github.com/yeasy/docker_practice/wiki/%E4%B8%8B%E8%BD%BD)
* [线 `$ docker run -it --rm -p 4000:80 dockerpracticecn/docker_practice`](https://github.com/yeasy/docker_practice/wiki/%E7%A6%BB%E7%BA%BF%E9%98%85%E8%AF%BB%E5%8A%9F%E8%83%BD%E8%AF%A6%E8%A7%A3) * [线 `$ docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice`](https://github.com/yeasy/docker_practice/wiki/%E7%A6%BB%E7%BA%BF%E9%98%85%E8%AF%BB%E5%8A%9F%E8%83%BD%E8%AF%A6%E8%A7%A3)
* [](https://github.com/yeasy/docker_practice/issues/363) * [](https://github.com/yeasy/docker_practice/issues/363)
Docker 使 Docker [](CONTRIBUTING.md) Docker 使 Docker [](CONTRIBUTING.md)

View File

@ -1,8 +1,8 @@
version: "3" version: "3"
services: services:
# $ docker-compose up server => up a serverOnly Support Linux or macOS # $ docker-compose up server => up a serverOnly Support Linux or macOS
server: server:
image: yeasy/docker_practice:latest image: yeasy/docker_practice:latest
ports: ports:
@ -19,13 +19,10 @@ services:
- ./:/srv/gitbook-src - ./:/srv/gitbook-src
command: build command: build
# $ docker run -it --rm -p 4000:80 dockerpracticecn/docker_practice # $ docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
# $ docker up offline
offline: offline:
# this image build by travis ci # this image build by travis ci
image: dockerpracticecn/docker_practice image: dockerpracticesig/docker_practice
ports: ports:
- 4000:80 - 4000:80