Update Jenkinsfile

This commit is contained in:
Gabriel Augendre 2018-05-03 11:59:45 +02:00 committed by GitHub
parent 10e5143df8
commit ba8d8217da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
Jenkinsfile vendored
View file

@ -12,8 +12,8 @@ pipeline {
sh 'docker container stop workout || true' sh 'docker container stop workout || true'
sh 'docker network create test_workout || true' sh 'docker network create test_workout || true'
sh 'docker container run --rm --name pg --network test_workout -d postgres' sh 'docker container run --rm --name pg --network test_workout -d postgres'
sh 'docker container run --rm --name workout --network test_workout -p 8000:8000 -e DATABASE_URL=postgres://postgres:postgres@pg:5432/postgres -e SECRET_KEY=secret -d workout:jenkins' sh 'docker container run --rm --name workout --network test_workout -p 8000:8000 -e DJANGO_ENV=dev -e DATABASE_URL=postgres://postgres:postgres@pg:5432/postgres -e SECRET_KEY=secret -d workout:jenkins'
sh 'curl http://localhost:8000' echo 'Do some testing here...'
} }
} }
} }