-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactory for 4.0.0 * updated
- Loading branch information
Showing
89 changed files
with
1,323 additions
and
2,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# How to Contribute | ||
|
||
We'd love to accept your patches and contributions to this project. There are | ||
just a few small guidelines you need to follow. | ||
|
||
## Contributor License Agreement | ||
|
||
Contributions to this project must be accompanied by a Contributor License | ||
Agreement. You (or your employer) retain the copyright to your contribution; | ||
this simply gives us permission to use and redistribute your contributions as | ||
part of the project. Head over to | ||
[LinkedData.Center's Contributor License Agreement (CLA)](http://sites.linkeddata.center/help/legal/cla_v1). | ||
|
||
You generally only need to submit a CLA once, so if you've already submitted one | ||
(even if it was for a different project), you probably don't need to do it | ||
again. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,36 @@ | ||
# Copyright (C) 2019-2020 LinkedData.Center - All Rights Reserved | ||
# Permission to copy and modify is granted under the MIT license | ||
FROM alpine/helm as helm | ||
FROM mikefarah/yq as yq | ||
FROM linkeddatacenter/sdaas-rdfstore:2.1.5 | ||
# Copyright (C) 2023 LinkedData.Center - All Rights Reserved | ||
FROM ubuntu:22.04 | ||
|
||
LABEL authors="[email protected]" | ||
|
||
USER root | ||
COPY --from=helm /usr/bin/helm /usr/bin/helm | ||
COPY --from=yq /usr/bin/yq /usr/bin/yq | ||
|
||
ARG SHACLVER=1.3.2 | ||
ARG SHACLROOT=/opt/shacl-${SHACLVER}/bin | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
gettext \ | ||
curl \ | ||
ca-certificates \ | ||
raptor2-utils \ | ||
bats \ | ||
git \ | ||
unzip \ | ||
jq \ | ||
csvtool && \ | ||
curl --output /tmp/shacl.zip https://repo1.maven.org/maven2/org/topbraid/shacl/${SHACLVER}/shacl-${SHACLVER}-bin.zip && \ | ||
unzip /tmp/shacl.zip -d /opt && \ | ||
chmod +x ${SHACLROOT}/* | ||
|
||
|
||
csvtool \ | ||
libxml2-utils | ||
|
||
###### Variables affecting the image building | ||
ENV SDAAS_BIN_DIR=/opt/sdaas | ||
ENV SDAAS_INSTALL_DIR=/opt/sdaas | ||
ENV SDAAS_WORKSPACE=/workspace | ||
ENV SDAAS_LOG_DIR="$SDAAS_WORKSPACE" | ||
ENV PATH=${SHACLROOT}:${PATH} | ||
|
||
COPY modules "$SDAAS_INSTALL_DIR" | ||
COPY bin/sdaas /usr/bin/sdaas | ||
COPY /etc/* /etc/ | ||
RUN chmod -R 0755 /usr/bin/sdaas | ||
|
||
###### Runtime variables | ||
ENV SD_UPLOAD_DIR /var/spool/sdaas | ||
ENV SD_SPARQL_ENDPOINT http://localhost:8080/sdaas/sparql | ||
ENV SD_QUADSTORE kb | ||
|
||
COPY scripts "$SDAAS_BIN_DIR" | ||
COPY sdaas-entrypoint.sh /sdaas-entrypoint.sh | ||
|
||
RUN mkdir -p "${SDAAS_BIN_DIR}" "${SDAAS_LOG_DIR}" "${SD_UPLOAD_DIR}" "${SDAAS_WORKSPACE}" ; \ | ||
chmod -R 0755 "$SDAAS_BIN_DIR" /sdaas-entrypoint.sh; \ | ||
chown -R jetty.jetty "${SDAAS_WORKSPACE}" "$SDAAS_LOG_DIR" "$SD_UPLOAD_DIR" | ||
RUN useradd -m -d /workspace -s /bin/bash -g users -u 1001 sdaas | ||
USER sdaas | ||
WORKDIR "${SDAAS_WORKSPACE}" | ||
|
||
## Variables affecting program execution | ||
ENV SD_LOG_PRIORITY=6 | ||
ENV SD_TMP_DIR="/tmp" | ||
|
||
USER jetty | ||
# Uncomment this to change the default web agent signature | ||
#ENV SD_APPLICATION_ID="example.org SDaaS" | ||
|
||
WORKDIR "${SDAAS_WORKSPACE}" | ||
ENTRYPOINT ["/sdaas-entrypoint.sh"] | ||
CMD [""] | ||
ENTRYPOINT ["/usr/bin/sdaas"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (C) 2023 LinkedData.Center - All Rights Reserved | ||
|
||
exec bash --init-file $SDAAS_INSTALL_DIR/core "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "3.3" | ||
|
||
services: | ||
|
||
kb: | ||
image: linkeddatacenter/sdaas-rdfstore | ||
ports: | ||
- "9999:8080" | ||
|
||
cli: | ||
build: . | ||
stdin_open: true | ||
tty: true | ||
depends_on: | ||
- kb | ||
volumes: | ||
- .:/workspace | ||
|
||
tests: | ||
build: . | ||
command: sdaas -c "bats tests/{unit,functional,system}" | ||
depends_on: | ||
- kb | ||
volumes: | ||
- .:/workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
____ ____ ____ | ||
/ ___|| _ \ __ _ __ _/ ___| | ||
\___ \| | | |/ _` |/ _` \___ \ | ||
___) | |_| | (_| | (_| |___) | | ||
|____/|____/ \__,_|\__,_|____/ | ||
|
||
Smart Data as a Service platform - Pitagora edition | ||
|
Oops, something went wrong.