diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-09-21 19:57:35 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-09-21 19:57:35 -0700 |
commit | b54259998888c8010a442f55d31c8d296b337946 (patch) | |
tree | a59fc6ac989b1c82d6f21e3044f6351ed71b79ed /extra/docker | |
parent | 8bdd5fd92a33cf05424447241033bd529b68af77 (diff) | |
download | fatcat-bnewbold-ubuntu-jammy.tar.gz fatcat-bnewbold-ubuntu-jammy.zip |
docker: updates for jammy base imagebnewbold-ubuntu-jammy
Diffstat (limited to 'extra/docker')
-rw-r--r-- | extra/docker/Dockerfile.test-base | 17 | ||||
-rw-r--r-- | extra/docker/README.md | 3 |
2 files changed, 14 insertions, 6 deletions
diff --git a/extra/docker/Dockerfile.test-base b/extra/docker/Dockerfile.test-base index 99e27728..2249499b 100644 --- a/extra/docker/Dockerfile.test-base +++ b/extra/docker/Dockerfile.test-base @@ -1,5 +1,5 @@ -FROM ubuntu:focal +FROM ubuntu:jammy ENV CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ @@ -7,15 +7,21 @@ ENV CARGO_HOME=/usr/local/cargo \ LC_ALL=C.UTF-8 \ LANG=C.UTF-8 +# distro version of pipenv does not work on ubuntu jammy +# https://github.com/pypa/pipenv/issues/5088 + # APT dependencies RUN set -eux; \ apt update -qy; \ - apt install -y \ - software-properties-common wget pkg-config git \ + apt install -y --no-install-recommends \ + software-properties-common wget pkg-config git ca-certificates \ rustc cargo \ libpq-dev libsnappy-dev libsodium-dev software-properties-common \ - python3.8 python3.8-dev python3.8-venv python3.8-distutils \ - pipenv python3-dev python3-pip python3-wheel python3-requests python3-six python3-pytest; \ + python3.10 python3.10-dev python3.10-venv python3.10-distutils \ + python3-dev python3-pip python3-wheel python3-requests python3-six python3-pytest; \ + wget https://archive.org/download/ia-deb-pkgs/pipenv_11.15-0ia1_all.deb; \ + apt install -y ./pipenv_11.15-0ia1_all.deb; \ + apt-get clean; \ mkdir -p $CARGO_HOME; \ chmod -R a+w $CARGO_HOME; \ rustc --version; \ @@ -25,4 +31,3 @@ RUN set -eux; \ RUN set -eux; \ cargo install diesel_cli --version 1.3.1 --no-default-features --features postgres; \ diesel --version - diff --git a/extra/docker/README.md b/extra/docker/README.md index c102de74..b3445b0c 100644 --- a/extra/docker/README.md +++ b/extra/docker/README.md @@ -20,6 +20,9 @@ TODO: ## Test Base Image +NOTE: check that you don't have `sshuttle` or other VPN things running before +attempting a build. + docker build -t bnewbold/fatcat-test-base -f Dockerfile.test-base . If it looks good: |