Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
5cd45c24
Unverified
Commit
5cd45c24
authored
May 24, 2024
by
Dhruv Nair
Committed by
GitHub
May 24, 2024
Browse files
Create custom container for doc builder (#8263)
* update * update
parent
67b3fe0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
4 deletions
+55
-4
.github/workflows/build_docker_images.yml
.github/workflows/build_docker_images.yml
+5
-4
docker/diffusers-doc-builder/Dockerfile
docker/diffusers-doc-builder/Dockerfile
+50
-0
No files found.
.github/workflows/build_docker_images.yml
View file @
5cd45c24
...
@@ -25,17 +25,17 @@ jobs:
...
@@ -25,17 +25,17 @@ jobs:
steps
:
steps
:
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
uses
:
docker/setup-buildx-action@v1
-
name
:
Check out code
-
name
:
Check out code
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
-
name
:
Find Changed Dockerfiles
-
name
:
Find Changed Dockerfiles
id
:
file_changes
id
:
file_changes
uses
:
jitterbit/get-changed-files@v1
uses
:
jitterbit/get-changed-files@v1
with
:
with
:
format
:
'
space-delimited'
format
:
'
space-delimited'
token
:
${{ secrets.GITHUB_TOKEN }}
token
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Build Changed Docker Images
-
name
:
Build Changed Docker Images
run
:
|
run
:
|
CHANGED_FILES="${{ steps.file_changes.outputs.all }}"
CHANGED_FILES="${{ steps.file_changes.outputs.all }}"
...
@@ -52,7 +52,7 @@ jobs:
...
@@ -52,7 +52,7 @@ jobs:
build-and-push-docker-images
:
build-and-push-docker-images
:
runs-on
:
[
self-hosted
,
intel-cpu
,
8-cpu
,
ci
]
runs-on
:
[
self-hosted
,
intel-cpu
,
8-cpu
,
ci
]
if
:
github.event_name != 'pull_request'
if
:
github.event_name != 'pull_request'
permissions
:
permissions
:
contents
:
read
contents
:
read
packages
:
write
packages
:
write
...
@@ -69,6 +69,7 @@ jobs:
...
@@ -69,6 +69,7 @@ jobs:
-
diffusers-flax-tpu
-
diffusers-flax-tpu
-
diffusers-onnxruntime-cpu
-
diffusers-onnxruntime-cpu
-
diffusers-onnxruntime-cuda
-
diffusers-onnxruntime-cuda
-
diffusers-doc-builder
steps
:
steps
:
-
name
:
Checkout repository
-
name
:
Checkout repository
...
...
docker/diffusers-doc-builder/Dockerfile
0 → 100644
View file @
5cd45c24
FROM
ubuntu:20.04
LABEL
maintainer="Hugging Face"
LABEL
repository="diffusers"
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get
-y
update
\
&&
apt-get
install
-y
software-properties-common
\
&&
add-apt-repository ppa:deadsnakes/ppa
RUN
apt
install
-y
bash
\
build-essential
\
git
\
git-lfs
\
curl
\
ca-certificates
\
libsndfile1-dev
\
python3.10
\
python3-pip
\
libgl1
\
python3.10-venv
&&
\
rm
-rf
/var/lib/apt/lists
# make sure to use venv
RUN
python3.10
-m
venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3.10
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
==
0.1.11
&&
\
python3.10
-m
uv pip
install
--no-cache-dir
\
torch
\
torchvision
\
torchaudio
\
invisible_watermark
\
--extra-index-url
https://download.pytorch.org/whl/cpu
&&
\
python3.10
-m
uv pip
install
--no-cache-dir
\
accelerate
\
datasets
\
hf-doc-builder
\
huggingface-hub
\
Jinja2
\
librosa
\
numpy
\
scipy
\
tensorboard
\
transformers
\
matplotlib
\
setuptools
==
69.5.1
CMD
["/bin/bash"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment