inception/Makefile
Danny Houtworm 3760074926 bla
2023-08-13 21:40:17 +00:00

25 lines
1.0 KiB
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 curl -f https://downloads.wordpress.org/plugin/redis-cache.2.4.4.zip --output /home/djonker/data/rediscache.zip
sudo unzip /home/djonker/data/rediscache.zip
sudo mv redis-cache /home/djonker/data/wordpress/wp-content/plugins/redis-cache
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