Skip to content
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

Release 7.2.9 #19

Merged
merged 2 commits into from
Apr 18, 2023
Merged
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
33 changes: 18 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Compile s3fs in a separate image
FROM alpine:3.16 AS s3fs-builder
FROM alpine:3.17 AS s3fs-builder
RUN apk add --update fuse fuse-dev automake gcc make libcurl curl-dev libxml2 libxml2-dev \
openssl openssl-dev autoconf g++
RUN wget https://github.com/s3fs-fuse/s3fs-fuse/archive/refs/tags/v1.91.zip && \
Expand All @@ -8,31 +8,34 @@ WORKDIR s3fs-fuse-1.91
RUN ./autogen.sh && ./configure && make && make install

# Compile virtuoso in a separate image
FROM alpine:3.16 AS builder
FROM alpine:3.17 AS builder
MAINTAINER Xavier Garnier '[email protected]'

# Environment variables
ENV VIRTUOSO_GIT_URL https://github.com/openlink/virtuoso-opensource.git
ENV VIRTUOSO_DIR /virtuoso-opensource
ENV VIRTUOSO_GIT_VERSION 7.2.8
ENV VIRTUOSO_GIT_VERSION 7.2.9

COPY patch.diff /patch.diff

# Install prerequisites, Download, Patch, compile and install
# Install prerequisites
RUN apk add --update git automake autoconf automake libtool bison flex gawk gperf openssl \
g++ openssl-dev make patch xz-dev bzip2-dev && \
git clone -b v${VIRTUOSO_GIT_VERSION} --single-branch --depth=1 ${VIRTUOSO_GIT_URL} ${VIRTUOSO_DIR} && \
cd ${VIRTUOSO_DIR} && \
patch ${VIRTUOSO_DIR}/libsrc/Wi/sparql_io.sql < /patch.diff && \
./autogen.sh && \
CFLAGS="-O2 -m64" && export CFLAGS && \
./configure --disable-bpel-vad --enable-conductor-vad --enable-fct-vad --disable-dbpedia-vad --disable-demo-vad --disable-isparql-vad --disable-ods-vad --disable-sparqldemo-vad --disable-syncml-vad --disable-tutorial-vad --program-transform-name="s/isql/isql-v/" && \
make -j $(grep -c '^processor' /proc/cpuinfo) && \
make -j $(grep -c '^processor' /proc/cpuinfo) install

g++ openssl-dev make patch xz-dev bzip2-dev
# Download sources
RUN git clone -b v${VIRTUOSO_GIT_VERSION} --single-branch --depth=1 ${VIRTUOSO_GIT_URL} ${VIRTUOSO_DIR}
WORKDIR ${VIRTUOSO_DIR}
# Patch
RUN patch ${VIRTUOSO_DIR}/libsrc/Wi/sparql_io.sql < /patch.diff
# Complile
RUN ./autogen.sh
RUN CFLAGS="-O2 -m64" && export CFLAGS && \
./configure --disable-bpel-vad --enable-conductor-vad --enable-fct-vad --disable-dbpedia-vad --disable-demo-vad --disable-isparql-vad --disable-ods-vad --disable-sparqldemo-vad --disable-syncml-vad --disable-tutorial-vad --program-transform-name="s/isql/isql-v/"
RUN make -j $(grep -c '^processor' /proc/cpuinfo)
# Install
RUN make -j $(grep -c '^processor' /proc/cpuinfo) install

# Final image
FROM alpine:3.16
FROM alpine:3.17
ENV PATH /usr/local/virtuoso-opensource/bin/:$PATH
COPY --from=s3fs-builder /usr/local/bin/s3fs /usr/local/bin/s3fs

Expand Down