-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (31 loc) · 1.01 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
docker_test:
docker system prune
docker build -t main .
docker run --name main main
docker create:
docker build -t main .
docker test exec:
# docker kill $(docker ps -q)
# docker system prune
docker build -t tracker .
docker run --name tracker tracker
docker exec -it tracker bash
test:
docker build -t tracker .
docker run --name tracker tracker
clean:
docker system prune
Build_and_Push:
# Your Project ID here as argument in line!
echo "Set PROJECT_ID=YOUR_PROJECT_ID if you have not !!!"
docker buildx build --platform linux/amd64 -t gcr.io/$(PROJECT_ID)/tracker .
docker push gcr.io/$(PROJECT_ID)/tracker
setting up gcloud etc:
gcloud auth login
gcloud auth configure-docker
production:
# Your Project ID here as argument in line!
echo "Set PROJECT_ID=YOUR_PROJECT_ID if you have not !!!"
# Build for production for arm64 to make it work on GKE
docker buildx build --platform linux/amd64 -t gcr.io/$(PROJECT_ID)/lens-tracker .
docker push gcr.io/$(PROJECT_ID)/lens-tracker