Skip to content

Commit

Permalink
Merge pull request #19 from xgaia/feat/release-7.2.9
Browse files Browse the repository at this point in the history
Release 7.2.9
  • Loading branch information
mboudet authored Apr 18, 2023
2 parents 720aa03 + 2acff50 commit 0cef548
Showing 1 changed file with 18 additions and 15 deletions.
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

0 comments on commit 0cef548

Please sign in to comment.