Browse Source

Use Arch as a base image.

Stefano Cossu 1 year ago
parent
commit
2de612db7f
2 changed files with 15 additions and 10 deletions
  1. 9 3
      README.md
  2. 6 7
      lsup_rdf.Dockerfile

+ 9 - 3
README.md

@@ -3,11 +3,17 @@
 For testing the installation environment of Lakesuperior libraries or build
 software upon them.
 
-Based on Alpine Linux.
+Based on [Arch Linux](https://archlinux.org/).
+
+C and Python libraries are installed.
 
 ## Usage
 
 ```
-docker build -f lsup_repo.Dockerfile -t lsup_repo:latest .
-docker run lsup_repo:latest sh
+docker build -f lsup_rdf.Dockerfile -t lsup_rdf:latest .
+docker run -it lsup_rdf:latest bash
 ```
+
+## TODO
+
+Add lsup_repo when viable.

+ 6 - 7
lsup_rdf.Dockerfile

@@ -1,14 +1,13 @@
-FROM alpine:latest
+FROM archlinux:base-devel
 
-RUN apk update
-RUN apk add -t devtools build-base git
-RUN apk add util-linux-dev re2c python3 python3-dev py3-pip
+RUN pacman -Syu --noconfirm
+RUN pacman -S --noconfirm git python python-pip re2c lmdb xxhash
 
-WORKDIR /opt/lakesuperior/lsup_rdf
+ENV PREFIX /opt/lakesuperior/lsup_rdf
+WORKDIR $PREFIX
 RUN git clone --recurse-submodules https://git.knowledgetx.com/scossu/lsup_rdf.git src
-WORKDIR src
 
+WORKDIR src
 RUN make install
 RUN make py
 
-#RUN apk del devtools