Skip to content

Commit 77e1f76

Browse files
authored
Merge pull request #5 from ika-rwth-aachen/improvement/workdir
Improve workdir handling of docker-run-docker-ros
2 parents 63435ed + b3c46de commit 77e1f76

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

docker-run-cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "docker-run-cli"
7-
version = "0.9.4"
7+
version = "0.9.5"
88
description = "'docker run' and 'docker exec' with useful defaults"
99
license = {file = "LICENSE"}
1010
readme = "README.md"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__name__ = "docker-run"
2-
__version__ = "0.9.4"
2+
__version__ = "0.9.5"

docker-run-docker-ros/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "docker-run-docker-ros"
7-
version = "1.0.3"
7+
version = "1.0.4"
88
description = "docker-run plugin for Docker images built by docker-ros"
99
license = {file = "LICENSE"}
1010
readme = "README.md"

docker-run-docker-ros/src/docker_run/plugins/docker_ros.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
from docker_run.plugins.plugin import Plugin
77

88

9-
__version__ = "1.0.3"
9+
__version__ = "1.0.4"
1010

1111

1212
class DockerRosPlugin(Plugin):
1313

14-
TARGET_MOUNT = "/docker-ros/ws/src/target"
14+
WORKSPACE = "/docker-ros/ws"
15+
TARGET_MOUNT = f"{WORKSPACE}/src/target"
1516

1617
@classmethod
1718
def addArguments(cls, parser: argparse.ArgumentParser):
@@ -51,4 +52,4 @@ def userExecFlags(cls, user: str) -> List[str]:
5152

5253
@classmethod
5354
def currentDirMountWorkspaceFlags(cls) -> List[str]:
54-
return [f"--volume {os.getcwd()}:{cls.TARGET_MOUNT}"]
55+
return [f"--volume {os.getcwd()}:{cls.TARGET_MOUNT}", f"--workdir {cls.WORKSPACE}"]

0 commit comments

Comments
 (0)