2018-12-20 22:01:15 +01:00
Author: Thomas Ferreira de Lima
email: thomas@tlima.me
2018-12-18 18:11:26 +01:00
2018-12-20 22:01:15 +01:00
This folder contains scripts to be run inside docker images. See instructions on how to test this yourself in ci-scripts/docker/development_notes.
2018-12-18 18:11:26 +01:00
2018-12-20 22:01:15 +01:00
## docker_build.sh
2018-12-18 21:18:33 +01:00
2018-12-20 22:01:15 +01:00
We need two environment variables to get going:
2018-12-18 21:18:33 +01:00
```bash
2018-12-20 22:01:15 +01:00
DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
PY_VERSION="cp37-cp37m"
2018-12-18 21:18:33 +01:00
```
2018-12-18 21:58:33 +01:00
2018-12-20 22:01:15 +01:00
The script must be run inside an image pulled from $DOCKER_IMAGE and with klayout's git repo cloned in /io. Inside the git clone folder, run:
2018-12-18 23:53:52 +01:00
```bash
2018-12-20 22:01:15 +01:00
docker run --rm -e DOCKER_IMAGE -e PY_VERSION -v `pwd` :/io $DOCKER_IMAGE $PRE_CMD "/io/ci-scripts/docker/docker_build.sh";
# $PRE_CMD is empty for now (useless currently).
2018-12-18 23:53:52 +01:00
```
2018-12-20 22:01:15 +01:00
This command will generate a wheel and place it in `wheelhouse/klayout-*manylinux1*.whl` . This is the wheel that needs to be uploaded to PyPI via twine. See ci-scripts/twine/README.md.