rust-python docker build docs

pull/2835/head
Kieran R. Prasch 2021-12-10 14:47:55 -08:00
parent 0dfcb22822
commit e8d77710be
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# Rust-Python CircleCI Container
### Setup
```bash
# the default username in the container
# circle ci expects the user "circleci"
export DOCKER_USER=<USERNAME>
# the version of python to build
export PYTHON_VERSION=<VERSION>
```
### Build
```bash
# pass local env vars as build args USER and VERSION
docker build -t nucypher/rust-python:$PYTHON_VERSION . \
--build-arg VERSION=${PYTHON_VERSION} \
--build-arg USER=${DOCKER_USER}
```
### Push
```bash
# docker login or authentication required
docker push nucypher/rust-python:$PYTHON_VERSION
```