forked from Rillke/mdbtools-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.deb-src
153 lines (142 loc) · 3.76 KB
/
Dockerfile.deb-src
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
ARG BASE_IMAGE=debian:bullseye
# #########################################################################
FROM ${BASE_IMAGE} as final
LABEL maintainer="webmaster@kit-ar.com"
ENV DEBIAN_FRONTEND="noninteractive"
# Suppress an apt-key warning about standard out not being a terminal. Use in this script is safe.
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="DontWarn"
## prob won't be needed since, on of 2020-01-09, pyhelm didn't support helm3
## uncomment if really needed
# ENV PYHELM_PIP3=pyhelm
SHELL ["/bin/bash", "-c"]
RUN \
echo "===> Enabling Multiverse..." && \
sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list && \
\
echo "===> Speeding up apt and dpkg..." && \
echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup && \
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache && \
echo "APT::Install-Recommends \"0\";" > /etc/apt/apt.conf.d/no-install-recommend && \
echo "APT::Install-Suggests \"0\";" > /etc/apt/apt.conf.d/no-install-suggested && \
\
echo "===> Initial packages update" && \
apt-get update && \
apt-get -y install \
apt-transport-https \
lsb-release \
# software-properties-common \
# apt-utils dialog \
&& \
\
echo "===> Adding PPAs..." && \
echo OFF: ..... && \
apt-get update && \
\
echo OFF:echo "===> Updating TLS certificates..." && \
echo OFF:apt-get -y install \
ca-certificates \
openssl \
ssl-cert \
&& \
\
echo OFF:echo "===> Upgrading distribution..." && \
echo OFF:apt-get -y dist-upgrade && \
\
echo "===> Adding usefull packages ..." && \
apt-get -y install \
make \
\
bash \
bash-completion \
less \
nano \
jq \
\
curl \
wget \
\
zip \
unzip \
xz-utils \
p7zip-full \
\
git \
\
mc \
dos2unix \
\
postgresql-client \
default-mysql-client \
sqlite3 \
\
&& \
apt-get -y install \
\
libtool \
automake \
autoconf \
\
bison \
flex \
gawk \
\
unixodbc-dev \
\
# using the ones below to troubleshoot macro errors \
pkg-config \
gettext \
\
# man \
# mdbtools \
&& \
cd /tmp && \
git config --global http.sslverify false && \
git clone -b dev https://github.com/mdbtools/mdbtools && \
cd mdbtools && \
ls -la && \
\
cd /tmp/mdbtools && \
ls -la && \
autoreconf -i -f && \
# ./configure && \
./configure --enable-glib --with-unixodbc=/usr/local && \
make && \
make install && \
ldconfig && \
\
apt-get -y purge \
libtool \
automake \
autoconf \
\
bison \
flex \
gawk \
\
unixodbc-dev \
\
# using the ones below to troubleshoot macro errors \
pkg-config \
gettext \
&& \
mdb-ver --version && \
\
echo "===> Cleaning up ..." && \
# apt-get purge --autoremove -y \
# gcc g++ \
# || true \
# && \
apt-get autoremove --purge -y && \
apt-get clean -y && \
rm -rf \
"${HOME}/.cache" \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
&& \
echo "..."
COPY scripts/* /usr/bin
RUN chmod a+x /usr/bin/*.sh
# set pager used by `man` to less
# ENV PAGER="less"
WORKDIR "/opt/mdbdata"