Update Jenkinsfile
This commit is contained in:
parent
67cd1a12d4
commit
10e5143df8
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -12,7 +12,7 @@ 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 /bin/bash'
|
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 'curl http://localhost:8000'
|
sh 'curl http://localhost:8000'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue