inception/Makefile
Danny Houtworm 1b47bdc126 bla
2023-08-14 07:09:17 +00:00

23 lines
968 B
Makefile

all: up
build:
sudo docker network create --subnet=172.20.30.0/24 wordpress
sudo mkdir -p ./build /home/djonker/data/adminer /home/djonker/data/wordpress
sudo cp srcs/requirements/wordpress/srcs/wordpress.conf /home/djonker/data/wordpress/wp-config.php.temp
sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
sudo mv wp-cli.phar /home/djonker/data/wordpress/wp-cli.phar
sudo chmod +x /home/djonker/data/wordpress/wp-cli.phar
sudo curl -L https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php --output /home/djonker/data/adminer/adminer.php
sudo curl -L https://download.nextcloud.com/server/releases/latest.zip --output ~/data/nextcloud.zip
sudo unzip -d ~/data ~/data/nextcloud.zip
up: build
sudo docker-compose -f ./srcs/docker-compose.yml up -d
down:
sudo docker-compose -f ./srcs/docker-compose.yml down
clean: down
yes | sudo docker system prune -a
sudo rm -rf /home/djonker/data ./build