gdcc / dataverse-previewers

A collection of Datafile Previewers that can be configured to work with Dataverse
MIT License
6 stars 19 forks source link

Docker image with previewers for local setup #90

Open gschmutz opened 3 hours ago

gschmutz commented 3 hours ago

This week I have implemented a solution to run the previewers locally as a docker container. Have it ready in my local setup using docker compose

  #  ================================== Dataverse Previewers Provider ========================================== #
  dataverse-previewers-provider:
    image: trivadis/dataverse-previewers-provider:latest
    container_name: dataverse-previewers-provider
    hostname: dataverse-previewers-provider
    labels:
      com.platys.name: dataverse
      com.platys.description: Dataverse Previewers
      com.platys.webapp.title: Dataverse Previewers
      com.platys.webapp.url: http://dataplatform:28395/previewers/
    ports:
      - 28395:8080
    environment:
      - NGINX_HTTP_PORT=8080
      - PREVIEWERS_PROVIDER_URL=http://${PUBLIC_IP}:28395
      - VERSIONS="v1.4,betatest"
    volumes:
      - ./data-transfer:/data-transfer
    restart: unless-stopped

It uses the localinstall.sh at container startup time, so that it is possible to define the versions which should be supported.

Interested in a PR?

pdurbin commented 2 hours ago

@gschmutz yes! We have an issue about this over here:

Can we please discuss more there? Or better yet, perhaps, in #containers at https://dataverse.zulipchat.com ?

gschmutz commented 2 hours ago

Hi @pdurbin, wasn't aware of the other issue and in fact it was exactly the problem I faced with trying to use the previewers hosted on Github. Let's discuss it there ... but I will also come back to #containers at https://dataverse.zulipchat.com/ as I have some other ideas to discuss ....