TBD
- Python 3.6 or higher
- Pip 19.0 or higher
-
Create a virtual environment. To create a new virtual environment, decide upon a directory where you want to place it, and run the
venv
module as a script with the directory path. We recommend naming directory.venv
, since it is also ignored by git through.gitignore
rules.python3 -m venv .venv
-
Once you’ve created a virtual environment, you may activate it.
source .venv/bin/activate
-
After activating the virtual environment, you can run the
pyworker
module.python3 -m pyworker
-
To leave the virtual environment, simply deactivate it.
deactivate
-
You may also want to delete the created virtual environment to free up space on your disk.
rm -r .venv
- Python 3.6 or higher
-
Run the
pyworker
module.python3 -m pyworker
TBD
Note: In order to use CICD tool of IBM Services Essentials platform, you must be a member of a team, have CICD service added and approved for the same team, configure a new CICD component to build and deploy from this repository. See more in the docs.
To start a new build and/or deploy activity in CICD, create a new tag trigger, then create and push a new tag in your repository.
- Create a new git tag matching the CICD trigger regular expression.
- Push the created git tag to the remote.
- Check the activity screen in IBM Services Essentials CICD.
Build a new Docker image.
docker build --tag worker-python:0.0.1 .