Created
September 25, 2020 09:47
-
-
Save smitmartijn/4bf82c6e093da8da40d49f88fcc8780e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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