|
|
@ -12,18 +12,25 @@ echo "* [$(date +"%T")] cleaning up $LOGS_DIR" |
|
|
|
rm -rf "$LOGS_DIR" |
|
|
|
mkdir -p "$LOGS_DIR" |
|
|
|
|
|
|
|
set +e |
|
|
|
echo |
|
|
|
echo "* [$(date +"%T")] removing run_test container" |
|
|
|
docker rm -vf run_test |
|
|
|
set -e |
|
|
|
|
|
|
|
set +u |
|
|
|
if [[ "$CIRCLECI" == true ]]; then |
|
|
|
set -u |
|
|
|
echo |
|
|
|
echo "* [$(date +"%T")] starting rsyslog container" |
|
|
|
docker rm -f rsyslog || true |
|
|
|
docker run -d -v "$LOGS_DIR:/var/log/" -p 127.0.0.1:5514:514/udp --name rsyslog voxxit/rsyslog |
|
|
|
fi |
|
|
|
|
|
|
|
echo |
|
|
|
echo "* [$(date +"%T")] building docker image" |
|
|
|
bash "$DIR/docker/build.sh" |
|
|
|
if [[ "$SKIP_BUILD" == "" ]]; then |
|
|
|
echo |
|
|
|
echo "* [$(date +"%T")] building docker image" |
|
|
|
bash "$DIR/docker/build.sh" |
|
|
|
fi |
|
|
|
|
|
|
|
echo |
|
|
|
echo "* [$(date +"%T")] running go tests and app tests in docker container" |
|
|
|