mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-14 05:39:11 +00:00
devcontainers: mount workspace in /PowerShell (#23857)
* devcontainers: mount workspace in /PowerShell * Delete .devcontainer/fedora30 directory fedora is not supported by PowerShell anymore * Update Dockerfile Update to a supported version of Ubuntu --------- Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
1 parent
8a8f2d4b23
commit
2b64ee6955
4 files changed
+5
-27
No files matched your search
@@ -3,13 +3,14 @@
|
||||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
FROM mcr.microsoft.com/powershell/test-deps:ubuntu-18.04@sha256:20154a16708d4a92ebe81393361f27c7567e6553869e89dd6abdd198cc8ba309
|
||||
FROM mcr.microsoft.com/powershell/test-deps:ubuntu-20.04@sha256:d1609c57d2426b9cfffa3a3ab7bda5ebc4448700f8ba8ef377692c4a70e64b8c
|
||||
|
||||
# Avoid warnings by switching to noninteractive
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Configure apt and install packages
|
||||
RUN apt-get update \
|
||||
&& apt-get -y upgrade \
|
||||
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \
|
||||
#
|
||||
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
"name": ".NET Core 6.0, including pwsh (Ubuntu 18.04)",
|
||||
"dockerFile": "Dockerfile",
|
||||
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/PowerShell,type=bind",
|
||||
"workspaceFolder": "/PowerShell",
|
||||
|
||||
// Uncomment the next line to run commands after the container is created.
|
||||
"postCreateCommand": "cd src/powershell-unix && dotnet restore",
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
FROM mcr.microsoft.com/powershell:preview-fedora-30@sha256:f405d4d60f8d196532da75038c76c052084ef02121f8e2d3852080ff4a230a5a
|
||||
|
||||
# Configure apt and install packages
|
||||
RUN dnf install -y git procps wget findutils \
|
||||
&& dnf clean all
|
||||
@@ -1,16 +0,0 @@
|
||||
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
|
||||
{
|
||||
"name": "Fedora 30",
|
||||
"dockerFile": "Dockerfile",
|
||||
|
||||
// Uncomment the next line to run commands after the container is created.
|
||||
"postCreateCommand": "pwsh -c 'import-module ./build.psm1;start-psbootstrap'",
|
||||
|
||||
"extensions": [
|
||||
"ms-azure-devops.azure-pipelines",
|
||||
"ms-dotnettools.csharp",
|
||||
"ms-vscode.powershell",
|
||||
"DavidAnson.vscode-markdownlint",
|
||||
"vitaliymaz.vscode-svg-previewer"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user