Skip to content

Commit 338aad0

Browse files
authored
Merge pull request #2 from luhenry/port-riscv64
Add ubuntu 20.04 image for linux-riscv64
2 parents 19470f5 + fada6dc commit 338aad0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ $ cd ubuntu18_s390x
7272
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:ubuntu18_s390x-be .
7373
```
7474

75+
# Ubuntu 20.04 Docker Images
76+
To build the Ubuntu 20.04 Docker images locally:
77+
```bash
78+
$ git clone https://github.com/evolvedbinary/docker-rocksjava
79+
$ cd docker-rocksjava
80+
```
81+
82+
## Requires riscv64 arch CPU
83+
```
84+
$ cd ubuntu20_riscv64
85+
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:ubuntu20_riscv64-be .
86+
```
87+
7588
# Alpine 3.10 Docker Images
7689
**NOTE**: Alpine uses *muslc* instead of *glibc*, and so RocksDB builds on Alpine will only run on systems with muslc.
7790

ubuntu20_riscv64/Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM riscv64/ubuntu:20.04
2+
3+
MAINTAINER Evolved Binary Ltd <tech@evolvedbinary.com>
4+
5+
LABEL name="Ubuntu 20.04 (riscv64) RocksJava Build Environment" \
6+
vendor="Evolved Binary Ltd"
7+
8+
RUN apt-get -y update \
9+
&& apt-get -y dist-upgrade \
10+
&& apt-get -y install cmake \
11+
&& apt-get -y install g++ make perl \
12+
&& apt-get -y install libjemalloc-dev zlib1g-dev libbz2-dev liblz4-dev libsnappy-dev libzstd-dev libgflags-dev \
13+
&& apt-get -y install openssl openjdk-11-jdk-headless wget curl
14+
15+
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-riscv64
16+
ENV PATH=$JAVA_HOME:$PATH
17+
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

0 commit comments

Comments
 (0)