-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.base
More file actions
37 lines (33 loc) · 1.08 KB
/
Dockerfile.base
File metadata and controls
37 lines (33 loc) · 1.08 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
FROM ubuntu:24.04
# Install dependencies
RUN apt-get update && apt-get install -y \
cmake \
g++ \
git \
libboost-all-dev \
libcln-dev \
libginac-dev \
libssl-dev \
make \
mysql-server \
sudo \
unzip \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install MySQL Connector/C++
RUN wget https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-9.2.0-linux-glibc2.28-x86-64bit.tar.gz
RUN tar -xzf mysql-connector-c++-9.2.0-linux-glibc2.28-x86-64bit.tar.gz
RUN mkdir /usr/local/mysql-connector
RUN cp -r mysql-connector-c++-9.2.0-linux-glibc2.28-x86-64bit/* /usr/local/mysql-connector/
# Install Alire
RUN wget https://github.com/alire-project/alire/releases/download/v2.0.2/alr-2.0.2-bin-x86_64-linux.zip
RUN unzip alr-2.0.2-bin-x86_64-linux.zip
RUN mv bin/alr /usr/local/bin/
RUN chmod +x /usr/local/bin/alr
RUN alr version
# Install glog
RUN git clone https://github.com/google/glog.git
RUN cd glog && cmake -DCMAKE_BUILD_TYPE=Release -S . -B build -G "Unix Makefiles"
RUN cd glog && cmake --build build
RUN cd glog && cmake --build build --target install