bit-bots / imagetagger

An open source online platform for collaborative image labeling
MIT License
267 stars 54 forks source link

Docker build and deployment #210

Closed EKivutha closed 2 years ago

EKivutha commented 2 years ago

What I'm trying to do

build a docker image to host on heroku

What I've tried

changing the prefix for the required env variable to start with the IT_ prefix

Additional context

I'm getting errors for each variable in the base class

If I add the prefix IT_ to the env variables stated in readme, the error message variable IT_ALLOWED_HOST is required to be set to IT_IT_ALLOWED_HOST

Where does the issue occur?

If it is a self hosted instance, please provide further information

timonegk commented 2 years ago

Which command do you run to get the output in your screenshot?

EKivutha commented 2 years ago

Sudo docker run -it port 8080 --name imagetagger imagetagger

EKivutha commented 2 years ago

Where should I make the env variable changes? @timonegk @jgueldenstein @wichmannpas @NFiedler

timonegk commented 2 years ago

For all the configuration values, you have to pass them as environment variables, for docker that is with the -e flag. So you will have your docker run command with -e IT_EMAIL_HOST=... -e IT_DB_HOST=... and so on.

EKivutha commented 2 years ago

Do you have a sample terminal code I can run @timonegk

EKivutha commented 2 years ago

For all the configuration values, you have to pass them as environment variables, for docker that is with the -e flag. So you will have your docker run command with -e IT_EMAIL_HOST=... -e IT_DB_HOST=... and so on.

I have tried this but I get a invalid reference format error @timonegk

EKivutha commented 2 years ago

@timonegk do you have any other deployment materials or documentation?

EKivutha commented 2 years ago

issue was not resolved

timonegk commented 2 years ago

When working with open source / community projects, please keep in mind that everybody is doing it on their free time. That also means that you have to wait sometimes to get an answer. Pointlessly asking and re-asking and passive-aggressively closing an issue is not a nice way of getting other people's attention. I sent you a short example of how to add environment variables to your docker container. What exactly did you run to get the "invalid reference format" error? Of course, you cannot let the values at ... but have to add an actually useful value. Maybe check out the corresponding section of the README: https://github.com/bit-bots/imagetagger/#minimal-production-configuration. There are the five environment variables that have to be defined for the imagetagger to run. For it to work, you have to have installed and started a postgresql server. If you haven't done that yet, there are countless tutorials online.