-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (37 loc) · 2.57 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
VERSION=0.1
.PHONY: challenges cli all
challenges:
docker build --file deploy/challenges/Dockerfile --label version=$(VERSION) --tag ctf_netconf_oran:v$(VERSION) .
cli:
docker build --file deploy/cli/Dockerfile --label version=$(VERSION) --tag cli_ctf:v$(VERSION) .
all: challenges cli
launch_compose_dev:
PREFIX="" docker-compose -f deploy/compose/docker-compose.yml up -d
launch_challenge: stop_compose
PREFIX="airphone-docker-local.artifactory-espoo1.int.net.nokia.com/" CHALLENGE=$(CHALLENGE) docker-compose -f deploy/compose/docker-compose.yml up -d
launch_oran_challenge: stop_compose
PREFIX="airphone-docker-local.artifactory-espoo1.int.net.nokia.com/" CHALLENGE=$(CHALLENGE) docker-compose -f deploy/compose/docker-compose-oran.yml up -d
launch_compose:
PREFIX="airphone-docker-local.artifactory-espoo1.int.net.nokia.com/" docker-compose -f deploy/compose/docker-compose.yml up -d
stop_compose:
docker-compose -f deploy/compose/docker-compose.yml down
enter_cli_container:
docker exec -it cli_ctf /bin/bash
connect_cli:
docker exec -it cli_ctf "./connect_to_server.py"
push_to_artifactory: all
docker tag ctf_netconf_oran:v$(VERSION) airphone-docker-local.artifactory-espoo1.int.net.nokia.com/ctf_netconf_oran:v$(VERSION)
docker tag cli_ctf:v$(VERSION) airphone-docker-local.artifactory-espoo1.int.net.nokia.com/cli_ctf:v$(VERSION)
docker tag cli_ctf_oran:v$(VERSION) airphone-docker-local.artifactory-espoo1.int.net.nokia.com/cli_ctf_oran:v$(VERSION)
docker tag ctf_oran_radio:v$(VERSION) airphone-docker-local.artifactory-espoo1.int.net.nokia.com/ctf_oran_radio:v$(VERSION)
docker push airphone-docker-local.artifactory-espoo1.int.net.nokia.com/ctf_netconf_oran:v$(VERSION)
docker push airphone-docker-local.artifactory-espoo1.int.net.nokia.com/cli_ctf:v$(VERSION)
docker push airphone-docker-local.artifactory-espoo1.int.net.nokia.com/cli_ctf_oran:v$(VERSION)
docker push airphone-docker-local.artifactory-espoo1.int.net.nokia.com/ctf_oran_radio:v$(VERSION)
pull_latest_images:
PREFIX="airphone-docker-local.artifactory-espoo1.int.net.nokia.com/" docker-compose -f deploy/compose/docker-compose.yml down
PREFIX="airphone-docker-local.artifactory-espoo1.int.net.nokia.com/" docker-compose -f deploy/compose/docker-compose.yml rm -f
docker rmi airphone-docker-local.artifactory-espoo1.int.net.nokia.com/ctf_oran_radio:v0.1
docker rmi airphone-docker-local.artifactory-espoo1.int.net.nokia.com/cli_ctf_oran:v0.1
docker rmi airphone-docker-local.artifactory-espoo1.int.net.nokia.com/cli_ctf:v0.1
docker rmi airphone-docker-local.artifactory-espoo1.int.net.nokia.com/ctf_netconf_oran:v0.1