An open API service indexing awesome lists of open source software.

https://github.com/andricdu/dicom-edit-example

Simple dicom edit pipeline example with docker and k8s job
https://github.com/andricdu/dicom-edit-example

Last synced: 20 days ago
JSON representation

Simple dicom edit pipeline example with docker and k8s job

Awesome Lists containing this project

README

          

# dicom-edit-example

![GitHub](https://img.shields.io/github/license/andricdu/dicom-edit-example?style=for-the-badge)
![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/dandric/dicom-edit-example/latest?style=for-the-badge)
[![Image Size](https://img.shields.io/docker/image-size/dandric/dicom-edit-example/latest?style=for-the-badge)](https://hub.docker.com/layers/195659429/dandric/dicom-edit-example/latest/images/sha256-3181e0a87cbdb43f28af7202619b43bb355cb1357e110bdd7655354a5fa128ad?context=repo)

Example pipeline of pseudonymising a dicom file by rewriting some of the header information.

A public docker image for this pipeline is hosted here: https://hub.docker.com/repository/docker/dandric/dicom-edit-example

If `dandric/dicom-edit-example:latest` is no longer available, it is likely it has been deleted by dockerhub for inactivity.

## Dicom Edit Pipeline

### Build
```bash
docker build .
```

### Run

#### Shell

To run the shell script. You will need to configure the appropriate env vars before running:

```bash
export FILENAME=
export PASS=
export SFTP_URI=
export SFTP_PORT=

chmod +x run_edit.sh # make sure you can execute the script

./run_edit.sh
```

#### Docker
Pass appropriate env vars to docker run command.
```bash
docker run \
-e FILENAME= \
-e PASS= \
-e SFTP_URI= \
-e SFTP_PORT= \
dandric/dicom-edit-example:latest
```

### Kubernetes
Env vars should be set inside the kubernetes manifest for the job.
```
kubectl apply -n -f dicom_edit.yaml
```

## Running SFTP in Kubernetes

For running sftp in Kubernetes, I made use of the following helm chart: https://github.com/openvnf/sftp-server

```
git clone https://github.com/openvnf/sftp-server.git
cd sftp-server
helm install sftp .
```