Skip to content

Alpine riscv64 #3

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ $ cd alpine3_arm64v8
$ docker build --rm --force-rm --squash -t evolvedbinary/rocksjava:alpine3_arm64v8-be .
```

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

## Requires s390x arch CPU
```
$ cd alpine3_s390x
Expand Down
57 changes: 57 additions & 0 deletions alpine3_riscv64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/*