-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (27 loc) · 904 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
help:
@echo "Makefile for HRI CACTI Docker container"
@echo "Usage:"
@echo "make start - start the container"
@echo "make stop - stop the container"
@echo "make rm - remove the container image"
@echo "make shell - open a shell in the container"
@echo "make build - build the container image"
@echo "make dir HRI_CACTI_GIT_DIR=<path> - set the HRI_CACTI_GIT_DIR environment variable"
@echo "make log - show the container logs"
start:
@xhost +local:docker
@echo "added docker xhost permissions"
@export UID_GID=$$(id -u):$$(id -g)
@export UNAME=$$(whoami)
@echo "gathering host user info... $$UNAME $$UID_GID"
@docker compose --profile bridge up -d
stop:
@docker compose down
shell:
@docker exec -ti -u $$(whoami) -w ~/ hri_cacti_c bash -l
build:
@docker compose --profile bridge build
dir:
@export HRI_CACTI_GIT_DIR=$(1)
log:
@docker logs rosd_c