Files
dotfiles/Makefile
2020-05-29 18:30:50 +01:00

32 lines
813 B
Makefile

SHELL := /bin/bash
# ---------------------------------------------------------------------------- #
# Local commands
# ---------------------------------------------------------------------------- #
.PHONY: clean
all:
./bootstrap.sh
clean:
rm -rf .dotlock tmp
# ---------------------------------------------------------------------------- #
# Docker commands
# ---------------------------------------------------------------------------- #
.PHONY: build test start
# Build and tag docker image
build:
docker build . -t dotfiles:latest
# Run tests in docker container
# @arg $TARGET binary to install and test
test:
docker build . -t dotfiles:localtest \
--build-arg TARGET=$$TARGET \
&& docker run dotfiles:localtest
# Launch bash in docker container
start:
docker run -it dotfiles:latest /bin/bash