mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 13:23:33 +03:00
13 lines
384 B
Bash
Executable file
13 lines
384 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Run docker containers if they are not up yet
|
|
if ! [[ $(docker ps | grep shlink) ]]; then
|
|
docker-compose up -d
|
|
fi
|
|
|
|
if [[ "$*" == *"test:api:rr"* ]]; then
|
|
# API tests should be run inside the RoadRunner container when the test runtime is RoadRunner
|
|
docker exec -it shlink_roadrunner /bin/sh -c "$*"
|
|
else
|
|
docker exec -it shlink_swoole /bin/sh -c "$*"
|
|
fi
|