ss-python-to-chtc

Convert Python scripts into Docker and Apptainer containers for HPC environments.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/JasonLo/skill-sommelier --skill ss-python-to-chtc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ss-python-to-chtc
Source: https://github.com/JasonLo/skill-sommelier/tree/main/skills/ss-python-to-chtc
Command: npx skills add https://github.com/JasonLo/skill-sommelier --skill ss-python-to-chtc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of converting Python applications into production-ready Docker and Apptainer containers, making them easily deployable on High-Performance Computing (HPC) systems like CHTC.

Core Features & Use Cases

  • Containerization: Creates Dockerfiles and Apptainer definitions for Python scripts and applications.
  • Dependency Management: Integrates with Pixi for robust dependency handling, supporting both CPU and GPU configurations.
  • HPC Deployment: Generates necessary files (submit scripts, run scripts) for seamless deployment on CHTC/HTCondor and SLURM/HPC environments.
  • Use Case: You have a Python script that trains a machine learning model using GPUs. This Skill will generate a Dockerfile and Apptainer definition, along with HTCondor submission files, to run your script efficiently on a GPU-enabled HPC cluster.

Quick Start

Use the ss-python-to-chtc skill to convert the python script 'train_model.py' into a Docker container with GPU support.

Frequently Asked Questions about ss-python-to-chtc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I containerize a Python script for HPC environments?

This Skill converts Python scripts into Docker and Apptainer containers optimized for HPC. It generates Dockerfiles, Apptainer definitions, and HTCondor submission files, handling dependencies via Pixi for seamless CHTC deployment.

Can I configure Docker containers with GPU and CUDA support for CHTC?

Yes, this Skill supports GPU and CUDA configurations within Docker and Apptainer containers. It generates the necessary HTCondor submission files to run your Python applications on GPU-enabled CHTC clusters.

Does containerization for HPC support Pixi dependency management?

Yes, this Skill integrates Pixi for robust dependency management, supporting both CPU and GPU configurations. It ensures reproducible Python environments by embedding Pixi dependency resolution directly into the Docker and Apptainer build processes.

What is the best way to generate HTCondor submission files for Python scripts?

The best way is to use this Skill to generate HTCondor submission files alongside Docker and Apptainer definitions. This synchronizes your Python script, dependencies, and deployment configuration for seamless CHTC execution.

How do I convert a Python application to Apptainer for SLURM and HPC deployment?

You convert a Python application to Apptainer by generating an Apptainer definition file using this Skill. It outputs definitions and SLURM submission files, enabling portable and reproducible environments on HPC systems.

Why use multi-stage builds when containerizing Python for scientific computing?

Use multi-stage builds when containerizing Python to reduce final image size and isolate build dependencies. This Skill supports multi-stage Docker builds to create lean, production-ready containers for large-scale data processing on HPC.