ci(docs-infra): add helper scripts for running TDD in Docker

This commit is contained in:
Pete Bacon Darwin 2018-05-09 18:58:15 +01:00
parent 9b820555a3
commit 3b8b7f4087
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# Link the scripts on the host to the scripts in the container
# - the host scripts are mounted as a volume at `/dockerbuild`)
# - the original scripts are moved to `..._prod` in case they are needed later
# See `aio/aio-builds-setup/docs/misc--debug-docker-container.md` for more info
mv $AIO_SCRIPTS_SH_DIR ${AIO_SCRIPTS_SH_DIR}_prod
ln -s /dockerbuild/scripts-sh $AIO_SCRIPTS_SH_DIR
chmod a+x $AIO_SCRIPTS_SH_DIR/*
mv $AIO_SCRIPTS_JS_DIR ${AIO_SCRIPTS_JS_DIR}_prod
ln -s /dockerbuild/scripts-js $AIO_SCRIPTS_JS_DIR

View File

@ -0,0 +1,2 @@
aio-verify-setup
ls -t /var/log/aio/upload-server-verify* | head -1 | xargs cat