Skip to content

Commit

Permalink
feature/DLT-28-create-shell-script
Browse files Browse the repository at this point in the history
- Create scrips to make command running easy
  • Loading branch information
nspalo committed Sep 3, 2023
1 parent b971710 commit 9d92c37
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/artisan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# run --rm artisan \
# ${@}

./scripts/run.sh \
artisan \
${@}
10 changes: 10 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# build
./scripts/main-docker-compose.sh \
build
12 changes: 12 additions & 0 deletions scripts/composer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# run --rm composer \
# ${@}
./scripts/run.sh \
composer \
${@}
8 changes: 8 additions & 0 deletions scripts/docker-compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -eo pipefail

docker compose \
--env-file "docker/environments/config.env" \
-f "docker/docker-compose.yml" \
${@}
12 changes: 12 additions & 0 deletions scripts/down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# down \
# ${@}
./scripts/main-docker-compose.sh \
down \
${@}
12 changes: 12 additions & 0 deletions scripts/exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# run --rm \
# ${@}
./scripts/main-docker-compose.sh \
exec \
${@}
8 changes: 8 additions & 0 deletions scripts/main-docker-compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -eo pipefail

docker compose \
--env-file "docker/environments/config.env" \
-f "docker/docker-compose.yml" \
${@}
10 changes: 10 additions & 0 deletions scripts/prune.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -eo pipefail

#docker rmi -f $(docker images -q)
#docker rmi $(docker images)
#docker rmi $(docker images -qf dangling=true);
docker system prune -a --force
docker ps
docker images
12 changes: 12 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# run --rm \
# ${@}
./scripts/main-docker-compose.sh \
run --rm \
${@}
12 changes: 12 additions & 0 deletions scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# stop \
# ${@}
./scripts/main-docker-compose.sh \
stop \
${@}
12 changes: 12 additions & 0 deletions scripts/up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eo pipefail

#docker compose \
# --env-file "docker/environments/config.env" \
# -f "docker/docker-compose.yml" \
# up \
# ${@}
./scripts/main-docker-compose.sh \
up \
${@}

0 comments on commit 9d92c37

Please sign in to comment.