Skip to content

Commit

Permalink
Add ubuntu 20.04 image for linux-riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
luhenry committed Nov 7, 2023
1 parent 19470f5 commit fada6dc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ $ cd ubuntu18_s390x
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:ubuntu18_s390x-be .
```

# Ubuntu 20.04 Docker Images
To build the Ubuntu 20.04 Docker images locally:
```bash
$ git clone https://github.com/evolvedbinary/docker-rocksjava
$ cd docker-rocksjava
```

## Requires riscv64 arch CPU
```
$ cd ubuntu20_riscv64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:ubuntu20_riscv64-be .
```

# Alpine 3.10 Docker Images
**NOTE**: Alpine uses *muslc* instead of *glibc*, and so RocksDB builds on Alpine will only run on systems with muslc.

Expand Down
17 changes: 17 additions & 0 deletions ubuntu20_riscv64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM riscv64/ubuntu:20.04

MAINTAINER Evolved Binary Ltd <[email protected]>

LABEL name="Ubuntu 20.04 (riscv64) RocksJava Build Environment" \
vendor="Evolved Binary Ltd"

RUN apt-get -y update \
&& apt-get -y dist-upgrade \
&& apt-get -y install cmake \
&& apt-get -y install g++ make perl \
&& apt-get -y install libjemalloc-dev zlib1g-dev libbz2-dev liblz4-dev libsnappy-dev libzstd-dev libgflags-dev \
&& apt-get -y install openssl openjdk-11-jdk-headless wget curl

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-riscv64
ENV PATH=$JAVA_HOME:$PATH
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

0 comments on commit fada6dc

Please sign in to comment.