Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Docker Vits
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Docker Vits
Commits
480b3ca9
Commit
480b3ca9
authored
Apr 16, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
f5fed0f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
.gitlab-ci.yml
.gitlab-ci.yml
+57
-0
injects/.dockerignore
injects/.dockerignore
+3
-0
injects/Dockerfile
injects/Dockerfile
+12
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
480b3ca9
stages
:
-
prepare
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
prepare
:
stage
:
prepare
tags
:
-
docker
script
:
-
apt update; apt -y install git git-lfs
-
git lfs clone https://huggingface.co/spaces/hhhhardman/VITS-Umamusume-voice-synthesizer src
-
cp -rf injects/Dockerfile src/
-
cp -rf injects/.dockerignore src/
-
sed -i "s/show_api=False, share=args.share/show_api=True, share=args.share, server_name='0.0.0.0'/" src/app.py
artifacts
:
paths
:
-
src
.build-image
:
stage
:
build
dependencies
:
-
prepare
script
:
-
cd src
-
docker build --pull -t $TARGET_IMAGE .
-
docker push $TARGET_IMAGE
build-x86
:
extends
:
.build-image
tags
:
-
docker
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
.deploy
:
stage
:
deploy
dependencies
:
[]
tags
:
-
docker
script
:
-
docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
-
docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG $TARGET_IMAGE
-
docker push $TARGET_IMAGE
deploy_latest
:
extends
:
.deploy
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:latest
only
:
-
master
injects/.dockerignore
0 → 100644
View file @
480b3ca9
.git*
Dockerfile
.dockerignore
injects/Dockerfile
0 → 100644
View file @
480b3ca9
FROM
python:3.10-bullseye
RUN
apt update
&&
\
apt
-y
install
cmake build-essential
&&
\
rm
-rf
/var/lib/apt/lists/
*
/var/log/
*
/tmp/
*
/var/tmp/
*
/var/cache/apt/archives/
*
WORKDIR
/app
COPY
./requirements.txt /app/requirements.txt
RUN
pip
install
--no-cache
-r
requirements.txt
COPY
. /app
CMD
["python", "app.py"]
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