1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-24 12:31:31 +01:00
dotfiles/dev/Makefile
bretello 762f3ef58c
install: use ansible
- ansible/playbooks/setup.yml can be used to install all dotfiles
- a test setup is included in the `dev` folder with arch and debian
  images
2020-12-08 00:36:08 +01:00

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"