Skip to content

Enable Dockerfile/devcontainer.json iteration from repository containers - support to inspect a volume #2726

Closed

Description

@Chuxel

I started using repository containers to update the vscode-remote-try-* samples but ended up moving back to the local filesystem because there was no way to iterate on the Dockerfile or devcontainer.json file once in the repository.

The issue is that, once it failed, there was no way to recover. This is because you cannot "reopen locally" given the is in a volume. Practically speaking, you need to do all your container iteration in a local clone of a repo, then push. That workflow hiccup will slow adoption IMHO.

To recommend use of the repository container from the start, we'd need some way need to be able to edit these files from VS Code despite their being in a volume and allow a container rebuild without risk.

One possible way to resolve this issue would be to replace "Reopen locally" with "reopen in temporary container" or something similar that mounts the same volume but with a simple image that contains little more than basic editing and Git. (e.g. A simple approach could be to have the extension drops a pre-defined devcontainer.json in a temp folder that includes the volume as the workspace mount and then do "open folder in container on it.)

This is related, but separate from, #2435 and #2428 which assumes you've pushed an update to the repository (whereas here you would not).

//cc: Erich Gamma (@egamma) Christof Marti (@chrmarti)

Activity

  1. added
    containers
    feature-request
    on Apr 9, 2020
  2. chrmarti commented on Apr 14, 2020

    @chrmarti
    Contributor

    I agree with the safe-mode container approach. A simple way of implementing it would be to pass a flag safemode: true in the authority and with that set skip reading the devcontainer.json from the project folder and instead set the config to a safe default. That config could be in code to avoid having the user opening the temp file.

  3. changed the title [-]Enable Dockerfile/devcontainer.json iteration from repository containers[/-] [+]Enable Dockerfile/devcontainer.json iteration from repository containers - support to inspect a volume[/+] on Jun 1, 2020
  4. locked and limited conversation to collaborators on Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    containersfeature-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions