-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
33 lines (28 loc) · 949 Bytes
/
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
docker-build:
docker build -t hpreston/nxos-netbox-sync:latest .
docker-shell:
source src_env && \
docker run --rm -it \
-e NETBOX_URL="${NETBOX_URL}" \
-e NETBOX_TOKEN="${NETBOX_TOKEN}" \
-e SWITCH_HOSTNAME="${SWITCH_HOSTNAME}" \
-e SWITCH_MGMT_IP="${SWITCH_MGMT_IP}" \
-e SWITCH_USERNAME="${SWITCH_USERNAME}" \
-e SWITCH_PASSWORD="${SWITCH_PASSWORD}" \
-e TEAMS_TOKEN="${TEAMS_TOKEN}" \
-e TEAMS_ROOMID="${TEAMS_ROOMID}" \
hpreston/nxos-netbox-sync:latest /bin/sh
docker-run:
source src_env && \
docker run --rm -it \
-e NETBOX_URL="${NETBOX_URL}" \
-e NETBOX_TOKEN="${NETBOX_TOKEN}" \
-e SWITCH_HOSTNAME="${SWITCH_HOSTNAME}" \
-e SWITCH_MGMT_IP="${SWITCH_MGMT_IP}" \
-e SWITCH_USERNAME="${SWITCH_USERNAME}" \
-e SWITCH_PASSWORD="${SWITCH_PASSWORD}" \
-e TEAMS_TOKEN="${TEAMS_TOKEN}" \
-e TEAMS_ROOMID="${TEAMS_ROOMID}" \
hpreston/nxos-netbox-sync:latest
docker-push:
docker push hpreston/nxos-netbox-sync:latest