AirbusDefenceAndSpace / pesto

PESTO provides a set of tools to ease the process of packaging a Python algorithm as a processing web service into a docker image. The deployment of a web service becomes now as easy as filling few configuration files.
https://airbusdefenceandspace.github.io/pesto
Apache License 2.0
24 stars 8 forks source link

Secrets handling #10

Closed gpo-geo closed 3 years ago

gpo-geo commented 3 years ago

This pull request is proposed to resolve issue #9.

Some element for the context: we use PESTO in combination with a pip registry on a Artifactory instance. And the current implementation of the PIP_EXTRA_INDEX_URL is leaking any credentials from this URL in the final image.

The main modifications are:

Two tests have been added to verify the generation of the service Dockerfile. However, no test is added to validate a pesto build command.

Regarding the --network option, a small modification is made. Now, giving --network '' to pesto will remove any --network option in the actual docker build command line. This is helpful to let docker use its default networking mode.

Feel free to comment.