Skip to content

Commit

Permalink
Merge pull request #5 from ika-rwth-aachen/improvement/workdir
Browse files Browse the repository at this point in the history
Improve workdir handling of docker-run-docker-ros
  • Loading branch information
jpbusch committed Jun 15, 2023
2 parents 63435ed + b3c46de commit 77e1f76
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-run-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "docker-run-cli"
version = "0.9.4"
version = "0.9.5"
description = "'docker run' and 'docker exec' with useful defaults"
license = {file = "LICENSE"}
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion docker-run-cli/src/docker_run/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__name__ = "docker-run"
__version__ = "0.9.4"
__version__ = "0.9.5"
2 changes: 1 addition & 1 deletion docker-run-docker-ros/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "docker-run-docker-ros"
version = "1.0.3"
version = "1.0.4"
description = "docker-run plugin for Docker images built by docker-ros"
license = {file = "LICENSE"}
readme = "README.md"
Expand Down
7 changes: 4 additions & 3 deletions docker-run-docker-ros/src/docker_run/plugins/docker_ros.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
from docker_run.plugins.plugin import Plugin


__version__ = "1.0.3"
__version__ = "1.0.4"


class DockerRosPlugin(Plugin):

TARGET_MOUNT = "/docker-ros/ws/src/target"
WORKSPACE = "/docker-ros/ws"
TARGET_MOUNT = f"{WORKSPACE}/src/target"

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

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

0 comments on commit 77e1f76

Please sign in to comment.