-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (44 loc) · 1.25 KB
/
Makefile
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
NDE_NAME=hugo
TAG?=latest
update:
git submodule sync
git submodule update --recursive
docker-update:
docker pull nubonetics/hugo-node:latest
test-hugo:
docker run -it --privileged -h ${NDE_NAME} --name ${NDE_NAME} --cap-add=SYS_PTRACE \
--net=host \
--add-host ${NDE_NAME}:127.0.0.1 \
--env EMAIL \
--env GIT_AUTHOR_EMAIL \
--env GIT_AUTHOR_NAME \
--env GIT_COMMITTER_EMAIL \
--env GIT_COMMITTER_NAME \
--env SSH_AUTH_SOCK \
--env TERM \
--env DISPLAY \
--volume $${PWD}:/workspace \
--volume /dev/dri:/dev/dri \
nubonetics/hugo-node:${TAG} /bin/bash -c "cd /workspace/test/starter-hugo-academic; hugo"
docker stop ${NDE_NAME}
docker rm ${NDE_NAME}
run:
docker run --privileged -h ${NDE_NAME} --name ${NDE_NAME} -d --cap-add=SYS_PTRACE \
--net=host \
--add-host ${NDE_NAME}:127.0.0.1 \
--env EMAIL \
--env GIT_AUTHOR_EMAIL \
--env GIT_AUTHOR_NAME \
--env GIT_COMMITTER_EMAIL \
--env GIT_COMMITTER_NAME \
--env SSH_AUTH_SOCK \
--env TERM \
--env DISPLAY \
--volume $${PWD}:/workspace \
--volume /dev/dri:/dev/dri \
nubonetics/hugo-node:latest
enter:
docker exec -it -w /workspace ${NDE_NAME} /bin/bash
stop:
docker stop ${NDE_NAME}
docker rm ${NDE_NAME}