Blame view

docker/PYROS_DOCKER_BUILD 329 Bytes
2be8242a   Etienne Pallier   Ajout du shebang ...
1
#!/usr/bin/env bash
3552b2ad   Alexis Koralewski   Add new shell scr...
2
3
4
5
6

[ ! -d "../vendor/guitastro/" ] && git clone https://gitlab.irap.omp.eu/guitastrolib/guitastro.git ../vendor/guitastro/

export CURRENT_UID=$(id -u) 

aa66d59c   Etienne Pallier   comments in docke...
7
8
9
10
# exit if root
if [ $CURRENT_UID -eq 0 ] ; then
    echo "You can't run this script as root, use a normal user"
    exit 1
3552b2ad   Alexis Koralewski   Add new shell scr...
11
12
fi

aa66d59c   Etienne Pallier   comments in docke...
13
14
# BUILD
docker compose build