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
- Host: GitHub
- URL: https://github.com/andricdu/dicom-edit-example
- Owner: andricDu
- License: mit
- Created: 2022-03-04T18:12:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-28T15:18:29.000Z (over 3 years ago)
- Last Synced: 2025-09-21T01:57:26.563Z (20 days ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dicom-edit-example


[](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 .
```