Skip to content

Commit

Permalink
update docker images and cache for faster tests (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist authored Jan 31, 2022
1 parent 69ef772 commit 747d232
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/sfn-wdl-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ jobs:
run: |
source scripts/init_ci_runner.sh
source environment.test
# TODO: remove moto hack once change is merged
git clone https://github.com/morsecodist/moto.git ; cd moto ; git checkout tmorse-docker-networks ; docker build -t moto_local . ; cd .. ; rm -rf moto
docker build -t ghcr.io/chanzuckerberg/swipe:$(cat version) .
scripts/run_mock_server.sh &
for i in {1..60}; do if timeout 1 bash -c "echo > /dev/tcp/localhost/9000"; then break; elif [[ $i == 60 ]]; then exit 1; else sleep 1; fi; done
docker pull ghcr.io/chanzuckerberg/swipe:latest
docker build --cache-from ghcr.io/chanzuckerberg/swipe:latest -t ghcr.io/chanzuckerberg/swipe:$(cat version) .
docker-compose pull
docker-compose up &
make deploy-mock test
terraform_format:
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ version: "3.8"
services:
motoserver:
container_name: motoserver
image: moto_local
image: motoserver/moto
environment:
- MOTO_DOCKER_NETWORK=awsnet
- MOTO_DOCKER_NETWORK_NAME=awsnet
- MOTO_DOCKER_NETWORK_MODE=overlay
ports:
- "9000:5000"
volumes:
Expand Down
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
awscli
boto3
flake8
mypy
yq
yq
7 changes: 0 additions & 7 deletions scripts/run_mock_server.sh

This file was deleted.

0 comments on commit 747d232

Please sign in to comment.