Bugfixes for docker build and start scripts + readme
This commit is contained in:
1 parent
cef6d8cf36
commit
13db476dd0
5 files changed
+16
-6
No files matched your search
+2
-2
@@ -55,7 +55,7 @@ following optional arguments:
|
|||||||
- Example: `docker-start.sh --rvc_voices /my/rvc/voices/dir`
|
- Example: `docker-start.sh --rvc_voices /my/rvc/voices/dir`
|
||||||
- `--no_ui` allows you to not expose port 7852 for the gradio interface. Note that you still have to set `launch_gradio`
|
- `--no_ui` allows you to not expose port 7852 for the gradio interface. Note that you still have to set `launch_gradio`
|
||||||
to `false` via JSON file passed to `--config`.
|
to `false` via JSON file passed to `--config`.
|
||||||
- `--tag` allows to choose the docker tag of the image to run. Defaults to `latest`.
|
- `--tag` allows to choose the docker tag of the image to run. Defaults to `latest-xtts`.
|
||||||
- Example: `docker-start.sh --tag mytag`
|
- Example: `docker-start.sh --tag mytag`
|
||||||
- `--docker-repository` allows to choose another Docker repository for pulling the image from. Use an empty
|
- `--docker-repository` allows to choose another Docker repository for pulling the image from. Use an empty
|
||||||
string for the local repo.
|
string for the local repo.
|
||||||
@@ -80,7 +80,7 @@ reason, you may want to use `docker-build.sh` with the following arguments:
|
|||||||
- `--docker-repository` allows to choose another Docker repository for tagging the image from. Use an empty
|
- `--docker-repository` allows to choose another Docker repository for tagging the image from. Use an empty
|
||||||
string for the local repo.
|
string for the local repo.
|
||||||
- `--local-deepspeed-build` should only be used in rare cases where DeepSpeed needs to be rebuilt. Defaults to `false`.
|
- `--local-deepspeed-build` should only be used in rare cases where DeepSpeed needs to be rebuilt. Defaults to `false`.
|
||||||
- `--clean` allows remove existing dependency build like conda environment or DeepSpeed.
|
- `--clean` allows remove existing dependency build like conda environment or DeepSpeed. Defaults to `false`.
|
||||||
- Example: `docker-build.sh --clean`
|
- Example: `docker-build.sh --clean`
|
||||||
|
|
||||||
|
|
||||||
@@ -60,6 +60,9 @@ while [ "$#" -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Append slash if missing:
|
||||||
|
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')
|
||||||
|
|
||||||
if [ "$CLEAN" = true ]; then
|
if [ "$CLEAN" = true ]; then
|
||||||
rm -rf ${SCRIPT_DIR=}/docker/deepspeed/build
|
rm -rf ${SCRIPT_DIR=}/docker/deepspeed/build
|
||||||
# Recreate directories after clean
|
# Recreate directories after clean
|
||||||
|
|||||||
+4
-3
@@ -4,7 +4,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||||||
. ${SCRIPT_DIR=}/docker/variables.sh
|
. ${SCRIPT_DIR=}/docker/variables.sh
|
||||||
|
|
||||||
WITH_UI=true
|
WITH_UI=true
|
||||||
DOCKER_TAG=latest
|
DOCKER_TAG=latest-xtts
|
||||||
DOCKER_REPOSITORY=erew123
|
DOCKER_REPOSITORY=erew123
|
||||||
declare -a ADDITIONAL_ARGS=()
|
declare -a ADDITIONAL_ARGS=()
|
||||||
|
|
||||||
@@ -46,10 +46,11 @@ while [ "$#" -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Append slash if missing:
|
||||||
|
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')
|
||||||
|
|
||||||
# Compose docker arguments based on user input to the script:
|
# Compose docker arguments based on user input to the script:
|
||||||
declare -a DOCKER_ARGS=()
|
declare -a DOCKER_ARGS=()
|
||||||
echo "REPO = $DOCKER_REPOSITORY"
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
if [[ -n $CONFIG ]]; then
|
if [[ -n $CONFIG ]]; then
|
||||||
# Mount the config file to docker_confignew.json:
|
# Mount the config file to docker_confignew.json:
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ while [ "$#" -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Append slash if missing:
|
||||||
|
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')
|
||||||
|
|
||||||
echo "Building conda environment using python ${PYTHON_VERSION} with CUDA ${CUDA_VERSION}"
|
echo "Building conda environment using python ${PYTHON_VERSION} with CUDA ${CUDA_VERSION}"
|
||||||
|
|
||||||
docker buildx \
|
docker buildx \
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ while [ "$#" -gt 0 ]; do
|
|||||||
DOCKER_TAG="$2"
|
DOCKER_TAG="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--github-repository)
|
--docker-repository)
|
||||||
if [ -n "$2" ] && ! [[ $2 =~ ^--.* ]]; then
|
if [ -n "$2" ] && ! [[ $2 =~ ^--.* ]]; then
|
||||||
DOCKER_REPOSITORY="$2"
|
DOCKER_REPOSITORY="$2"
|
||||||
shift
|
shift
|
||||||
@@ -39,6 +39,9 @@ while [ "$#" -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Append slash if missing:
|
||||||
|
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')
|
||||||
|
|
||||||
PYTHON_SHORT_VERSION=${PYTHON_VERSION%.*}
|
PYTHON_SHORT_VERSION=${PYTHON_VERSION%.*}
|
||||||
PYTHON_VERSION_NO_DOT=${PYTHON_SHORT_VERSION//./}
|
PYTHON_VERSION_NO_DOT=${PYTHON_SHORT_VERSION//./}
|
||||||
if [[ -n $(find build -name "deepspeed-${DEEPSPEED_VERSION}*-cp${PYTHON_VERSION_NO_DOT}-cp${PYTHON_VERSION_NO_DOT}-*.whl") ]]
|
if [[ -n $(find build -name "deepspeed-${DEEPSPEED_VERSION}*-cp${PYTHON_VERSION_NO_DOT}-cp${PYTHON_VERSION_NO_DOT}-*.whl") ]]
|
||||||
|
|||||||
Reference in new issue
Block a user