2023-03-11 10:51:41 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-03-17 10:02:48 +01:00
|
|
|
if [ ! -f .env ]; then
|
|
|
|
echo "No .env; Please create .env and try again"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
. '.env'
|
|
|
|
|
2023-03-11 10:51:41 +01:00
|
|
|
cp docker-compose.dev docker-compose.yml
|
|
|
|
cp Dockerfile.dev Dockerfile
|
|
|
|
|
|
|
|
docker-compose build
|
2023-04-20 07:59:48 +02:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
echo "Error while building; check logs" >&2
|
|
|
|
exit -1
|
|
|
|
fi
|
2023-03-11 10:51:41 +01:00
|
|
|
|
2023-03-11 15:02:07 +01:00
|
|
|
echo -e "\033[1;32mDevelopment environment set up successfully\033[0m"
|
|
|
|
echo -e "Start it up with \033[1;32mdocker-compose up -d\033[0m!\n"
|