Improvements to the docker build + update readme

This commit is contained in:
ekoc committed 2025-02-26 21:21:53 +01:00
1 parent 91bf7a220a
commit 385b5629b6
10 files changed
+91 -66

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
ARG GITHUB_REPOSITORY
ARG DOCKER_REPOSITORY
ARG DOCKER_TAG=latest
FROM ${GITHUB_REPOSITORY}alltalk_tts_environment:${DOCKER_TAG}
FROM ${DOCKER_REPOSITORY}alltalk_tts_environment:${DOCKER_TAG}
ARG DEEPSPEED_VERSION=0.16.3
ENV DEEPSPEED_VERSION=$DEEPSPEED_VERSION
+8 -5
View File
@@ -6,6 +6,7 @@ cd $SCRIPT_DIR
. ${SCRIPT_DIR=}/../variables.sh
DOCKER_TAG=latest
DOCKER_REPOSITORY=erew123
# Parse arguments
while [ "$#" -gt 0 ]; do
@@ -23,9 +24,11 @@ while [ "$#" -gt 0 ]; do
shift
;;
--github-repository)
if [ -n "${GITHUB_REPOSITORY}" ] && ! [[ $GITHUB_REPOSITORY =~ ^--.* ]]; then
GITHUB_REPOSITORY="$2"
if [ -n "$2" ] && ! [[ $2 =~ ^--.* ]]; then
DOCKER_REPOSITORY="$2"
shift
else
DOCKER_REPOSITORY=""
fi
;;
*)
@@ -51,9 +54,9 @@ mkdir -p build
docker buildx \
build \
--build-arg GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
--build-arg DOCKER_REPOSITORY=$DOCKER_REPOSITORY \
--build-arg DEEPSPEED_VERSION=$DEEPSPEED_VERSION \
-t ${GITHUB_REPOSITORY}alltalk_deepspeed:${DOCKER_TAG} \
-t ${DOCKER_REPOSITORY}alltalk_deepspeed:${DOCKER_TAG} \
.
docker run \
@@ -63,4 +66,4 @@ docker run \
--name deepspeed \
--build-arg DOCKER_TAG=$DOCKER_TAG \
-v $SCRIPT_DIR/build:/deepspeed \
${GITHUB_REPOSITORY}alltalk_deepspeed:${DOCKER_TAG}
${DOCKER_REPOSITORY}alltalk_deepspeed:${DOCKER_TAG}