Run the following commands from the root level of your repository.
conda create --name prfp python=3.9conda activate prfppip install -U prefect
pip install prefect-aws prefect-docker prefect-github python-dotenvprefect cloud login
prefect cloud workspace set- Add a
.envfile with the following variables:AWS_ACCESS_KEY_ID=add-your-key-id AWS_SECRET_ACCESS_KEY=add-your-secret-access-key
- Create an S3 Bucket with name
se-demo-result-storage.
python utilities/blocks.pyprefect work-pool create local-docker --type dockerIn the prefect.yaml file:
build:
- prefect_docker.deployments.steps.build_docker_image:
requires: prefect-docker>=0.3.0
image_name: taycurran/test-projects-june11 # CHANGE HERE
tag: '{{ get-commit-hash.stdout }}'
dockerfile: auto
push: truepull:
- prefect.deployments.steps.git_clone:
repository: https://github.com/taylor-curran/prefect-patterns.git # CHANGE HERE
branch: mainprefect deploy --all- Ensure you have a docker damon running.
- Open up a new terminal and start your docker typed worker:
prefect worker start --pool local-docker