aboutsummaryrefslogtreecommitdiffstats
path: root/extra/docker/Dockerfile.test-base
blob: 2249499b7ee77c1a1ed6ea4e7bc5c893999b3229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

FROM ubuntu:jammy

ENV CARGO_HOME=/usr/local/cargo \
    PATH=/usr/local/cargo/bin:$PATH \
    DEBIAN_FRONTEND="noninteractive" \
    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 --no-install-recommends \
        software-properties-common wget pkg-config git ca-certificates \
        rustc cargo \
        libpq-dev libsnappy-dev libsodium-dev software-properties-common \
        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; \
    pipenv --version

# Compile and install diesel
RUN set -eux; \
    cargo install diesel_cli --version 1.3.1 --no-default-features --features postgres; \
    diesel --version