fix: lowercase docker image tag to avoid invalid reference format
This commit is contained in:
@@ -585,7 +585,7 @@ async def create_instance(
|
|||||||
# Handle based on definition type
|
# Handle based on definition type
|
||||||
if tool_type.definition_type == "dockerfile":
|
if tool_type.definition_type == "dockerfile":
|
||||||
# Build image from Dockerfile
|
# Build image from Dockerfile
|
||||||
image_tag = f"headquarter/{instance_name}:latest"
|
image_tag = f"headquarter/{instance_name}:latest".lower()
|
||||||
|
|
||||||
if tool_type.dockerfile_template:
|
if tool_type.dockerfile_template:
|
||||||
returncode, stdout, stderr = build_image(
|
returncode, stdout, stderr = build_image(
|
||||||
@@ -609,7 +609,7 @@ async def create_instance(
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: {image_tag}
|
image: {image_tag}
|
||||||
container_name: {instance_name}
|
container_name: {instance_name.lower()}
|
||||||
ports:
|
ports:
|
||||||
- "{tool_port}:{tool_type.default_port}"
|
- "{tool_port}:{tool_type.default_port}"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user