mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-02-28 17:54:24 +01:00
19 lines
298 B
Bash
19 lines
298 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# store starting working directory
|
||
|
OLD_WD=$PWD
|
||
|
|
||
|
# determine working directory of shell script
|
||
|
WD=$(dirname "$(readlink -f "$0")")
|
||
|
|
||
|
cd $WD
|
||
|
|
||
|
# call docker container with local user
|
||
|
xhost +local:docker
|
||
|
export DOCKERUID=$(id -u)
|
||
|
export DOCKERGID=$(id -g)
|
||
|
docker-compose up -d
|
||
|
|
||
|
cd $OLD_WD
|
||
|
|