Skip to content

Add ubuntu 20.04 image for linux-riscv64 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <tech@evolvedbinary.com>

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