# Create a new pod configuration
config = runpod.PodConfiguration(
name="my-app-container",
imageName="nginx:latest",
containerDiskInGb=10,
dockerArgs="bash -c 'mkdir /testdir1 && /start.sh'",
env={"DATABASE_URL": "postgres://user:password@localhost/dbname"}
)
# Create the pod
pod = runpod.create_pod(config)
# Create a new pod configuration
config = runpod.PodConfiguration(
name="my-app-container",
imageName="nginx:latest",
containerDiskInGb=10,
dockerArgs="bash -c 'mkdir /testdir1 && /start.sh'",
env={"DATABASE_URL": "postgres://user:password@localhost/dbname"}
)
# Create the pod
pod = runpod.create_pod(config)