-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (44 loc) · 1.28 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
51
52
53
.DEFAULT_GOAL := help
.PHONY: help
MAKEFLAGS += --silent
PWD=$(shell pwd)
DOTBOT_CMD="./install"
test: reset
echo "building docker image to test first steps ubuntu"
docker build \
--build-arg="UIDH=$(shell id -u)" \
--build-arg="USER=${USER}" \
--build-arg="GIDH=$(shell grep ${USER} /etc/passwd | cut -d: -f4)" \
--progress=plain \
-t=${GITHUB_USER}/dotfiles:test \
.
echo "starting docker container"
docker run --rm -it \
--user ${USER} \
-e DOTFILES=/home/${USER}/dotfiles \
-e SYNC_DOTFILES=/home/${USER}/sync \
-e USER=${USER} \
-v /etc/apt/sources.list:/etc/apt/sources.list:ro \
-v ${HOME}/Dropbox:/home/${USER}/Dropbox:ro \
-v ${PWD}:/home/${USER}/dotfiles:ro \
-v ${PWD}/.git:/home/${USER}/dotfiles/.git \
-v ${PWD}/git/modules:/home/${USER}/dotfiles/git/modules \
-w /home/${USER}/dotfiles \
${GITHUB_USER}/dotfiles:test
reset:
reset
pre:
sudo ${PWD}/pre-setup
# golang:
# eval ${DOTBOT_CMD} -c dotbot/go.yaml \
# --except go
# pip:
# eval ${DOTBOT_CMD} -c dotbot/pip.yaml \
# -p git/modules/dotbot-pip/pip.py
# snap:
# eval ${DOTBOT_CMD} -c dotbot/snap.yaml \
# -p git/modules/dotbot-snap/snap.py
# post:
# eval ${DOTBOT_CMD} -c dotbot/post.yaml \
# -p git/modules/dotbot-sudo/sudo.py
# setup: reset pre base apt pip snap golang post