microsoft / microsoft/vscode-remote-release
Build image with user defined tag
@chrmarti is already working on this.
Since Mar 3, 2021.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.