Skip to content

Commit

Permalink
devcontainers: mount workspace in /PowerShell (#23857)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
rzippo and TravisEz13 authored Jul 31, 2024
1 parent 8a8f2d4 commit 2b64ee6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
10 changes: 0 additions & 10 deletions .devcontainer/fedora30/Dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions .devcontainer/fedora30/devcontainer.json

This file was deleted.

0 comments on commit 2b64ee6

Please sign in to comment.