Created
September 18, 2019 13:39
-
-
Save MarkGalloway/563e6655c3cb081be8075dfccc9b527d to your computer and use it in GitHub Desktop.
Grease VSCode DevContainer Test Settings
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
Show hidden characters
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | |
{ | |
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | |
"name": "Grease (Extend)", | |
// Update the 'dockerComposeFile' list if you have more compose files or use different names. | |
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. | |
"dockerComposeFile": [ | |
"../docker-compose.yml", | |
"docker-compose.yml" | |
], | |
// The 'service' property is the name of the service for the container that VS Code should | |
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. | |
"service": "app", | |
// The optional 'workspaceFolder' property is the path VS Code should open by default when | |
// connected. This is typically a file mount in .devcontainer/docker-compose.yml | |
"workspaceFolder": "/code", | |
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. | |
// "shutdownAction": "none", | |
// Uncomment the next line if you want to add in default container specific settings.json values | |
// "settings": { "workbench.colorTheme": "Quiet Light" }, | |
// Uncomment the next line to run commands after the container is created. | |
"postCreateCommand": "/usr/local/bin/python3 -m pip install -U black flake8 pylint pylint_flask_sqlalchemy pylint-flask --user", | |
// Add the IDs of any extensions you want installed in the array below. | |
"extensions": [ | |
"ms-python.python", | |
"visualstudioexptteam.vscodeintellicode" | |
] | |
} |
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
#------------------------------------------------------------------------------------------------------------- | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | |
#------------------------------------------------------------------------------------------------------------- | |
version: '3' | |
services: | |
# Update this to the name of the service you want to work with in your docker-compose.yml file | |
svc: | |
# Uncomment if you want to add a different Dockerfile in the .devcontainer folder | |
# build: | |
# context: . | |
# dockerfile: Dockerfile | |
# Uncomment if you want to expose any additional ports. The snippet below exposes port 3000. | |
# ports: | |
# - 3000:3000 | |
volumes: | |
# Update this to wherever you want VS Code to mount the folder of your project | |
- .:/code | |
# This lets you avoid setting up Git again in the container | |
- ~/.gitconfig:/root/.gitconfig | |
# Uncomment the next line if you plan to install the Docker CLI. See the docker-in-docker-compose definition for details. | |
# - /var/run/docker.sock:/var/run/docker.sock | |
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. | |
# cap_add: | |
# - SYS_PTRACE | |
# security_opt: | |
# - seccomp:unconfined | |
# Overrides default command so things don't shut down after the process ends. | |
command: sleep infinity | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment