mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
no need to update database image
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
# set, tests will run in mbs-test-centos with Python 2 by default.
|
||||
# --with-pgsql: run tests with PostgreSQL, otherwise SQLite is used.
|
||||
# --no-tty: don't use tty for containers
|
||||
# --sudo: run docker via sudo
|
||||
# --no-pull: don't update docker images
|
||||
# --sudo: run Docker via sudo
|
||||
# --no-pull: don't update Docker images
|
||||
#
|
||||
# Please note that, both of them can have arbitrary value as long as one of
|
||||
# them is set. So, generally, it works by just setting to 1 or yes for
|
||||
@@ -81,7 +81,6 @@ if [ -n "$with_pgsql" ]; then
|
||||
# Database will be generated automatically by postgres container during launch.
|
||||
# Setting this password makes it possible to get into database container
|
||||
# and check the data.
|
||||
[ -n "$do_pull" ] && $docker pull "$db_container_name"
|
||||
db_bg_container=$(
|
||||
$docker run --rm --name "$db_container_name" \
|
||||
-e POSTGRES_PASSWORD=$db_password \
|
||||
|
||||
@@ -30,8 +30,8 @@ There are options to change the tests enviornment:
|
||||
* ``--py3``: run tests with Python 3.
|
||||
* ``--with-pgsql``: run tests with PostgreSQL database.
|
||||
* ``--no-tty``: don't use tty for containers
|
||||
* ``--sudo``: run docker via sudo
|
||||
* ``--no-pull``: don't update docker images
|
||||
* ``--sudo``: run Docker via sudo
|
||||
* ``--no-pull``: don't update Docker images
|
||||
|
||||
For example, ``contrib/run-unittests.sh --py3 --with-pgsql``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user