run:
pixi clean
pixi run test # should fail
pixi run patch # patches libgfortran, libquadmath
pixi run test # should pass
services: | |
proxy: | |
image: ghcr.io/minrk/configurable-http-proxy:custom-dump-netstat | |
# build: | |
# context: .. | |
command: | |
- --error-target=http://error-target | |
- --default-target=http://169.254.0.0 | |
- --log-level=debug | |
environment: |
FROM python:3.13-alpine | |
RUN apk add --no-cache net-tools | |
RUN pip install tornado | |
COPY main.py /main.py | |
CMD ["python3", "main.py"] |
c = get_config() # noqa | |
# dummy deployment boilerplate | |
c.JupyterHub.authenticator_class = "dummy" | |
c.JupyterHub.spawner_class = "simple" | |
c.JupyterHub.ip = "127.0.0.1" | |
c.JupyterHub.load_roles = [ | |
{ | |
"name": "user", |
ARG BASE_IMAGE=quay.io/jupyter/minimal-notebook:2025-04-28 | |
FROM $BASE_IMAGE | |
# copy the locked environment.yaml | |
COPY conda-*.lock.yml /tmp/env.yml | |
# update the base env with this | |
RUN mamba env update -n base -f /tmp/env.yml \ | |
&& mamba clean --all |
#!/usr/bin/env python3 | |
''' A tool which searches recursively and removes duplicate loader paths ''' | |
import subprocess | |
import sys | |
import os | |
def run_command(command): | |
"""Run a shell command and return the output.""" | |
try: | |
result = subprocess.run(command, check=True, text=True, capture_output=True) |