-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (41 loc) · 1.24 KB
/
Makefile
File metadata and controls
51 lines (41 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SHELL=/bin/bash
DOCKER_IMAGE_NAME=vim-barebones
BRANCH=$(shell date +'%Y%m%d')
USE_BRANCH=$(shell date +'%Y%m%d')
ENTRYPOINT=entrypoint.sh
ENTRYPOINT_BASE=entrypoint_base.sh
all:
build-image:
docker build . \
-t ${DOCKER_IMAGE_NAME}:${BRANCH} \
-f docker/Dockerfile.${DOCKER_IMAGE_NAME}
build-ubuntu-image:
docker build . \
-t ${DOCKER_IMAGE_NAME}:ubuntu-${BRANCH} \
-f docker/Dockerfile.${DOCKER_IMAGE_NAME}_ubuntu
rebuild-image:
docker build . \
-t ${DOCKER_IMAGE_NAME}:${BRANCH} \
-f docker/Dockerfile.${DOCKER_IMAGE_NAME} --no-cache
rebuild-ubuntu-image:
docker build . \
-t ${DOCKER_IMAGE_NAME}:ubuntu-${BRANCH} \
-f docker/Dockerfile.${DOCKER_IMAGE_NAME}_ubuntu --no-cache
run: build-image
docker run --rm -it \
-v "${PWD}/vim-barebones:/root/mount" \
${DOCKER_IMAGE_NAME}:${USE_BRANCH} /bin/bash
run-ubuntu: build-ubuntu-image
docker run --rm -it \
-v "${PWD}/vim-barebones:/root/mount" \
${DOCKER_IMAGE_NAME}:ubuntu-${USE_BRANCH} /bin/bash
release:
tar czvf vim-barebones-$(shell date +'%Y%m%d').tar.gz vim-barebones
extract:
( \
cd ../ && tar czvf /tmp/vim-barebones-dev.tar.gz vim-barebones \
)
mv /tmp/vim-barebones-dev.tar.gz ./
clean-deps:
rm -rvf vim-barebones/vim/plugged
rm -rvf vim-barebones/vim/autoload