Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example configuration for using vocprez in combination with vocbench #56

Open
mielvds opened this issue May 25, 2021 · 0 comments
Open

Comments

@mielvds
Copy link

mielvds commented May 25, 2021

Hi!

The documentation mentions that vocprez works out of the box with vocbench. Could you provide an example (or docker-compose) on how to set this up?

Happy to help btw, here's a boilerplate:

Vocbench Dockerfile

FROM openjdk:8-jdk-alpine

ENV vb_version=9.0.0
ENV st_version=9.0

ADD https://bitbucket.org/art-uniroma2/vocbench3/downloads/vocbench3-${vb_version}-full.zip /tmp
RUN set -eux ; \
	mkdir /opt/vocbench3 ; \
	mkdir /opt/vocbench3/data ; \
	cd /opt/vocbench3 ; \
	unzip -q /tmp/vocbench3-${vb_version}-full.zip -d . ; \
	chmod -R u=rwX,go=rX semanticturkey-${st_version} ; \
	chmod +x semanticturkey-${st_version}/bin/* ; \
	sed -i 's/\(data\.dir\)=.*/\1=..\/data\/SemanticTurkeyData/' /opt/vocbench3/semanticturkey-${st_version}/etc/it.uniroma2.art.semanticturkey.cfg ; \
	rm /tmp/vocbench3-${vb_version}-full.zip

WORKDIR /opt/vocbench3/semanticturkey-$st_version

EXPOSE 1979

ENTRYPOINT ["bin/karaf"]
CMD ["server"]

docker-compose.yml

version: "3"

networks:
  sparql:
    driver: bridge
  services:
    vocbench3:
      build: ./vocbench3
      image: vocbench
      ports:
      - "1979:1979"
      volumes:
      - "$PWD/data/stdata:/opt/vocbench3/data"
      networks:
        - sparql
    vocnw:
      build: https://github.com/RDFLib/VocPrez.git
      image: vocprez:latest
      restart: unless-stopped
      ports:
      - "5000:5000"
      volumes:
      - $PWD/config/vocprez-config.py:/vocprez/_config/__init__.py
      stdin_open: true
      tty: true
      networks:
        - sparql

How would I need to set up vocprez-config.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant