microsoft / microsoft/vscode-remote-release

Build image with user defined tag

Open
#3,650 8 comments 39 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Mar 3, 2021.

containers feature-request plan-review
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Why not provide the possibility to define the tag of an image build with a devContainer?

I would like to have something like this:
"build": { "dockerfile":"Dockerfile", "tag":"imageName:Version" }
Why not provide the possibility to the user? It would be much easier that I can than upload the image to a Artifactory and not have to re-tag it.

Currently it's only possible with this very dirty workaround:
{ "name": "test", "image": "test:version", "runArgs": [ "--name", "${localWorkspaceFolderBasename}" ], "initializeCommand": "docker build -f .devcontainer/Dockerfile --network host -t test:version ." }

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.