Skip to content

Commit 51be8ca

Browse files
committed
hpc sucks so bad
Signed-off-by: vsoch <[email protected]>
1 parent a57b693 commit 51be8ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fractale/tools/build/docker/tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def push_container(self, uri: str, all_tags: bool = False):
7373
return Result(p).render()
7474

7575
@mcp.tool(name="docker_build")
76-
def build_container(self, dockerfile: str, uri: str = "lammps", platforms: str = None):
76+
def build_container(self, dockerfile: list, uri: str = "lammps", platforms: str = None):
7777
"""
7878
Build a docker container. Accepts an optional unique resource identifier (URI).
7979
The build is always done in a protected temporary directory.
@@ -84,6 +84,9 @@ def build_container(self, dockerfile: str, uri: str = "lammps", platforms: str =
8484
push: push to the registry. Requires that the docker agent is authenticated.
8585
load: load into a kubernetes in docker (kind) cluster.
8686
"""
87+
# We pass as list because newlines in json... no go!
88+
dockerfile = "\n".join(dockerfile)
89+
8790
# This ensures that we aren't given a code block, etc.
8891
pattern = "```(?:docker|dockerfile)?\n(.*?)```"
8992
match = re.search(pattern, dockerfile, re.DOTALL)

0 commit comments

Comments
 (0)