mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 20:41:31 +01:00
26 lines
710 B
Makefile
26 lines
710 B
Makefile
|
SHELL=/bin/bash
|
||
|
|
||
|
all: list_targets
|
||
|
|
||
|
list_targets:
|
||
|
echo "List of targets:"
|
||
|
@grep '^[^#[:space:]].*:' Makefile
|
||
|
|
||
|
debian: clean build-debian run
|
||
|
arch archlinux: clean build-arch run
|
||
|
|
||
|
build-debian:
|
||
|
docker build -t brethil/dotfiles:dev -f Dockerfile.debian .
|
||
|
|
||
|
build-arch:
|
||
|
docker build -t brethil/dotfiles:dev -f Dockerfile.archlinux .
|
||
|
|
||
|
run:
|
||
|
docker run -d --name=dotfiles-dev brethil/dotfiles:dev
|
||
|
echo "*** Started container, listening on ${BOLD}${WHITE}`docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dotfiles-dev`:22${CLEAR}"
|
||
|
docker logs -f dotfiles-dev
|
||
|
|
||
|
clean:
|
||
|
docker stop dotfiles-dev || echo "no containers to stop"
|
||
|
docker rm dotfiles-dev || echo "no containers to remove"
|