-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
88 lines (77 loc) · 2.16 KB
/
Dockerfile
File metadata and controls
88 lines (77 loc) · 2.16 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM balenalib/rpi-raspbian:buster
RUN apt-get update && apt-get install -y \
autoconf \
automake \
autotools-dev \
bison \
cmake \
curl \
flex \
g++ \
gcc \
jq \
libffi-dev \
libkrb5-3 \
libkrb5-dev \
libncurses5-dev \
libsasl2-2 \
libsasl2-dev \
libsasl2-modules-gssapi-mit \
libssl-dev \
libtool \
make \
unixodbc \
unixodbc-dev \
unzip \
wget \
zlib1g-dev
# The following is not necessary for Kerberos authentication but makes testing
# https://github.com/kafka4beam/sasl_auth easier
RUN apt-get install -y \
krb5-kdc \
krb5-admin-server \
expect
RUN cmake --version
RUN apt-get update && apt-get install -y \
ssh \
wget \
git \
zip \
build-essential \
debhelper \
curl \
unzip \
debhelper \
dpkg-dev \
vim
WORKDIR /
RUN apt-get install -y gcc make zlib1g-dev libffi-dev libssl-dev \
&& wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
&& tar xvf Python-3.7.4.tgz \
&& cd Python-3.7.4 \
&& echo "_socket socketmodule.c" >> Modules/Setup.dist \
&& echo "_ssl _ssl.c -DUSE_SSL -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -L/usr/local/ssl/lib -lssl -lcrypto" >> Modules/Setup.dist \
&& ./configure --prefix=/usr/local/python3.7.4 \
&& make \
&& make install \
&& rm -rf /usr/bin/python3 /usr/bin/python \
&& ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python3 \
&& ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python
RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \
&& python /tmp/get-pip.py \
&& python3 /tmp/get-pip.py
ENV PATH=/usr/local/python3.7.4/bin:$PATH
ENV OPENSSL_ROOT_DIR=/usr/lib/arm-linux-gnueabihf/
COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build 3.21.0
# cleanup
RUN apt-get clean\
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Elixir complains if runs without UTF-8
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
# Install Rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /
CMD [ "/bin/bash" ]