uci-edit-server/start

10 lines
409 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
[[ ! $1 ]] && echo "no editor set, usage start <editor>" && exit
SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P)
env_file=$SDIR/editors/docker.${1}.env
2022-04-26 18:30:12 -07:00
echo $env_file
[[ ! -f "$env_file" ]] && echo file does not exist && $SDIR/make-env-file $1 && echo making env file from cfg
cat $env_file
# -p for separate container instances
docker-compose -p $1 --env-file $env_file up -d