Sign in

Orthanc is a dicom server and let’s see how to spin it up inside the Kubernetes cluster. And I’m using jodogne/orthanc docker image.

Let’ create the persistent volume claim, here the storage class aws-efs is nothing but the Elastic File System.

> kubectl apply -f orthanc_pvc.yaml

apiVersion: v1
kind: PersistentVolumeClaim
module: orthanc
name: orthanc-pvc
namespace: model
annotations: "aws-efs"
- ReadWriteOnce
storage: 10Gi

Let’s create the service module where I’m exposing two ports 8042 and 4242.

> kubectl apply -f orthanc_svc.yaml

apiVersion: v1
kind: Service
name: orthanc
labels: orthanc…

I thought this would be simple task, but I didn’t get a reference how to write .zip file instead of .gz file

Everyone might not have 7-Zip installed, hence I have to create a .zip file. Also I don’t want to save the compressed file in temp memory which incurs a lot of memory incase of large pandas dataframe.

import pandas as pd
from zipfile import ZipFile
from io import BytesIO
import boto3
my_dict = { 'name' : ["a", "b", "c", "d", "e","f", "g"],
'age' : [20,27, 35, 55…


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store