mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Refresh apt cache when building dh_virtualenv docker image (#7555)
When we tried to build debs for 1.13.0, the build failed because docker used a base docker image which had a stale apt cache. Fixes: #7540
This commit is contained in:
parent
a0f99f81b3
commit
8c75da916c
2 changed files with 5 additions and 2 deletions
1
changelog.d/7555.misc
Normal file
1
changelog.d/7555.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Refresh apt cache when building dh_virtualenv docker image.
|
|
@ -31,8 +31,10 @@ RUN mkdir /dh-virtualenv
|
||||||
RUN wget -q -O /dh-virtualenv.tar.gz https://github.com/matrix-org/dh-virtualenv/archive/matrixorg-20200519.tar.gz
|
RUN wget -q -O /dh-virtualenv.tar.gz https://github.com/matrix-org/dh-virtualenv/archive/matrixorg-20200519.tar.gz
|
||||||
RUN tar -xv --strip-components=1 -C /dh-virtualenv -f /dh-virtualenv.tar.gz
|
RUN tar -xv --strip-components=1 -C /dh-virtualenv -f /dh-virtualenv.tar.gz
|
||||||
|
|
||||||
# install its build deps
|
# install its build deps. We do another apt-cache-update here, because we might
|
||||||
RUN cd /dh-virtualenv \
|
# be using a stale cache from docker build.
|
||||||
|
RUN apt-get update -qq -o Acquire::Languages=none \
|
||||||
|
&& cd /dh-virtualenv \
|
||||||
&& env DEBIAN_FRONTEND=noninteractive mk-build-deps -ri -t "apt-get -y --no-install-recommends"
|
&& env DEBIAN_FRONTEND=noninteractive mk-build-deps -ri -t "apt-get -y --no-install-recommends"
|
||||||
|
|
||||||
# build it
|
# build it
|
||||||
|
|
Loading…
Reference in a new issue