-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (48 loc) · 1.33 KB
/
Copy pathDockerfile
File metadata and controls
57 lines (48 loc) · 1.33 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 riscv64/alpine:20210804
# update Alpine with latest versions
RUN echo '@edge http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
&& echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
&& apk update \
&& apk upgrade
# install CA certificates
RUN apk add ca-certificates
# install build tools
RUN apk add \
build-base \
coreutils \
file \
git \
perl \
automake \
autoconf \
cmake
# install tool dependencies for building RocksDB static library
RUN apk add \
curl \
bash \
wget \
tar \
openssl
# install RocksDB dependencies
RUN apk add \
snappy snappy-dev \
zlib zlib-dev \
bzip2 bzip2-dev \
lz4 lz4-dev \
zstd zstd-dev \
linux-headers
# install OpenJDK11
#RUN apk add openjdk11 \
# && apk add java-cacerts
# cleanup
RUN rm -rf /var/cache/apk/*
# puts javac in the PATH
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk PATH=/usr/lib/jvm/java-11-openjdk/bin:$PATH
# gflags from source
RUN cd /tmp &&\
git clone -b v2.0 --single-branch https://github.com/gflags/gflags.git &&\
cd gflags &&\
wget -O config.guess https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess &&\
wget -O config.sub https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.sub &&\
./configure --prefix=/usr && make && make install &&\
rm -rf /tmp/*