Skip to content

Commit

Permalink
(ci) Fix init command
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Robinson <[email protected]>
  • Loading branch information
ocean committed Dec 28, 2024
1 parent 46ba3fc commit b53dda5
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions examples/examples.ahoy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
ahoyapi: v2
commands:
vup:
cmd: "vagrant up"
usage: Start the vagrant box if one exists.

vdown:
cmd: "vagrant down"
usage: Stop the vagrant box if one exists.

ps:
cmd: docker compose ps "$@"
usage: List the running Docker Compose containers.

start:
cmd: docker compose start "$@"
usage: Start the Docker Compose containers.

stop:
cmd: docker compose stop "$@"
usage: Stop the Docker Compose containers.

restart:
cmd: docker compose restart "$@"
usage: Restart the Docker Compose containers.

drush:
cmd: docker compose run cli drush --root=docroot "$@"
usage: Run drush commands in the cli service container.

bash:
cmd: docker compose run "$1" bash
usage: Start a shell in the container (like ssh without actual ssh).

sqlc:
cmd: "docker compose run cli drush --root=docroot sqlc"
usage: Connect to the default mysql database. Supports piping of data into the command.

behat:
cmd: docker compose run cli bash -c "cd docroot/test && composer install --prefer-source --no-interaction && bin/behat -p docker $@"
usage: Run the behat tests within the container.

behat-init:
cmd: 'docker compose run cli bash -c "cd docroot/test && composer install --prefer-source --no-interaction"'
usage: Use composer to install behat dependencies.

#This command overrides the up command in the docker.ahoy.yml to test the "last in wins" feature of ahoy
up:
cmd: "docker compose up -d"
usage: Start the Docker Compose containers.

0 comments on commit b53dda5

Please sign in to comment.