Skip to content

Commit

Permalink
update bl45p-ea-ioc-01 to latest framework
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 29, 2023
1 parent 583a830 commit 519f403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/ibek/ioc_cmds/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ def move_file(src: Path, dest: Path, binary: List[str]):

def extract_assets(destination: Path, source: Path, extras: List[Path], defaults: bool):
"""
Find all the runtime assets in an EPICS installation and copy them to a
new folder hierarchy for packaging into a container runtime stage.
This should be performed in a throw away container stage (runtime_prep)
as it is destructive of the source folder, because it uses move for speed.
extract and copy runtime assets
"""
asset_matches = "bin|configure|db|dbd|include|lib|template|config|*.sh"

Expand Down
7 changes: 7 additions & 0 deletions src/ibek/ioc_cmds/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ def extract_runtime_assets(
extras: List[Path] = typer.Option(None, help="list of files to also extract"),
defaults: bool = typer.Option(True, help="copy the default assets"),
):
"""
Find all the runtime assets in an EPICS installation and copy them to a
new folder hierarchy for packaging into a container runtime stage.
This should be performed in a throw away container stage (runtime_prep)
as it is destructive of the source folder, because it uses move for speed.
"""
extract_assets(destination, source, extras, defaults)


Expand Down

0 comments on commit 519f403

Please sign in to comment.