Skip to content

Commit 276251b

Browse files
committed
Simplify commodore command
The use of distinct volume mounts for each and every directory does not scale. Whenever something new is added, this command would need to change. Instead, we can use only one volume by also changing the workir within the container.
1 parent 8acb838 commit 276251b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

commodore_command.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ commodore () {
88
--rm \
99
--user="$(id -u)" \
1010
--volume "$HOME"/.ssh:/app/.ssh:ro \
11-
--volume "$PWD"/compiled/:/app/compiled/ \
12-
--volume "$PWD"/catalog/:/app/catalog \
13-
--volume "$PWD"/dependencies/:/app/dependencies/ \
14-
--volume "$PWD"/inventory/:/app/inventory/ \
1511
--volume ~/.gitconfig:/app/.gitconfig:ro \
12+
--volume "${PWD}:/app/data/" \
13+
--workdir "/app/data" \
1614
projectsyn/commodore:v0.2.0 \
1715
$*
1816
}

0 commit comments

Comments
 (0)