Commit ·
82aaa1f
1
Parent(s): 7f48764
build-deploy
Browse filesFiles changed (2)
- DockerfileAdded+27
- JenkinsfileAdded+22
123456789101112131415161718192021222324252627FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04
RUN apt-get update && apt-get install -y \ wget \ supervisor \ && rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash appADD --chown=1000:1000 . /ai-christmasUSER appWORKDIR ai-christmas
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ chmod +x Miniconda3-latest-Linux-x86_64.sh && \ ./Miniconda3-latest-Linux-x86_64.sh -b && \ rm Miniconda3-latest-Linux-x86_64.shUSER rootRUN ln -s /home/app/miniconda3/bin/conda /usr/bin/condaUSER app
RUN conda env create -f environment.yaml && \ conda run --no-capture-output -n fooocus pip install -r requirements_versions.txt
VOLUME /ai-christmas/models/checkpointsVOLUME /ai-christmas/models/lorasEXPOSE 7860ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "fooocus", "python", "launch.py"]12345678910111213141516171819202122podTemplate(containers: [ containerTemplate(name: 'kaniko', image: 'gcr.io/kaniko-project/executor:v1.13.0-debug', command: 'cat', ttyEnabled: true, resourceRequestCpu: '500m', resourceRequestMemory: '24Gi', resourceLimitMemory: '24Gi')]) { node(POD_LABEL) { stage('checkout') { checkout scm }
stage('kaniko build+publish') { container('kaniko'){ withCredentials([file(credentialsId: 'docker_auth', variable: 'dockerauth')]) { sh "ln -s \$dockerauth /kaniko/.docker/config.json" sh """/kaniko/executor --dockerfile `pwd`/Dockerfile \ --context `pwd` \ --destination docker.qualityminds.de/rd/ai-christmas:latest """ } } } }}DockerfileAdded+27
JenkinsfileAdded+22