Skip to content

Commit b20dcca

Browse files
committed
docker build image: bump to ubuntu:24.04
- llvm bumps - drop ocilib - drop java-8 ldconfig - drop tensorflow - drop libjwt
1 parent 8794e0d commit b20dcca

3 files changed

Lines changed: 7 additions & 58 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fpco/pid1:22.04
1+
FROM ubuntu:24.04
22

33
ENV HOME /home/stackage
44
ENV LANG en_US.UTF-8

docker/02-apt-get-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ apt-get install -y \
134134
libzip-dev \
135135
libzmq3-dev \
136136
libzstd-dev \
137-
llvm-11 \
138137
llvm-12 \
139-
llvm-13 \
138+
llvm-14 \
139+
llvm-15 \
140140
locales \
141141
m4 \
142142
minisat \

docker/03-custom-install.sh

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,13 @@ export DEBIAN_FRONTEND=noninteractive
1010

1111
locale-gen en_US.UTF-8
1212

13-
# Buggy versions of ld.bfd fail to link some Haskell packages:
14-
# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
15-
# faster anyways and uses less RAM.
13+
# upstream ghc still defaults to ld.gold (though we should really switch to ld.bfd)
1614
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
1715
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
1816

19-
# install ocilib dependencies then build and install ocilib
20-
cd /tmp \
21-
&& wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
22-
&& dpkg -i oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
23-
&& rm -f oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
24-
&& wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
25-
&& dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
26-
&& rm -f oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
27-
&& wget https://github.com/vrogier/ocilib/archive/v4.3.2.tar.gz \
28-
&& tar xvf v4.3.2.tar.gz \
29-
&& cd /tmp/ocilib-4.3.2 \
30-
&& ./configure --with-oracle-import=linkage \
31-
--with-oracle-charset=ansi \
32-
--with-oracle-headers-path=/usr/include/oracle/12.1/client64 \
33-
--with-oracle-lib-path=/usr/lib/oracle/12.1/client64/lib \
34-
&& make \
35-
&& make install \
36-
&& cd \
37-
&& rm -rf /tmp/ocilib-4.3.2 \
38-
&& echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local.conf \
39-
&& echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-client.conf \
40-
&& ldconfig
41-
42-
# Add JDK to system paths.
43-
echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/" > /etc/ld.so.conf.d/openjdk.conf \
44-
&& ldconfig
17+
# # Add JDK to system paths.
18+
# echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server" > /etc/ld.so.conf.d/openjdk.conf \
19+
# && ldconfig
4520

4621
# Install erlang/otp platform and its dependencies
4722
ERLANG_DEB_FILE="esl-erlang_21.1-1~ubuntu~bionic_amd64.deb"
@@ -51,25 +26,13 @@ pushd /tmp \
5126
&& rm ${ERLANG_DEB_FILE} \
5227
&& popd
5328

54-
# Install the TensorFlow C API.
55-
curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0.tar.gz > libtensorflow.tar.gz \
56-
&& sudo tar zxf libtensorflow.tar.gz -C /usr \
57-
&& rm libtensorflow.tar.gz \
58-
&& ldconfig
59-
60-
export CLANG_PURE_LLVM_LIB_DIR=/usr/lib/llvm-9/lib;
61-
export CLANG_PURE_LLVM_INCLUDE_DIR=/usr/lib/llvm-9/include;
62-
6329
# protoc, for proto-lens-combinators test suite
6430
# Instructions from: https://google.github.io/proto-lens/installing-protoc.html
6531
PROTOC_ZIP=protoc-3.3.0-linux-x86_64.zip
6632
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP
6733
sudo unzip -o $PROTOC_ZIP -d /usr bin/protoc
6834
rm -f $PROTOC_ZIP
6935

70-
71-
echo /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server > /etc/ld.so.conf.d/java.conf
72-
7336
# Install librdkafka (Apache Kafka C/C++ library)
7437
wget -qO - https://packages.confluent.io/deb/5.2/archive.key | apt-key add -
7538
add-apt-repository "deb https://packages.confluent.io/deb/5.2 stable main"
@@ -84,17 +47,3 @@ Z3_VER=4.13.4
8447
&& rm z3-${Z3_VER}-x64-glibc-2.35.zip \
8548
&& ln -s /usr/local/z3-${Z3_VER}-x64-glibc-2.35/bin/z3 /usr/bin/z3
8649
)
87-
88-
LIBJWT_VER=1.12.1
89-
(
90-
pushd /tmp \
91-
&& wget https://github.com/benmcollins/libjwt/archive/v${LIBJWT_VER}.zip \
92-
&& unzip v${LIBJWT_VER}.zip \
93-
&& pushd libjwt-${LIBJWT_VER} \
94-
&& autoreconf -fiv \
95-
&& ./configure --disable-valgrind --disable-doxygen-doc --prefix /usr \
96-
&& make \
97-
&& sudo make install \
98-
&& popd \
99-
&& popd
100-
)

0 commit comments

Comments
 (0)