Hi
I'm getting an issue with my Dagger module when I've pulled it from a private repo on Github.
The module seems to work fine in terms of being pulled, but I get the following error when trying to work on a Docker Container it pulls down (Ubuntu based container I created)
✘ Container.withExec(args: ["ls", "-ls"]): Container! 0.3s ┃ [dumb-init] : No such file or directory ✘ exec ls -ls 0.3s ! process " ls -ls" did not complete successfully: exit code: 2 ✘ Container.stdout: String! 0.3s ! process " ls -ls" did not complete successfully: exit code: 2
The following is my debug function code
@function async def debug(self, source: dagger.Directory) -> str: """General debugging function for testing the module""" # read some variables from a config text file await self.read_config() messages = "" try: messages = ( #Get the Docker container to work in await self.get_image() .with_mounted_directory("/src", source) .with_workdir(f"/src{self.work_path}") # .terminal() .with_exec(["ls", "-ls"]) .stdout() ) except Exception as e: logging.error(f"Failed to run debug: {e}") return messages
The same code works fine when the module is local to my machine.
Also if I change my code so I run terminal at the point before the problem I can do all the commands fine (ls -ls, pwd, cmake --version)
Can anyone help me fix this issue?