inception/Makefile
Danny Houtworm 1ef25ab8b1 bla
2023-08-13 21:02:18 +00:00

22 lines
825 B
Makefile

all: up
build:
sudo docker network create --subnet=172.20.30.0/24 wordpress
sudo mkdir -p ./build /home/djonker/data/adminer
sudo curl -f https://wordpress.org/latest.tar.gz --output /home/djonker/data/latest.tar.gz
sudo tar -xvf /home/djonker/data/latest.tar.gz
sudo mv wordpress /home/djonker/data/wordpress
sudo cp srcs/requirements/wordpress/srcs/wordpress.conf /home/djonker/data/wordpress/wp-config.php
sudo chown -R 1000:1000 /home/djonker/data/wordpress
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
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