Skip to content

Files

Latest commit

 

History

History

filecopy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

File copy and delete

Run Tests Python License

This pipeline scripts provide functionality for files and folders copy and delete in greenroom and core zone

Getting Started

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.

Prerequisites

This project is using Poetry to handle the dependencies.

curl -sSL https://install.python-poetry.org | python3 -

Installation & Quick Start

  1. Clone the project.

    https://github.com/PilotDataPlatform/pipelines.git
    
  2. Install dependencies.

    poetry install
    
  3. Add environment variables into .env in case it's needed. Use .env.schema as a reference.

  4. 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'

Startup using Docker

This project can also be started using Docker.

  1. To build and start the service within the Docker container, run:

    docker compose up
    

Resources

Contribution

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.