further cleanup

update docs and tests
This commit is contained in:
Andrejus
2020-03-03 00:05:41 +00:00
parent 1c7586139f
commit 638c907c06
17 changed files with 266 additions and 68 deletions

View File

@@ -2,10 +2,10 @@
# ---------------------------------------------------------------------------- #
# Local target commands (warning: affects local environment)
# ---------------------------------------------------------------------------- #
.PHONY: install clean
.PHONY: clean
# Install dotfiles locally
install:
all:
./bootstrap.sh
# Clean up after install
@@ -15,16 +15,17 @@ clean:
# ---------------------------------------------------------------------------- #
# Docker commands
# ---------------------------------------------------------------------------- #
.PHONY: build run use
.PHONY: build test start
# Build and tag docker image
build:
docker build . -t dotfiles
docker build . -t dotfiles --build-arg
# Run tests in docker container
run:
# Run tests in docker container (args to specify test)
test:
docker build . -t dotfiles --build-args
docker run dotfiles
# Launch bash in docker container
use:
start:
docker run -it dotfiles /bin/bash