diff --git a/containers/dotnetcore-2.2-fsharp/.devcontainer/Dockerfile b/containers/dotnetcore-2.2-fsharp/.devcontainer/Dockerfile deleted file mode 100644 index 2f11847b26..0000000000 --- a/containers/dotnetcore-2.2-fsharp/.devcontainer/Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- - -FROM mcr.microsoft.com/dotnet/core/sdk:2.2 - -# Avoid warnings by switching to noninteractive -ENV DEBIAN_FRONTEND=noninteractive - -# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser" -# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs -# will be updated to match your local UID/GID (when using the dockerFile property). -# See https://aka.ms/vscode-remote/containers/non-root-user for details. -ARG USERNAME=vscode -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -# Configure apt and install packages -RUN apt-get update \ - && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \ - # - # Verify git, process tools, lsb-release (common in install instructions for CLIs) installed - && apt-get -y install git iproute2 procps lsb-release \ - # - # Install F# - && apt-get install -y fsharp \ - # - # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user. - && groupadd --gid $USER_GID $USERNAME \ - && useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \ - # [Optional] Add sudo support for the non-root user - && apt-get install -y sudo \ - && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\ - && chmod 0440 /etc/sudoers.d/$USERNAME \ - # - # Clean up - && apt-get autoremove -y \ - && apt-get clean -y \ - && rm -rf /var/lib/apt/lists/* - -# Switch back to dialog for any ad-hoc use of apt-get -ENV DEBIAN_FRONTEND=dialog diff --git a/containers/dotnetcore-2.2-fsharp/.devcontainer/devcontainer.json b/containers/dotnetcore-2.2-fsharp/.devcontainer/devcontainer.json deleted file mode 100644 index ba0c095bbb..0000000000 --- a/containers/dotnetcore-2.2-fsharp/.devcontainer/devcontainer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "F# (.NET Core 2.2)", - "dockerFile": "Dockerfile", - - // Use 'settings' to set *default* container specific settings.json values on container create. - // You can edit these settings after create using File > Preferences > Settings > Remote. - "settings": { - "terminal.integrated.shell.linux": "/bin/bash", - "FSharp.fsacRuntime":"netcore" - }, - - // Use 'appPort' to create a container with published ports. If the port isn't working, be sure - // your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost. - // "appPort": [], - - // Uncomment the next line to run commands after the container is created. - // "postCreateCommand": "dotnet restore", - - // Uncomment the next line to have VS Code connect as an existing non-root user in the container. - // On Linux, by default, the container user's UID/GID will be updated to match your local user. See - // https://aka.ms/vscode-remote/containers/non-root for details on adding a non-root user if none exist. - // "remoteUser": "vscode", - - // Add the IDs of extensions you want installed when the container is created in the array below. - "extensions": [ - "Ionide.Ionide-fsharp", - "ms-vscode.csharp" - ] -} \ No newline at end of file diff --git a/containers/dotnetcore-2.2-fsharp/.npmignore b/containers/dotnetcore-2.2-fsharp/.npmignore deleted file mode 100644 index c924b8ec01..0000000000 --- a/containers/dotnetcore-2.2-fsharp/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -README.md -test-project -.vscode -.npmignore -.ionide diff --git a/containers/dotnetcore-2.2-fsharp/.vscode/launch.json b/containers/dotnetcore-2.2-fsharp/.vscode/launch.json deleted file mode 100644 index 52284bb7f4..0000000000 --- a/containers/dotnetcore-2.2-fsharp/.vscode/launch.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": ".NET Core Launch (console)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceFolder}/test-project/bin/Debug/netcoreapp2.2/app.dll", - "args": [], - "cwd": "${workspaceFolder}/test-project", - "console": "integratedTerminal", - "stopAtEntry": false, - "internalConsoleOptions": "openOnSessionStart" - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach", - "processId": "${command:pickProcess}" - } - ] -} \ No newline at end of file diff --git a/containers/dotnetcore-2.2-fsharp/.vscode/settings.json b/containers/dotnetcore-2.2-fsharp/.vscode/settings.json deleted file mode 100644 index cefd1b445f..0000000000 --- a/containers/dotnetcore-2.2-fsharp/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "razor.disabled": true -} \ No newline at end of file diff --git a/containers/dotnetcore-2.2-fsharp/.vscode/tasks.json b/containers/dotnetcore-2.2-fsharp/.vscode/tasks.json deleted file mode 100644 index f6566619f2..0000000000 --- a/containers/dotnetcore-2.2-fsharp/.vscode/tasks.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "cd test-project && dotnet build", - "type": "shell", - "group": "build", - "presentation": { - "reveal": "silent" - }, - "problemMatcher": "$msCompile" - } - ] -} \ No newline at end of file diff --git a/containers/dotnetcore-2.2-fsharp/README.md b/containers/dotnetcore-2.2-fsharp/README.md deleted file mode 100644 index 6e6b4d7393..0000000000 --- a/containers/dotnetcore-2.2-fsharp/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# F# (.NET Core Latest) - -## Summary - -*Develop F# and .NET Core (latest) based applications. Includes all needed SDKs, extensions, and dependencies.* - -| Metadata | Value | -|----------|-------| -| *Contributors* | The VS Code Team | -| *Definition type* | Dockerfile | -| *Languages, platforms* | .NET Core, F# | - -## Using this definition with an existing folder - -Note that only the integrated terminal is supported by the Remote - Containers extension. You may need to modify `launch.json` configurations to include the following value if an external console is used. - -```json -"console": "integratedTerminal" -``` - -Beyond that, just follow these steps to use the definition: - -1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. - -2. To use VS Code's copy of this definition: - 1. Start VS Code and open your project folder. - 2. Press F1 select and **Remote-Containers: Add Development Container Configuration Files...** from the command palette. - 3. Select the F# (.NET Core Latest) definition. - -3. To use latest-and-greatest copy of this definition from the repository: - 1. Clone this repository. - 2. Copy the contents of `containers/dotnetcore-latest-fsharp/.devcontainer` to the root of your project folder. - 3. Start VS Code and open your project folder. - -4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. - -5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. - -## Testing the definition - -This definition includes some test code that will help you verify it is working as expected on your system. Follow these steps: - -1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine. -2. Clone this repository. -3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** -4. Select the `containers/dotnetcore-latest-fsharp` folder. -5. When prompted click "Restore" in the notification to restore packages. -6. After the folder has opened in the container, press F5 to start the project. -7. You should see "Hello Remote World from the F# Container!" in a terminal window after the program executes. -8. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. - -## License - -Copyright (c) Microsoft Corporation. All rights reserved. - -Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/dotnetcore-2.2-fsharp/test-project/Program.fs b/containers/dotnetcore-2.2-fsharp/test-project/Program.fs deleted file mode 100644 index b8ec94d347..0000000000 --- a/containers/dotnetcore-2.2-fsharp/test-project/Program.fs +++ /dev/null @@ -1,15 +0,0 @@ -//---------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -// ---------------------------------------------------------------------------------------- - -open System - -[] -let main argv = - let from = "F# Container" - let target = "Remote World" - let message = "Hello " + target + " from the " + from + "!" - printfn "%s" message - - 0 // return an integer exit code diff --git a/containers/dotnetcore-2.2-fsharp/test-project/app.fsproj b/containers/dotnetcore-2.2-fsharp/test-project/app.fsproj deleted file mode 100644 index 76c422bfe7..0000000000 --- a/containers/dotnetcore-2.2-fsharp/test-project/app.fsproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - Exe - netcoreapp2.2 - - - - - - - \ No newline at end of file