Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone repository in container volume / docker compose / path to repository #4093

Open
aheissenberger opened this issue Nov 29, 2020 · 3 comments
Assignees
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality plan-review PM-highlighted item determined to be P1 or P2
Milestone

Comments

@aheissenberger
Copy link

aheissenberger commented Nov 29, 2020

Problem:

  • devcontainer and docker-composer.yml starting the container has no information about the path to /workspaces/xxxx which is used to mount the cloned source code
  • See .devcontainer/lsyncd.conf:7 the directory should not be hard coded to /workspaces/xx: source="/workspaces/vscode-remote-test-1",

use case
sync the mounted /workspaces/xxxxx from the dev container to other container with lsyncd

steps to reproduce

  • Clone repository in container volume https://github.com/aheissenberger/vscode-remote-clone-repo-docker-compose

  • create a new volume every time - (currently only works with named volume vscode-remote-test-1 with target directory vscode-remote-test-1 - paths os hard coded!)

  • the .devcontainer folder with dock-compose.yml will start the dev container and a sample phpapache container

  • need to provide the path to the mounted volume including the random subdirectory (e.g. /workspaces/xxxxx) to the dev container as an environment variable

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Nov 30, 2020
@chrmarti chrmarti added the feature-request Request for new features or functionality label Nov 30, 2020
@chrmarti
Copy link
Contributor

Related: #3034

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality plan-review PM-highlighted item determined to be P1 or P2
Projects
None yet
Development

No branches or pull requests

4 participants
@aheissenberger @chrmarti @bamurtaugh and others