0

I'm going to create a Docker image based on ubuntu:18.04 image.

There are some python packages listed in a requirements.txt file which should be installed in the image.

reportlab==2.7
newrelic==2.98.0.81
pympler==0.4.3
unidecode
python-dateutil
git+ssh://[email protected]/myproject/myprojects-tools.git@master

The command to install them is:

pip install -r requirements.txt

In the last line when it tries to fetch files from the defined repository, it failes, because the key is not installed in the image.

Is it good idea to put the key inside the image or there are better ideas?

1

1 Answer 1

1

Here you can find examples on how to do this: https://github.com/bmihelac/docker-images-with-private-python-packages-example

You basically have two alternatives: ssh keys or deploy/access tokens.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.