diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2020-04-28 15:51:41 +1000 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2020-04-28 18:23:24 +1000 |
commit | 16fbe8524756013713365fc2a656833639c90ec2 (patch) | |
tree | 7f53eb421c557cdf9c02209cb38ab6e924e18d7a /Dockerfile-debian-python3-sqlite | |
parent | e3931333da96fc8f665acc9c8f1673b83c2b1f4b (diff) | |
download | mediagoblin-16fbe8524756013713365fc2a656833639c90ec2.tar.lz mediagoblin-16fbe8524756013713365fc2a656833639c90ec2.tar.xz mediagoblin-16fbe8524756013713365fc2a656833639c90ec2.zip |
Fix dependencies and tests for clean Python 2 & 3 test runs under Docker.
This change gives a clean test run in the Debian-based Python 2 and Python 3
docker images.
Diffstat (limited to 'Dockerfile-debian-python3-sqlite')
-rw-r--r-- | Dockerfile-debian-python3-sqlite | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Dockerfile-debian-python3-sqlite b/Dockerfile-debian-python3-sqlite index ea0639f8..5c2c70d3 100644 --- a/Dockerfile-debian-python3-sqlite +++ b/Dockerfile-debian-python3-sqlite @@ -133,12 +133,20 @@ USER www-data # changed from the default - say you've enabled some plugins or switched # database type. So instead we're doing a git clone. We could potentially use # `git archive` but this still wouldn't account for the submodules. +# +# TODO: Figure out a docker-only way to do the build and run from our local +# version, so that local changes are immediately available to the running +# container. Not as easy as it sounds. We have this working with docker-compose, +# but still uses upstream MediaGoblin for the build. RUN git clone --depth=1 git://git.savannah.gnu.org/mediagoblin.git -b master . RUN ./bootstrap.sh RUN VIRTUALENV_FLAGS='--system-site-packages' ./configure RUN make +# Run the tests. +RUN ./bin/python -m pytest ./mediagoblin/tests --boxed + # Only safe if being run on a clean git checkout. Otherwise you may have already # customised mediagoblin.ini to already install these. RUN echo '[[mediagoblin.media_types.audio]]' >> mediagoblin.ini |