Sign inSign up

fanrock/shopmsgjob

By fanrock

•Updated over 6 years ago

image for running scheduled jobs

Image
0

10K+

fanrock/shopmsgjob repository overview

⁠shopmsg_job

python jobs for shopmessage

⁠Use virtualenv to create an isolated python environment

$> virtualenv venv create an environment called "venv" $> virtualenv -p python3 venv3 create a python3 environment called "venv3" $> source venv/bin/activate activate the environent you just created - OR - $> source venv3/bin/activate activate the python3 environment you just created

now the python and pip commands refer to your virtual environment, not the system-wide one

⁠Use tags to trigger automated builds on code updates

for example:

$> git tag -a "docker-0.1.0" create a build for python2.7 $> git tag -a "docker3-0.1.0" create a build for python3

$> git push origin --tags

⁠Releasing

Make sure to update builder/release.sh to use the right build version (i.e. "0.1.0") In terminal, release with path to task. For example: $> ./builder/release.sh tasks/segment/TrackSiteMilestones.py

Tag summary

Content type

Image

Digest

Size

319.6 MB

Last updated

over 6 years ago

docker pull fanrock/shopmsgjob:python3-0.1.24