-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(actions): Update Labeler action (#356)
* ci(actions): Update Labeler action * Refresh GH data
- Loading branch information
Showing
6 changed files
with
129 additions
and
91 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,8 @@ | ||
#------------------------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | ||
#------------------------------------------------------------------------------------------------------------- | ||
ARG VARIANT="3.6" | ||
FROM avdteam/base:${VARIANT} | ||
|
||
FROM python:3 | ||
WORKDIR /workspace | ||
VOLUME ["/workspace"] | ||
|
||
# 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 | ||
|
||
# Uncomment the following COPY line and the corresponding lines in the `RUN` command if you wish to | ||
# include your requirements in the image itself. It is suggested that you only do this if your | ||
# requirements rarely (if ever) change. | ||
# COPY requirements.txt /tmp/pip-tmp/ | ||
|
||
# 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 pylint | ||
&& pip --disable-pip-version-check --no-cache-dir install pylint \ | ||
# | ||
# Update Python environment based on requirements.txt | ||
# && pip --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \ | ||
# && rm -rf /tmp/pip-tmp \ | ||
# | ||
# 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 | ||
USER avd | ||
RUN rm -f /home/avd/.gitconfig |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,87 @@ | ||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at | ||
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/python-3 | ||
{ | ||
"name": "Ansible CVP development", | ||
"context": "..", | ||
"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", | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.linting.enabled": true, | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.pylintPath": "/usr/local/bin/pylint" | ||
}, | ||
|
||
// 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": "pip install -r requirements.txt && pip install -r requirements.dev.txt", | ||
|
||
// 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": [ | ||
"ms-python.python" | ||
] | ||
"name": "AVD Development", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick Python version of AVD runner: 3.6, 3.7, 3.8 | ||
"args": { "VARIANT": "3.6" }, | ||
}, | ||
"remoteUser": "avd", | ||
"updateRemoteUserUID": true, | ||
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspace,type=bind,consistency=delegated", | ||
"workspaceFolder": "/workspace", | ||
"extensions": [ | ||
"christian-kohler.path-intellisense", | ||
"codezombiech.gitignore", | ||
"DavidAnson.vscode-markdownlint", | ||
"donjayamanne.python-extension-pack", | ||
"eamodio.gitlens", | ||
"felipe-mendes.slack-theme", | ||
"haaaad.ansible", | ||
"jack89ita.copy-filename", | ||
"jdinhlife.gruvbox", | ||
"jebbs.markdown-extended", | ||
"magicstack.MagicPython", | ||
"mhutchie.git-graph", | ||
"ms-python.python", | ||
"ms-toolsai.jupyter", | ||
"njpwerner.autodocstring", | ||
"PKief.material-icon-theme", | ||
"redhat.vscode-yaml", | ||
"samuelcolvin.jinjahtml", | ||
"timonwong.ansible-autocomplete", | ||
"tuxtina.json2yaml", | ||
"wholroyd.jinja", | ||
"yzhang.markdown-all-in-one", | ||
"coenraads.bracket-pair-colorizer-2", | ||
"github.vscode-pull-request-github", | ||
"ms-python.vscode-pylance" | ||
], | ||
"settings": { | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.analysis.extraPaths": [ | ||
"/workspace/" | ||
], | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.enabled": true, | ||
"editor.rulers": [ | ||
80, | ||
120 | ||
], | ||
"editor.formatOnPaste": true, | ||
"files.trimTrailingWhitespace": true, | ||
"python.linting.pycodestyleEnabled": false, | ||
"python.linting.pycodestyleArgs": [ | ||
"--max-line-length=120", | ||
"--ignore=E501,722" | ||
], | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.flake8Args": [ | ||
"--max-line-length=120", | ||
"--ignore=E722,E501", | ||
"--verbose", | ||
"--exclude=*.pyc *.git", | ||
"--format=pylint" | ||
], | ||
"python.linting.pylintArgs": [ | ||
"--max-line-length=120", | ||
"--disable=E501,W0142,W0403,W0613,W0232,R0903,R0913,C0103,R0914,C0304,F0401,W0402,E1101,W0614,C0111,C0301" | ||
], | ||
"autoDocstring.startOnNewLine": true, | ||
"telemetry.enableCrashReporter": false, | ||
"telemetry.enableTelemetry": false, | ||
"gitlens.views.repositories.location": "scm", | ||
"gitlens.views.fileHistory.location": "explorer", | ||
"gitlens.views.lineHistory.location": "explorer", | ||
"gitlens.views.search.location": "scm", | ||
"gitlens.views.compare.location": "scm", | ||
"gitlens.views.repositories.files.layout": "tree", | ||
"editor.renderWhitespace": "all", | ||
"files.autoSave": "onFocusChange", | ||
"autoDocstring.includeName": true, | ||
"autoDocstring.docstringFormat": "numpy", | ||
"autoDocstring.includeExtendedSummary": true, | ||
"path-intellisense.autoSlashAfterDirectory": true, | ||
"editor.find.autoFindInSelection": "multiline", | ||
"githubIssues.issueBranchTitle": "issues/${issueNumber}" | ||
} | ||
} |
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
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
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
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