Skip to content

Commit 23043a7

Browse files
committed
docs(ci): document how to build images
1 parent 4df07c7 commit 23043a7

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.circleci/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
FROM alpine:3.7
22
RUN apk add --no-cache make vim git
3-
4-
# RUN add-apt-repository ppa:jonathonf/vim -y

.circleci/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# posva/vim-make
2+
3+
Small docker image with vim, make and git
4+
5+
## Building
6+
7+
```sh
8+
cd .circleci
9+
docker rmi vim-make # remove old image
10+
docker build -t vim-make .
11+
docker run -it vim-make /bin/date
12+
docker commit $(docker ps -lq) vim-make
13+
docker push posva/vim-make:0.3 # replace the tag with a new one
14+
docker container rm $(docker ps -lq) # remove container
15+
```
16+
17+
## Cleaning
18+
19+
To remove old images and containers, use `docker images` and `docker ps -a`.
20+
Then remove them with `docker rmi <image>` and `docker container rm <container>`
21+
22+
## Update `config.yml`
23+
24+
Make sure to update the tag in the `image` section of `.config.yml`

0 commit comments

Comments
 (0)