feat: docs and script improvements
This commit is contained in:
17
tools/docker-run
Executable file
17
tools/docker-run
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# This script is used to run the install script in a docker container.
|
||||
#
|
||||
|
||||
tag=$(cat /proc/sys/kernel/random/uuid)
|
||||
docker build . \
|
||||
--build-arg UUID=$tag \
|
||||
--tag dotfiles:$tag \
|
||||
--target install
|
||||
|
||||
docker run \
|
||||
-v "$(pwd)"/logs:/home/test-user/.dotfiles/logs \
|
||||
dotfiles:$tag \
|
||||
/bin/bash
|
||||
Reference in New Issue
Block a user