johann-foerster commited on
Commit
e3ba0a0
1 Parent(s): 65f3839

attempt to be able to build image

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -3
  2. Jenkinsfile +1 -1
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04
2
 
3
  RUN apt-get update && apt-get install -y \
4
  wget \
5
- supervisor \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  RUN useradd -ms /bin/bash app
@@ -19,8 +18,8 @@ RUN ln -s /home/app/miniconda3/bin/conda /usr/bin/conda
19
  USER app
20
 
21
  RUN conda env create -f environment.yaml
22
- RUN conda run --no-capture-output -n fooocus pip install -r requirements_versions.txt
23
- RUN conda run --no-capture-output -n fooocus python prepare.py
24
 
25
  VOLUME /ai-christmas/models/checkpoints
26
  VOLUME /ai-christmas/models/loras
 
2
 
3
  RUN apt-get update && apt-get install -y \
4
  wget \
 
5
  && rm -rf /var/lib/apt/lists/*
6
 
7
  RUN useradd -ms /bin/bash app
 
18
  USER app
19
 
20
  RUN conda env create -f environment.yaml
21
+ SHELL ["conda", "run", "-n", "fooocus", "--no-capture-output", "/bin/bash", "-c"]
22
+ RUN pip install pygit2==1.12.2 && python prepare.py
23
 
24
  VOLUME /ai-christmas/models/checkpoints
25
  VOLUME /ai-christmas/models/loras
Jenkinsfile CHANGED
@@ -1,6 +1,6 @@
1
  podTemplate(containers: [
2
  containerTemplate(name: 'kaniko', image: 'gcr.io/kaniko-project/executor:v1.13.0-debug', command: 'cat', ttyEnabled: true,
3
- resourceRequestCpu: '500m', resourceRequestMemory: '60Gi', resourceLimitMemory: '60Gi')
4
  ]) {
5
  node(POD_LABEL) {
6
  stage('checkout') {
 
1
  podTemplate(containers: [
2
  containerTemplate(name: 'kaniko', image: 'gcr.io/kaniko-project/executor:v1.13.0-debug', command: 'cat', ttyEnabled: true,
3
+ resourceRequestCpu: '500m', resourceRequestMemory: '56Gi', resourceLimitMemory: '56Gi')
4
  ]) {
5
  node(POD_LABEL) {
6
  stage('checkout') {