This commit is contained in:
wataru 2022-12-09 13:46:45 +09:00
parent 32f860ff24
commit 19f94c5bbe
4 changed files with 5 additions and 5 deletions

View File

@ -476,12 +476,12 @@ if __name__ == '__main__':
path = ""
else:
path = "trainer"
if EX_PORT and EX_IP and args.https == 1:
if "EX_PORT" in locals() and "EX_IP" in locals() and args.https == 1:
printMessage(f"In many cases it is one of the following", level=1)
printMessage(f"https://localhost:{EX_PORT}/{path}", level=1)
for ip in EX_IP.strip().split(" "):
printMessage(f"https://{ip}:{EX_PORT}/{path}", level=1)
elif EX_PORT and EX_IP and args.https == 0:
elif "EX_PORT" in locals() and "EX_IP" in locals() and args.https == 0:
printMessage(f"In many cases it is one of the following", level=1)
printMessage(f"http://localhost:{EX_PORT}/{path}", level=1)

View File

@ -1,4 +1,4 @@
FROM dannadori/voice-changer-internal:20221209_112157 as front
FROM dannadori/voice-changer-internal:20221209_133940 as front
FROM debian:bullseye-slim as base
ARG DEBIAN_FRONTEND=noninteractive

View File

@ -7,7 +7,7 @@
"build:docker": "date +%Y%m%d%H%M%S > docker/dummy && DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile docker/ -t voice-changer",
"build:docker_arm64": "date +%Y%m%d%H%M%S > docker/dummy && DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile_arm64 docker/ -t voice-changer-arm64",
"copy:frontend":"docker run -v `pwd`/frontend/dist:/frontend/dist --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/frontend/dist/* /frontend/dist\"",
"copy:backend":"docker run -v `pwd`/demo:/demo --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/voice-change-service/* /demo/\"",
"copy:backend":"docker run -v `pwd`/demo:/demo --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/voice-change-service/* /demo/ && rm -rf /demo/MMVC_Trainer/.git && rm -rf /demo/MMVC_Trainer/.gitignore \"",
"create:demo":"run-p copy:frontend copy:backend",
"push:docker": "bash script/001_pushDocker.sh",
"push:docker_arm64": "bash script/002_pushDocker_arm64.sh",

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -eu
DOCKER_IMAGE=dannadori/voice-changer:20221209_124332
DOCKER_IMAGE=dannadori/voice-changer:20221209_134116
# DOCKER_IMAGE=voice-changer
if [ $# = 0 ]; then