I have a test which tests an application that is deployed/used as a docker-compose file, but to test it I spin up the relevant elements and test directly against the other containers.
It seems that with my config below I hit a docker-compose seqfault when using the machine image.
Status: Downloaded newer image for redis:latest
Creating repo_kamaji-localstack_1 …
Creating repo_kamaji-redis_1 …
/bin/bash: line 1: 26306 Segmentation fault (core dumped) docker-compose up -d kamaji-localstack kamaji-redis
Exited with code 139
This seems like a docker-compose error/bug, but I can’t reproduce it locally with ubuntu 18.06, any ideas on how to work through/around this so that I can get my tests to run?
version: 2
jobs:
build:
machine:
image: circleci/classic:201808-01
working_directory: ~/repo
steps:
- checkout
- run:
name: Set Python Version
command: pyenv global 3.7.0
- run:
name: install/update pip pipenv
command: |
sudo python -m pip install --upgrade pip setuptools wheel
sudo python -m pip install pipenv
- run:
name: install docker-compose
command: |
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# remove .env file in order to use set ENVIRONMENT VARIABLES
rm .env
- run:
name: install application python dependencies
command: |
pipenv sync --dev
- run:
name: run test-server
command: |
docker-compose up -d kamaji-localstack kamaji-redis
sleep 5
KAMAJI_TESTING=True REDIS_WORKER_TIMEOUT_SECONDS=5 pipenv run pytest --cov=kamaji tests/test_kamaji_server.py -v --junitxml=./tests/reports/test_kamaji_server.xml
docker-compose down