Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Stable Diffusion WebUI in Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
Stable Diffusion WebUI in Docker
Commits
d8fb78b9
Commit
d8fb78b9
authored
1 year ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
add CI pipeline
update for 1.5.1
parent
d8f6dccc
No related branches found
No related tags found
No related merge requests found
Pipeline
#898
passed
1 year ago
Stage: build
Stage: push
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+21
-0
21 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+2
-2
2 additions, 2 deletions
Dockerfile
README.md
+1
-1
1 addition, 1 deletion
README.md
with
24 additions
and
3 deletions
.gitlab-ci.yml
0 → 100644
+
21
−
0
View file @
d8fb78b9
---
### SET IN CI VARIABLES
# variables:
# VERSION: "1.0.0"
# IMAGE_NAME: "registry.example.com/stable-diffusion-webui"
stages
:
-
build
-
push
build_image
:
stage
:
build
script
:
-
docker build --build-arg VERSION=${VERSION} -t ${IMAGE_NAME}:${VERSION} .
push_image
:
stage
:
push
script
:
-
docker push ${IMAGE_NAME}:${VERSION}
-
docker tag ${IMAGE_NAME}:${VERSION} ${IMAGE_NAME}:latest
-
docker push ${IMAGE_NAME}:latest
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
2
View file @
d8fb78b9
FROM
nvidia/cuda:11.8.0-base-ubuntu22.04
FROM
nvidia/cuda:11.8.0-base-ubuntu22.04
ARG
VERSION
ARG
VERSION
ENV
VERSION=1.
3.2
ENV
VERSION=1.
5.1
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get
-qq
update
-y
\
RUN
apt-get
-qq
update
-y
\
...
@@ -23,4 +23,4 @@ RUN sed -i -e 's/ start()/ #start()/g' /app/launch.py \
...
@@ -23,4 +23,4 @@ RUN sed -i -e 's/ start()/ #start()/g' /app/launch.py \
EXPOSE
7860
EXPOSE
7860
ENTRYPOINT
["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access"]
ENTRYPOINT
["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access"]
CMD
["--api", "--opt-sdp-no-mem-attention", "--opt-channelslast"]
CMD
["--api", "--opt-sdp-no-mem-attention", "--opt-channelslast"
, "--no-half-vae"
]
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
d8fb78b9
...
@@ -5,7 +5,7 @@ This builds a Docker image containing the Stable Diffusion WebUI by AUTOMATIC111
...
@@ -5,7 +5,7 @@ This builds a Docker image containing the Stable Diffusion WebUI by AUTOMATIC111
## Build the image (and optionally push it to your registry)
## Build the image (and optionally push it to your registry)
Set the version and image name to use:
Set the version and image name to use:
```
```
export VERSION="1.
3.2
"
export VERSION="1.
5.1
"
export IMAGE_NAME=registry.example.com/stable-diffusion-webui
export IMAGE_NAME=registry.example.com/stable-diffusion-webui
```
```
Build the image and also add the
`latest`
tag:
Build the image and also add the
`latest`
tag:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment