File: Dockerfile

package info (click to toggle)
r-cran-rdflib 0.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 572 kB
  • sloc: xml: 66; sh: 13; makefile: 2
file content (59 lines) | stat: -rw-r--r-- 1,493 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM rocker/tidyverse:latest

## consider removing build deps
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq install \
    libxml2-dev \
    libcurl4-openssl-dev \
    libssl-dev \
    git \
    automake \
    libtool \
    gtk-doc-tools \
    bison \
    flex \
    libgmp-dev  \
    libmhash-dev \
    libgcrypt20-dev \
    libpcre3-dev \
    libv8-dev \
    libjq-dev \
    libpq-dev \
    libdb-dev \
    libsqlite3-dev \
    libmariadbclient-dev \
    librdf-storage-virtuoso \
	virtuoso-server \
	unixodbc-dev

RUN git clone git://github.com/dajobe/raptor.git && \
    cd raptor && \
    ./autogen.sh && \
    make && \
    make install && \
    cd .. && \
    git clone git://github.com/dajobe/rasqal.git && \
    cd rasqal && \
    ./autogen.sh && \
    make && \
    make install && \
    cd .. && \
    git clone git://github.com/dajobe/librdf.git && \
    cd librdf && \
    ./autogen.sh && \
    make && \
    make install

RUN R -e "install.packages('remotes')" && \
    R -e "remotes::install_github('ropensci/redland-bindings/R/redland')" && \
    R -e "remotes::install_github('ropensci/rdflib', dep=TRUE)"

RUN echo '[Local Virtuoso]\
          \nDriver=/usr/lib/x86_64-linux-gnu/odbc/virtodbc_r.so\
          \nAddress=localhost:1111' >> /etc/odbc.ini

RUN mkdir -p /etc/services.d/virtuoso \
  && echo '#!/usr/bin/with-contenv bash \
           \n exec virtuoso-t -c /etc/virtuoso-opensource-6.1/virtuoso.ini' \
           > /etc/services.d/virtuoso/run