works yay

This commit is contained in:
j 2025-08-15 08:54:26 +10:00
parent bf21c1b469
commit 363cec25b7
9 changed files with 127 additions and 0 deletions

17
general-scripts/dev.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
## This script launches us into 'dev env'. A purely CLI driven dev environment
## running in Docker.
## For more information, checkout repobase.net/j/devenv
[ -z $DEVENV_DIR ] && MSG="Please define DEVENV_DIR in config" failout
[ -z $DEVENV_REPO ] && MSG="Please define DEVENV_DIR in config" failout
[ -f $DEVENV_DIR ] && MSG="DEVENV_DIR points to a file. Wtf?" failout
[ -d $DEVENV_DIR ] || git clone $DEVENV_REPO $DEVENV_DIR
[ -z "$1" ] && IMAGE='base' || IMAGE=$1
cd $DEVENV_DIR
bash run.sh $IMAGE