Devpi-client inside a docker-container
1.0K
This image allows you to run devpi-client commands inside a docker container. All commands
get sent to devpi unless you use sh [args..] will open a shell session inside the
container. There is also a utility script for easier start-up/access to using the
devpi-client from your host machine. See the
github repo for installation.
$ docker pull mhoush/docker-devpi-client:latest
$ docker run -it --rm \
-v "${PWD}":/mnt \
-v "${PWD}/venv/lib/python3.5/site-packages":/site-packages \
-v "${HOME}/.certs":/certs \
-e DEVPI_USER=devpi \
-e DEVPI_URL=http://localhost:3141/packages \
-e DEVPI_INDEX=/devpi/dev \
mhoush/devpi-client [options...] [args...]
The following options can be passed into the container before any devpi commands for set up of the devpi session.
All the args get passed into the devpi command.
To show devpi commands, use below.
docker run --rm mhoush/devpi-client --help
or:
docker run --rm mhoush/devpi-client [command] --help
c_rehash utility on that directory, which is required for requests to validate certificates. There will be no consequences for you, and will not affect or change any of the certs that you mount.devpi use "${DEVPI_URL}" before your
commands.devpi login "${DEVPI_USER}" before your
commands.devpi use "${DEVPI_USE}" before
your commands.Upload a project to your devpi server and exit the container.
$ docker run -it --rm \
-v "${PWD}":/mnt \
-v "${PWD}/venv/lib/python3.5/site-packages":/site-packages \
-v "${HOME}/.certs":/certs \
-e DEVPI_USER=devpi \
-e DEVPI_URL=http://localhost:3141/packages \
-e DEVPI_INDEX=dev \
mhoush/devpi-client --password "password" upload --with-docs
Open an interactive shell in the container.
$ docker run -it --rm \
-v "${PWD}":/mnt \
mhoush/devpi-client sh
=> starting shell...
/mnt$ devpi use http://your.devpi.com/
# more commands
...
/mnt$ exit
Content type
Image
Digest
Size
54.1 MB
Last updated
about 5 years ago
docker pull mhoush/devpi-client