CJWorkbench / cjworkbench

The data journalism platform with built in training
http://workbenchdata.com
Other
304 stars 45 forks source link

Docker Image #272

Closed lvrysis closed 2 years ago

lvrysis commented 2 years ago

Dear all,

I try to make a working deployment of workbench on a local server without success. The guides either for setting a development environment or for deploying with kubernetes are difficult to follow even for someone with DevOps skills.

Why don't you give us a working docker image for easy deployment?

Thanks in advance.

adamhooper commented 2 years ago

We provide working versions of Docker images. They are listed in https://github.com/CJWorkbench/cjworkbench-deploy/blob/main/kubernetes/versions/kustomization.yaml.

You can look for a rough sketch of a docker-compose file in integrationtests/docker-compose.yml.

I understand from your phrasing that you were expecting more. These deployment strategies are expensive to maintain, and we simply weren't paid to do a different kind. You're welcome to volunteer a new deployment strategy and maintain it in a GitHub repo.

lvrysis commented 2 years ago

I do not understand, how I can download these images? For example, I have tried to compose a development environment (as described here: https://github.com/CJWorkbench/cjworkbench/wiki/Setting-up-a-development-environment) but I get an error.

If a docker image was uploaded to the docker hub and was ready for deployment, it would be very helpful.

adamhooper commented 2 years ago

The images are on a different public server, "gcr.io". For instance, the Django-website image is at: gcr.io/workbenchdata-ci/frontend:f4fe78282b32339d3d00126a89bc4ea8e9bdce8d

You don't need these images in development mode. Development mode builds local images for you.

lvrysis commented 2 years ago

This seems perfect, but I have tried this specific image (and 1-2 older) and do not run. They run but they exit after a while... What may be wrong?

adamhooper commented 2 years ago

They must all run together. bin/dev coordinates their running.

I suggest you find someone with expertise in Bash (Linux command-line) and Docker to help you follow the instructions on the wiki. There is no support forum for running CJWorkbench locally -- and especially not on Windows. The method is documented, and it should be straightforward to somebody with the expertise.