Mounting files to be used during features build

Open
#915 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, typescript

Research direction

Start at the devcontainer up flow and the feature installation path, then compare the requested behavior with BuildKit's RUN --mount option. Done means files downloaded before startup can be made available during feature installation without breaking existing dev container builds.

Written by the indexing model from the issue text.

Description

feature-request

I'd like to be able to mount some files which then be later used during feature installation.

My use case looks as follows:

  1. Before running devcontainer up I download some files
  2. Then custom feature needs to do some processing on downloaded files - but it fails since those files are not available during build

I can see that within the BuildKit there is an option that we can leverage:
https://docs.docker.com/reference/dockerfile/#run---mount

Dominant language
TypeScript
Stars
3k
Forks
461
Avg merge
18m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devcontainers/cli

All issues in devcontainers/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.