Skip to content

Instantly share code, notes, and snippets.

@smitmartijn
Created September 25, 2020 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smitmartijn/4bf82c6e093da8da40d49f88fcc8780e to your computer and use it in GitHub Desktop.
Save smitmartijn/4bf82c6e093da8da40d49f88fcc8780e to your computer and use it in GitHub Desktop.
.devcontainer/devcontainer.json:
{
"name": "AsBuiltReport.VMware.NSX-T Development Container",
"dockerFile": "Dockerfile",
"postCreateCommand": "pwsh",
"extensions": [
"ms-vscode.powershell"
]
}
.devcontainer/Dockerfile:
FROM ctolan/hax-asbuiltreport:latest
# Set working directory so stuff doesn't end up in /
WORKDIR /root
# Configure apt
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install --no-install-recommends apt-utils 2>&1
# Install git, process tools, lsb-release (common in install instructions for CLIs)
RUN apt-get -y install git procps lsb-release
# Trust PSGallery
SHELL [ "pwsh", "-command" ]
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
CMD ["/usr/bin/pwsh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment