Encore's Blog

Web 开发者 | 专注于WEB应用程序的软件开发人员
How to add submodule to gitlab CI
开发 2017-08-13 邵壮

如何在Rails项目中使用rails engine, 如何在CI中配置submodule 以gem的形式添加在Gemfile中 # Engine gem 'database_core', path: 'vendor/engines/database_core' 接下来我们应该每天都尝试拿最新的engine代码到本地 # If you first clone this project, please run this command in terminal > git submodule update --init --recursive # Every day should pull the latest updates from the remote repository > git pull > git submod...

标签: Docker Ruby Rails
Delete docker container or images in local
工作 2017-07-01 Encore Shao

Delete all containers > docker rm $(docker ps -a -q) Delete all images > docker rmi $(docker images -q) 强制删除某一个镜像 > docker rmi -f $image # 列出你的容器  $ sudo docker images 首先要保证有权限对Docker镜像或者容器进行操作,具体做法参见进入前文安装部分。 # 停止所有容器  $ docker stop $(docker ps -a -q) # 删除指定镜像  $ docker rmi $image # 删除无标示镜像,即id为<None>的镜像  $ docker rmi $(docker images | grep "^<none>" ...

标签: Docker
如何创建PostgreSQL Docker Image on Mac
数据库 2017-05-29 邵壮

如何制作PostgreSQL Docker镜像 1. 编写 Dockerfile $ mkdir postgres9.6; cd postgres9.6 $ cat Dockerfile # vim:set ft=dockerfile: FROM ubuntu # MAINTAINER SvenDowideit@docker.com # Add the PostgreSQL PGP key to verify their Debian packages. # It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B...

标签: Docker PostgreSQL
This website uses cookies to ensure you get the best experience on our website.
Got it!