https://github.com/evolvedbinary/docker-rocksjava
Docker images for building RocksDB Java API
https://github.com/evolvedbinary/docker-rocksjava
docker-image rocksdb
Last synced: 8 months ago
JSON representation
Docker images for building RocksDB Java API
- Host: GitHub
- URL: https://github.com/evolvedbinary/docker-rocksjava
- Owner: evolvedbinary
- License: bsd-3-clause
- Created: 2016-08-28T17:33:56.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-07-06T07:33:16.000Z (11 months ago)
- Last Synced: 2025-07-06T08:35:23.026Z (11 months ago)
- Topics: docker-image, rocksdb
- Language: Dockerfile
- Size: 86.9 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker images for cross-compiling RocksJava
These Docker images simply provide a suitable build environment, they do not
include RocksDB or RocksJava itself. They could however also be used as base
images for a RocksDB runtime environment.
https://hub.docker.com/r/evolvedbinary/rocksjava/
# CentOS 5 Docker Images
To build the CentOS 5 Docker images locally:
```bash
$ git clone https://github.com/evolvedbinary/docker-rocksjava
$ cd docker-rocksjava
```
## Requires x86_64 arch CPU
```
$ cd centos5_x64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:centos5_x64-be .
$ cd ../centos5_x86
$ docker build --rm --force-rm --squash --platform linux/386 -t evolvedbinary/rocksjava:centos5_x86-be .
```
# CentOS 6 Docker Images
To build the CentOS 6 Docker images locally:
```bash
$ git clone https://github.com/evolvedbinary/docker-rocksjava
$ cd docker-rocksjava
```
## Requires x86_64 arch CPU
```
$ cd centos6_x64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:centos6_x64-be .
$ cd ../centos6_x86
$ docker build --rm --force-rm --squash --platform linux/386 -t evolvedbinary/rocksjava:centos6_x86-be .
```
# CentOS 7 Docker Images
To build the CentOS 7 Docker images locally:
```bash
$ git clone https://github.com/evolvedbinary/docker-rocksjava
$ cd docker-rocksjava
```
## Requires x86_64 arch CPU
```
$ cd centos7_x64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:centos7_x64-be .
$ cd ../centos7_x86
$ docker build --rm --force-rm --squash --platform linux/386 -t evolvedbinary/rocksjava:centos7_x86-be .
```
## Requires ppc64le arch CPU
```
$ cd centos7_ppc64le
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:centos7_ppc64le-be .
```
## Requires arm64v8 arch CPU
```
$ cd centos7_arm64v8
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:centos7_arm64v8-be .
```
## Requires s390x arch CPU
```
$ cd centos7_s390x
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:centos7_s390x-be .
```
## Requires x86_64 arch CPU
```
$ cd rockylinux8_x64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:rockylinux8_x64-be .
```
## Requires s390x arch CPU
```
$ 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 .
```
# Ubuntu 22.04 Docker Images
To build the Ubuntu 22.04 Docker images locally:
```bash
$ git clone https://github.com/evolvedbinary/docker-rocksjava
$ cd docker-rocksjava
```
## Requires x86_64 arch CPU
```
$ cd ubuntu22_x64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:ubuntu22_x64-be .
```
# Alpine 3.16 Docker Images
**NOTE**: Alpine uses *muslc* instead of *glibc*, and so RocksDB builds on Alpine will only run on systems with muslc.
To build the Alpine 3.16 Docker images locally:
```bash
$ git clone https://github.com/evolvedbinary/docker-rocksjava
$ cd docker-rocksjava
```
## Requires x86_64 arch CPU
```
$ cd alpine3_x64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:alpine3_x64-be .
$ cd ../alpine3_x86
$ docker build --rm --force-rm --squash --platform linux/386 -t evolvedbinary/rocksjava:alpine3_x86-be .
```
## Requires ppc64le arch CPU
```
$ cd alpine3_ppc64le
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:alpine3_ppc64le-be .
```
## Requires arm64v8 arch CPU
```
$ cd alpine3_arm64v8
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:alpine3_arm64v8-be .
```
## Requires s390x arch CPU
```
$ cd alpine3_s390x
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:alpine3_s390x-be .
```
## Requires riscv64 arch CPU
**NOTE** This actually uses Alpine 3.20 and OpenJDK 20 as those are the minimum versions that support RISCV on Alpine.
```
$ cd alpine3_riscv64
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:alpine3_riscv64-be .
```
# Testing a Docker Image
For example to test the Docker CentOS 6 x64 build environment for RocksDB:
```bash
$ docker run --volume /local-path-to/rocksdb:/rocksdb-host -it evolvedbinary/rocksjava:centos6_x64-be /bin/bash
```