You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
329 B
Bash
17 lines
329 B
Bash
#!/usr/bin/env -S bash -x
|
|
|
|
# the "--no-TTY" option is crucial - without it the output is not captured in Jenkins
|
|
|
|
./docker-up.sh
|
|
|
|
CONTAINER_ID=$(docker-compose run \
|
|
-d \
|
|
--service-ports \
|
|
-e "SEALIOUS_MONGO_PORT=27017" \
|
|
-e "SEALIOUS_MONGO_HOST=db" \
|
|
test \
|
|
npm "$@")
|
|
|
|
docker logs -f $CONTAINER_ID
|
|
docker rm $CONTAINER_ID
|