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

Docker build and deployment #210

Closed
1 task
EKivutha opened this issue Feb 26, 2022 · 9 comments
Closed
1 task

Docker build and deployment #210

EKivutha opened this issue Feb 26, 2022 · 9 comments

Comments

@EKivutha
Copy link

EKivutha commented Feb 26, 2022

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?

  • Self-Hosted instance

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

  • Operating System: Docker Linux
  • Python version:3.8
  • UWSGI version:2.0
  • ImageTagger commit or version:v0.6
  • Further setup information or configuration files
    Screenshot from 2022-02-26 20-27-50
@timonegk
Copy link
Member

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

@EKivutha
Copy link
Author

EKivutha commented Feb 26, 2022

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

@EKivutha
Copy link
Author

EKivutha commented Feb 26, 2022

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

@timonegk
Copy link
Member

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
Copy link
Author

EKivutha commented Feb 26, 2022

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

@EKivutha
Copy link
Author

EKivutha commented Feb 26, 2022

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
Copy link
Author

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

@EKivutha
Copy link
Author

issue was not resolved

@timonegk
Copy link
Member

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.

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

2 participants