]> git.ipfire.org Git - thirdparty/patchwork.git/commit
docker: Use Ubuntu ports repositories on non-x86 architectures
authorRussell Currey <ruscur@russell.cc>
Wed, 1 May 2019 06:27:17 +0000 (16:27 +1000)
committerDaniel Axtens <dja@axtens.net>
Fri, 3 May 2019 06:12:50 +0000 (16:12 +1000)
commit1ed898a9a8e52b72978dfa4d69c97f649f048d6d
tree446739d469176e70aea0d091002dd1a818f48b26
parentc56683dd8a738de544eeba137bf4ca12a5523054
docker: Use Ubuntu ports repositories on non-x86 architectures

This should allow Patchwork to run "out of the box" in Docker on any
architecture with a) an Ubuntu port and b) support in the Postgres
multiarch Docker image, which includes at least arm64 and ppc64le.

It's a little gross hacking the Dockerfile like this, but I'm not sure
there's a more elegant way to do it.  Unfortunately it doesn't seem like
there's any way to do conditional COPY, and anything in RUN is plain
/bin/sh, so that's why it looks like it does.

Tested on ppc64le and on x86_64.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
tools/docker/Dockerfile
tools/docker/trusty-ports.list [new file with mode: 0644]
tools/docker/xenial-ports.list [new file with mode: 0644]