0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Add create-devenv command to manage.sh

This commit is contained in:
Alejandro Alonso 2024-07-11 13:24:20 +02:00
parent 1d88c7e92d
commit 4dd7880744

View file

@ -65,6 +65,12 @@ function start-devenv {
docker compose -p $DEVENV_PNAME -f docker/devenv/docker-compose.yaml up -d;
}
function create-devenv {
pull-devenv-if-not-exists $@;
docker compose -p $DEVENV_PNAME -f docker/devenv/docker-compose.yaml create;
}
function stop-devenv {
docker compose -p $DEVENV_PNAME -f docker/devenv/docker-compose.yaml stop -t 2;
}
@ -194,6 +200,7 @@ function usage {
echo "Options:"
echo "- pull-devenv Pulls docker development oriented image"
echo "- build-devenv Build docker development oriented image"
echo "- create-devenv Create the development oriented docker compose service."
echo "- start-devenv Start the development oriented docker compose service."
echo "- stop-devenv Stops the development oriented docker compose service."
echo "- drop-devenv Remove the development oriented docker compose containers, volumes and clean images."
@ -223,6 +230,10 @@ case $1 in
push-devenv ${@:2}
;;
create-devenv)
create-devenv ${@:2}
;;
start-devenv)
start-devenv ${@:2}
;;