A super simple Linked Data Proxy for SDaaS application based on the official php:8-apache
1.4K

A super simple Linked Data Proxy for SDaaS application. It is based on the official php:8-apache docker image
It allows the discovery of all rdf data dumps (i.e. files with .ttl, .nt, and .rdf extensions) contained in the directory data/rdf according with the void well-known uri specification.
Just access the URI /.well-known/void in the root of the web server.
docker run --rm -p 80:80 linkeddatacenter:sdaas-lp
curl -L http://localhost:80/.well-known/void
Create your customized image substituting the file header.php in web root with one of your choice.
FROM linkeddatacenter:sdaas-lp
COPY ./myheader.php /var/www/html/html/header.php
WARNING: the default prefix : must be defined see example
Run functional tests:
docker run -d --name lp -p 80:80 -v "${PWD}":/app --workdir /app php:8-apache
docker exec -ti lp bash
ln -sf /app/webconf/host.conf /etc/apache2/sites-enabled/000-default.conf && \
ln -sf /app/webroot/* /var/www/html/ && \
a2enmod rewrite
service apache2 reload
# To run functional tests:
apt-get update -y && apt-get install -y bats raptor2-utils
bats tests/functional
exit
docker rm -f lp
Run integration tests:
docker build -t lp . && \
docker run -d --name lp -p 8080:80 lp && \
test $(curl -L http://localhost:8080/.well-known/void | wc -l) -eq 23 || echo "😔 INTEGRATION TEST FAILED" && \
docker rm -f lp && \
docker image rm lp && echo "✔ INTEGRATION TEST OK"
A new docker image is automatically pushed on any succesfully commit to master branch by codefresh.yaml script.
To push a new docker image to docker hub:
docker login
# input the docker hub credentials...
docker build -t linkeddatacenter/sdaas-lp .
docker tag linkeddatacenter/sdaas-lp linkeddatacenter/sdaas-ce:1.0.0
docker push linkeddatacenter/sdaas-lp
docker push linkeddatacenter/sdaas-ce:1.0.0
Copyright (C) 2018-2021 LinkedData.Center SRL
Permission to copy and modify is granted under the MIT license
Content type
Image
Digest
sha256:0fc08523d…
Size
169.3 MB
Last updated
about 3 years ago
docker pull linkeddatacenter/sdaas-lp