-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 1.31 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
54
include .env
launch:
prospect-wrapper prospect-mail
prospect-wrapper-two prospect-mail
kill-containers:
${CONTAINER_ENGINE} kill prospect-one || ${CONTAINER_ENGINE} kill prospect-two # if error try kill other instance before exit
${CONTAINER_ENGINE} kill prospect-two
build:
${CONTAINER_ENGINE} build -t docker.io/stifstof/prospect-mail:latest -f Containerfile .
build-no-cache:
${CONTAINER_ENGINE} build --no-cache -t docker.io/stifstof/prospect-mail:latest -f Containerfile .
install:
${CONTAINER_ENGINE} run -it --rm \
--volume ${PWD}/bin:/target \
docker.io/stifstof/prospect-mail:latest install
uninstall:
${CONTAINER_ENGINE} run -it --rm \
--volume ${PWD}/bin:/target \
docker.io/stifstof/prospect-mail:latest uninstall
# convenience jobs
push:
echo ${DOCKERHUB_STIFSTOF_PW} | ${CONTAINER_ENGINE} login docker.io -u stifstof --password-stdin
${CONTAINER_ENGINE} push docker.io/stifstof/prospect-mail:latest
reinstall:
make uninstall
make build
make install
create-empty-config-folders:
mkdir ~/.config/Prospect_Mail_One/
mkdir ~/.config/Prospect_Mail_Two/
add-to-path:
export PATH=$PATH:/home/cn/Documents/git/prospect-mail-docker/bin
podman_runtime:
rm -f .env
echo "CONTAINER_ENGINE=podman" >> .env
docker_runtime:
rm -f .env
echo "CONTAINER_ENGINE=docker" >> .env
current_runtime:
cat .env