Skip to content

Local feature not working in Remote-Containers #116

Closed

Description

Remote-Containers 0.244.0

Using:

{
	"context": ".",
	"dockerFile": "Dockerfile",
	"features": {
		"./local-features/foo": "latest"
	}
}

fails with:

ENOENT: no such file or directory, lstat '/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-containers-0.244.0/local-features/foo'

Activity

  1. added
    bug
    on Aug 9, 2022
  2. added a commit that references this issue on Aug 9, 2022
    bfa33e5
  3. added a commit that references this issue on Aug 9, 2022
    08dd8b8
  4. rzhao271 commented on Aug 26, 2022

    @rzhao271
    Contributor

    On Windows, I get the error "Expected feature identifier to contain only alphanumeric and/or the '-' characters."
    I'm also unable to build the container with that configuration.

  5. added
    verification-steps-needed
    on Sep 1, 2022
  6. chrmarti commented on Sep 1, 2022

    @chrmarti
    ContributorAuthor

    Thanks Raymond Zhao (@rzhao271), the following verifies the fix:

    File layout:
    image

    devcontainer.json:

    {
    	"image": "ubuntu:latest",
    	"features": {
    		"./foo": "latest"
    	}
    }

    devcontainer-feature.json:

    {
        "id": "foo"
    }

    install.sh:

    #!/bin/sh
    
    echo HERE!
    echo THERE! >/there.txt

    In the devcontainer check that the file /there.txt exists.

    (If you want to reproduce the problem in 0.244.0 first, you need to change the feature's path in the devcontainer.json to "./.devcontainer/foo". This changed later to be relative to the devcontainer.json.)

  7. removed
    verification-steps-needed
    on Sep 1, 2022
  8. rzhao271 commented on Sep 1, 2022

    @rzhao271
    Contributor

    Verified in macOS on 0.252.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions