This pipeline scripts provide functionality for files and folders copy and delete in greenroom and core zone
This is an example of how you may setting up your service locally. To get a local copy up and running follow these simple example steps.
This project is using Poetry to handle the dependencies.
curl -sSL https://install.python-poetry.org | python3 -
-
Clone the project.
https://github.com/PilotDataPlatform/pipelines.git
-
Install dependencies.
poetry install
-
Add environment variables into
.env
in case it's needed. Use.env.schema
as a reference. -
run it locally:
File folder copy
python3 -m operations copy --source-id 'source folder id where the file copy from' --destination-id 'destination folder id where the file copy to' --project-code 'project_code' --operator 'operator' --job-id 'job id' --session-id 'session id' --include-ids 'Id of the copied file and folder'
--access-token 'access-token'
File folder delete
python3 -m operations delete --source-id 'source folder id where the file delete from' --include-ids 'Id of the deleted file and folder' --project-code 'project_code' --operator 'operator' --job-id 'job id' --session-id 'session id' --access-token 'access-token'
This project can also be started using Docker.
-
To build and start the service within the Docker container, run:
docker compose up
You can contribute the project in following ways:
- Report a bug.
- Suggest a feature.
- Open a pull request for fixing issues or adding functionality. Please consider using pre-commit in this case.
- For general guidelines on how to contribute to the project, please take a look at the contribution guides.