-
Notifications
You must be signed in to change notification settings - Fork 7
Release process
Olivier Tardieu edited this page Sep 6, 2022
·
5 revisions
pip install ray[default,serve,k8s]==1.4.1 wheel twine pypiserver
# make sure docker registry is running or port 5000 is free
# test with
./start-kind.sh
increment version number in rayvens-setup.sh and in these notes!!!
# build package
cd rayvens
python setup.py sdist bdist_wheel
twine check dist/*
# setup a local server to serve the package
mkdir -p packages/rayvens
cp dist/* packages/rayvens
pypi-server -p 80 packages
# install the package
pip uninstall rayvens
pip install --extra-index http://localhost/simple rayvens==0.6.0
# test
# test docker build with Dockerfile.release edited to be
RUN pip install rayvens==${rayvens_version} --extra-index http://192.168.50.222/simple --trusted-host 192.168.50.222
# upload to pypi
twine upload dist/*
# restore Dockerfile.release and build docker image
docker build . -f Dockerfile.release --build-arg rayvens_version=0.6.0 -t quay.io/ibm/rayvens:0.6.0
# push docker image
docker login quay.io
docker push quay.io/ibm/rayvens:0.6.0
docker tag quay.io/ibm/rayvens:0.6.0 quay.io/ibm/rayvens:latest
docker push quay.io/ibm/rayvens:latest