-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtestgen-base.dockerfile
More file actions
57 lines (50 loc) · 1.45 KB
/
testgen-base.dockerfile
File metadata and controls
57 lines (50 loc) · 1.45 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM python:3.12-alpine3.22
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONFAULTHANDLER=1
ENV ACCEPT_EULA=Y
RUN apk update && apk upgrade && apk add --no-cache \
# Tools needed for building the python wheels
gcc \
g++ \
make \
cmake \
musl-dev \
gfortran \
linux-headers=6.14.2-r0 \
# Tools needed for installing the MSSQL ODBC drivers \
curl \
gpg \
# Additional libraries needed and their dev counterparts. We add both so that we can remove
# the *-dev later, keeping the libraries
openblas=0.3.28-r0 \
openblas-dev=0.3.28-r0 \
unixodbc=2.3.12-r0 \
unixodbc-dev=2.3.12-r0 \
# Pinned versions for security
xz=5.8.1-r0
RUN apk add --no-cache \
--repository https://dl-cdn.alpinelinux.org/alpine/v3.21/community \
--repository https://dl-cdn.alpinelinux.org/alpine/v3.21/main \
libarrow=18.1.0-r0 \
apache-arrow-dev=18.1.0-r0
COPY --chmod=775 ./deploy/install_linuxodbc.sh /tmp/dk/install_linuxodbc.sh
RUN /tmp/dk/install_linuxodbc.sh
# Install TestGen's main project empty pyproject.toml to install (and cache) the dependencies first
COPY ./pyproject.toml /tmp/dk/pyproject.toml
RUN mkdir /dk
RUN python3 -m pip install --prefix=/dk /tmp/dk
RUN apk del \
gcc \
g++ \
make \
cmake \
musl-dev \
gfortran \
gpg \
linux-headers \
openblas-dev \
unixodbc-dev \
apache-arrow-dev
RUN rm /tmp/dk/install_linuxodbc.sh