Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Sample fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Mar 24, 2019
1 parent c219c23 commit 4b227f3
Show file tree
Hide file tree
Showing 60 changed files with 824 additions and 56 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
**/bin
**/obj
**/out
**/target
**/.vscode/ipch
**/.build
**/node_modules
*.DS_Store
*.pyc
Thumbs.db
**/.build
**/node_modules
*.out
*.log
**/.vscode/ipch
*.class
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Visual Studio Code Remote allows you to open any folder inside (or mounted into)

**[See here to learn more about VS Code Remote](https://aka.ms/vscode-remote)**.

This repository contains a set of **dev container definitions** made up of files like `devContainer.json` that can be added to existing projects to get you up and running in a containerized environment.
This repository contains a set of **dev container definitions** made up of files like `devContainer.json` that can be added to existing projects to get you up and running in a containerized environment. These files describe the conatiner image, any runtime arguments for when the conatiner is started, and any VS Code extensions that should be installed into it.

## Trying a definition

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ RUN apt-get update \
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

1 change: 0 additions & 1 deletion container-templates/dockerfile/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ RUN apt-get update \
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

1 change: 0 additions & 1 deletion containers/azure-cli/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

1 change: 0 additions & 1 deletion containers/azure-functions-node-8/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ RUN apt-get install -y apt-transport-https \
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ RUN apt-get install -y python3 python3-pip
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ RUN pip install pylint
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
1 change: 0 additions & 1 deletion containers/azure-terraform/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ RUN mkdir -p /tmp/docker-downloads \
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
3 changes: 1 addition & 2 deletions containers/cpp/dev-container.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:1804

# Install git
RUN apt-get update && apt-get -y install git
Expand All @@ -9,5 +9,4 @@ RUN apt-get -y install build-essential cmake cppcheck valgrind
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
1 change: 0 additions & 1 deletion containers/dart-web/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ RUN apt-get update && apt-get -y install git
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

3 changes: 1 addition & 2 deletions containers/docker-in-docker/dev-container.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Note: You can use any Debian/Ubuntu based image you want.
FROM ubuntu:latest
FROM ubuntu:1804

# Install git
RUN apt-get update \
Expand All @@ -15,6 +15,5 @@ RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent soft
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

1 change: 0 additions & 1 deletion containers/dotnetcore-2.2-fsharp/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ RUN apt-get install -y fsharp
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

1 change: 0 additions & 1 deletion containers/dotnetcore-2.2/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ RUN apt-get update && apt-get -y install git
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
1 change: 0 additions & 1 deletion containers/go/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ RUN apt-get update && apt-get -y install git
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

1 change: 0 additions & 1 deletion containers/java-8-maven/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ RUN apt-get update && apt-get -y install git
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ RUN npm install -g eslint
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ RUN npm install -g eslint
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
1 change: 0 additions & 1 deletion containers/kubernetes-helm/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ RUN echo 'if [ "$SYNC_LOCALHOST_KUBECONFIG" == "true" ]; then \
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
1 change: 0 additions & 1 deletion containers/php-7/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ RUN apt-get update && apt-get -y install git
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

3 changes: 1 addition & 2 deletions containers/plantuml/dev-container.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:latest
FROM java:11

# Install required tools
RUN apt-get update \
Expand All @@ -10,6 +10,5 @@ RUN apt-get install -y graphviz
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

8 changes: 6 additions & 2 deletions containers/powershell/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ FROM microsoft/powershell

# Install required tools
RUN apt-get update \
&& apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*
&& apt-get install -y git

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
3 changes: 1 addition & 2 deletions containers/python-2/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ RUN pip install pylint
RUN apt-get update && apt-get -y install git

# Install any missing dependencies for enhanced language service
RUN apt-get install libicu57
RUN apt-get install -y libicu57

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
3 changes: 1 addition & 2 deletions containers/python-3-django/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ ADD . /app/
RUN apt-get update && apt-get -y install git

# Install any missing dependencies for enhanced language service
RUN apt-get install libicu57
RUN apt-get install -y libicu57

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
3 changes: 1 addition & 2 deletions containers/python-3-flask-redis/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ RUN pip install pylint
RUN apt-get update && apt-get -y install git

# Install any missing dependencies for enhanced language service
RUN apt-get install libicu57
RUN apt-get install -y libicu57

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
2 changes: 1 addition & 1 deletion containers/python-3-jupyter-pyspark/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"python.linting.enabled": true,
"python.linting.enabled": false,
"python.dataScience.useDefaultConfigForJupyter": true,
"python.dataScience.notebookFileRoot": "${workspaceFolder}/test-project",
"python.pythonPath": "/opt/conda/bin/python"
Expand Down
3 changes: 1 addition & 2 deletions containers/python-3-jupyter-pyspark/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ USER root
RUN apt-get update && apt-get -y install git

# Install any missing dependencies for enhanced language service
RUN apt-get install libicu57
RUN apt-get install -y libicu57

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
3 changes: 1 addition & 2 deletions containers/python-3/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ RUN pip install pylint
RUN apt-get update && apt-get -y install git

# Install any missing dependencies for enhanced language service
RUN apt-get install libicu57
RUN apt-get install -y libicu57

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
1 change: 0 additions & 1 deletion containers/ruby-2/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ RUN apt-get update && apt-get -y install git
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

6 changes: 4 additions & 2 deletions containers/rust/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"args": [
"build",
"--bin=hello_world",
"--package=hello_world"
"--package=hello_world",
"--manifest-path=test-project/Cargo.toml"
],
"filter": {
"kind": "bin"
Expand All @@ -30,7 +31,8 @@
"test",
"--no-run",
"--bin=hello_world",
"--package=hello_world"
"--package=hello_world",
"--manifest-path=test-project/Cargo.toml"
],
"filter": {
"kind": "bin"
Expand Down
3 changes: 1 addition & 2 deletions containers/rust/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ RUN rustup component add rls rust-analysis rust-src
RUN apt-get update && apt-get -y install git

# Install other dependencies
RUN apt-get install lldb-3.9
RUN apt-get install -y lldb-3.9

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
2 changes: 1 addition & 1 deletion containers/swift-4/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"label": "swift-build",
"type": "shell",
"command": "swift build",
"command": "cd test-project && swift build",
"problemMatcher": []
}
]
Expand Down
1 change: 0 additions & 1 deletion containers/swift-4/dev-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ RUN cd sourcekite && swift build -Xlinker -l:sourcekitdInProc -c release
# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "TypeScript",
"dockerFile": "dev-container.dockerfile",
"appPort": 8090,
"appPort": 3000,
"extensions": [
"ms-vscode.vscode-typescript-tslint-plugin"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/test-project/out/server.js",
"preLaunchTask": "npm: compile"
"cwd": "${workspaceFolder}/test-project",
"preLaunchTask": "compile"
}
]
}
14 changes: 14 additions & 0 deletions containers/typescript-node-8/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "compile",
"type": "shell",
"command": "cd test-project && npm run compile",
"problemMatcher": "$tsc"

}
]
}
12 changes: 12 additions & 0 deletions containers/typescript-node-8/dev-container.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:8-slim

# Install git
RUN apt-get update && apt-get -y install git

# Install tslint
RUN npm install -g tslint typescript

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
Loading

0 comments on commit 4b227f3

Please sign in to comment.