Skip to content

Commit

Permalink
fix docker command for current framework
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed May 21, 2024
1 parent 06d8e97 commit e7f4449
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/ibek/ioc_cmds/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,8 @@ def handle_command(context: Path, tokens: List[str], step, start):
os.chdir(tokens[1])
elif docker_action == "COPY":
print("COPY", tokens)
src = context / (Path(tokens[1]))
dest = (Path.cwd() / Path(tokens[2])).absolute()
if src == dest:
print("SKIPPING copy of same path")
else:
print(f"copying {src} to {dest}")
if src.is_file():
shutil.copy(src, dest)
else:
shutil.copytree(src, dest, dirs_exist_ok=True)
# skipping because in devcontainer the project folder is already mounted
# where the destination copy is supposed to go inside the container
elif docker_action == "FROM":
if "runtime_prep" in tokens:
print("\n== Aborting before destructive runtime prep stage. ==\n")
Expand Down

0 comments on commit e7f4449

Please sign in to comment.