-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
19 lines (16 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
build: #build for the current platform (on that platform)
docker build -t ghcr.io/jrcichra/smartcar_python_base containers/python_base
docker build -t ghcr.io/jrcichra/smartcar_dashcam containers/dashcam
docker build -t ghcr.io/jrcichra/smartcar_gpio containers/gpio
docker build -t ghcr.io/jrcichra/smartcar_obdii containers/obdii
docker build -t ghcr.io/jrcichra/smartcar_transfer containers/transfer
# build-rpi: # build for a pi (on a pi)
# docker build -t jrcichra/smartcar_python_base containers/python_base
# docker-compose -f docker-compose-rpi.yml build
build-all: # use docker buildx script (which removes docker-ce and installs the nightly) - only run from CI
bash -x build.sh
build-all-rpi: # use docker buildx script for the rpi (which removes docker-ce and installs the nightly) - only run from CI
bash -x build.sh rpi
test: #use docker-compose to start up all the containers and the test container
GITHUB_ACTIONS=true docker-compose -f docker-compose-test.yml up --abort-on-container-exit --exit-code-from gpio
default: build