forked from PaaS-datascience/tableau-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (35 loc) · 1.14 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
EDITOR=vim
all: install-prerequisites regconfig build
install-prerequisites:
ifeq ("$(wildcard /usr/bin/docker)","")
@echo install docker-ce, still to be tested
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y docker-ce
endif
network:
@docker network create latelier 2> /dev/null; true
build:
docker build -t tableau-server .
up: network
docker-compose up -d
clean:
docker ps -aq --no-trunc | xargs docker rm
exec:
docker exec -ti `docker ps | grep tableau-server |head -1 | awk -e '{print $$1}'` /bin/bash
config/registration_file.json:
cp config/registration_file.json.templ config/registration_file.json
$(EDITOR) config/registration_file.json
regconfig: config/registration_file.json
stop:
docker stop `docker ps | grep tableau-server |head -1| awk -e '{print $$1}'`