Regression test fixes
This commit is contained in:
Родитель
e36c62789d
Коммит
021f14e758
|
@ -40,7 +40,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Pick any base image, but if you select node, skip installing node. 😊
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-9
|
||||
FROM debian:9
|
||||
|
||||
# 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
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-9
|
||||
FROM debian:9
|
||||
|
||||
# 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
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "ms-vscode.azurecli"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "azure-cli" az --version
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Pick any base image, but if you select node, skip installing node. 😊
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-9
|
||||
FROM debian:9
|
||||
|
||||
# Terraform and tflint versions
|
||||
ARG TERRAFORM_VERSION=0.11.13
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Pick any base image, but if you select node, skip installing node. 😊
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-9
|
||||
FROM debian:9
|
||||
|
||||
# Terraform and tflint versions
|
||||
ARG TERRAFORM_VERSION=0.12.16
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# 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/vscode/devcontainers/base:debian-9
|
||||
FROM debian:9
|
||||
|
||||
# Bazel version and hash
|
||||
ENV BAZEL_VERSION=0.25.2
|
||||
|
@ -24,18 +24,6 @@ RUN apt-get update \
|
|||
# Verifty git, process tools, lsb-release (common in install instructions for CLIs) installed
|
||||
&& apt-get -y install git iproute2 procps lsb-release \
|
||||
#
|
||||
# Install Bazel
|
||||
&& apt-get -y install curl pkg-config zip g++ zlib1g-dev unzip python \
|
||||
&& curl -fSsL -o bazel-installer.sh https://github.com/bazelbuild/bazel/releases/download/0.25.2/bazel-0.25.2-installer-linux-x86_64.sh \
|
||||
&& echo "${BAZEL_SHA256} *bazel-installer.sh" | sha256sum --check - \
|
||||
&& chmod +x bazel-installer.sh \
|
||||
&& ./bazel-installer.sh \
|
||||
&& rm ./bazel-installer.sh \
|
||||
&& echo '\n\
|
||||
export PATH="$PATH:$HOME/bin" \n\
|
||||
'\
|
||||
>> $HOME/.bashrc \
|
||||
#
|
||||
# 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 \
|
||||
|
@ -44,6 +32,14 @@ RUN apt-get update \
|
|||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
|
||||
&& chmod 0440 /etc/sudoers.d/$USERNAME \
|
||||
#
|
||||
# Install Bazel
|
||||
&& apt-get -y install curl pkg-config zip g++ zlib1g-dev unzip python \
|
||||
&& curl -fSsL -o bazel-installer.sh https://github.com/bazelbuild/bazel/releases/download/0.25.2/bazel-0.25.2-installer-linux-x86_64.sh \
|
||||
&& echo "${BAZEL_SHA256} *bazel-installer.sh" | sha256sum --check - \
|
||||
&& chmod +x bazel-installer.sh \
|
||||
&& ./bazel-installer.sh --base=/usr/local \
|
||||
&& rm ./bazel-installer.sh \
|
||||
#
|
||||
# Clean up
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean -y \
|
||||
|
|
|
@ -29,8 +29,8 @@ ENV ORYX_ENV_TYPE=vsonline-present
|
|||
ADD symlinkDotNetCore.sh /tmp/codespace/symlinkDotNetCore.sh
|
||||
|
||||
# Install packages, setup codespace user
|
||||
RUN apt-get update \
|
||||
export DEBIAN_FRONTEND=noninteractive -yq \
|
||||
RUN apt-get update -yq\
|
||||
&& export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -yq install --no-install-recommends apt-utils dialog 2>&1 \
|
||||
&& apt-get install -yq \
|
||||
default-jdk \
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "ms-vscode.cpptools"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release g++ gcc cmake cppcheck valgrind
|
||||
check "g++" g++ -g main.cpp -o main.out
|
||||
|
|
|
@ -41,7 +41,7 @@ checkExtension "ms-vscode.vscode-typescript-tslint-plugin"
|
|||
checkExtension "dbaeumer.vscode-eslint"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "node" "node --version"
|
||||
|
|
|
@ -20,6 +20,7 @@ ARG COMMON_SCRIPT_SHA="dev-mode"
|
|||
|
||||
# Configure apt and install packages
|
||||
RUN apt-get update \
|
||||
&& export DEBIAN_FRONTEND=noninteractive \
|
||||
#
|
||||
# Verify git, common tools / libs installed, add/modify non-root user, optionally install zsh
|
||||
&& apt-get -y install --no-install-recommends curl ca-certificates 2>&1 \
|
||||
|
|
|
@ -39,7 +39,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "ms-azuretools.vscode-docker"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "docker" docker ps -a
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "ms-azuretools.vscode-docker"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "docker" docker ps -a
|
||||
|
|
|
@ -47,7 +47,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "vscjava.vscode-java-pack"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release curl
|
||||
check "java" java -version
|
||||
|
|
|
@ -48,7 +48,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "vscjava.vscode-java-pack"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ifconfig curl
|
||||
check "java" java -version
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "vscjava.vscode-java-pack"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release curl
|
||||
check "java" java -version
|
||||
|
|
|
@ -47,7 +47,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "vscjava.vscode-java-pack"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release curl
|
||||
check "java" java -version
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "dbaeumer.vscode-eslint"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "node" "node --version"
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "dbaeumer.vscode-eslint"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "node" "node --version"
|
||||
|
|
|
@ -40,7 +40,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "dbaeumer.vscode-eslint"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "node" "node --version"
|
||||
|
|
|
@ -41,7 +41,7 @@ checkExtension "dbaeumer.vscode-eslint"
|
|||
check "node" "node --version"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "yarn" yarn install
|
||||
|
|
|
@ -41,7 +41,7 @@ checkExtension "dbaeumer.vscode-eslint"
|
|||
check "node" "node --version"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "yarn" yarn install
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-10
|
||||
FROM debian:10
|
||||
|
||||
# This Dockerfile adds a non-root 'vscode' user with sudo access. However, for Linux,
|
||||
# this user's GID/UID must match your local user UID/GID to avoid permission issues
|
||||
|
|
|
@ -44,7 +44,7 @@ checkExtension "ms-azuretools.vscode-docker"
|
|||
checkExtension "ms-kubernetes-tools.vscode-kubernetes-tools"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "docker" docker ps -a
|
||||
|
|
|
@ -43,7 +43,7 @@ checkExtension "davidanson.vscode-markdownlint"
|
|||
checkExtension "shd101wyy.markdown-preview-enhanced"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "php" php --version
|
||||
|
|
|
@ -15,7 +15,8 @@ ARG USER_GID=$USER_UID
|
|||
|
||||
# install git iproute2, process tools
|
||||
RUN apt-get update \
|
||||
export DEBIAN_FRONTEND=noninteractive && apt-get -y install git openssh-client less iproute2 procps \
|
||||
&& export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -y install git openssh-client less iproute2 procps \
|
||||
#
|
||||
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
|
||||
&& groupadd --gid $USER_GID $USERNAME \
|
||||
|
|
|
@ -41,7 +41,7 @@ checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$H
|
|||
checkExtension "ms-vscode.powershell"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip
|
||||
check "powershell" pwsh hello.ps1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-10
|
||||
FROM debian:10
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/vscode/devcontainers/base:debian-10
|
||||
FROM debian:10
|
||||
|
||||
# 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
|
||||
|
|
|
@ -19,7 +19,8 @@ ARG USER_GID=$USER_UID
|
|||
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
|
||||
groupmod --gid $USER_GID $USERNAME \
|
||||
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
|
||||
&& chown -R $USER_UID:$USER_GID /home/$USERNAME; \
|
||||
&& chown -R $USER_UID:$USER_GID /home/$USERNAME \
|
||||
&& chown -R $USERNAME:root /usr/local/share/npm-global; \
|
||||
fi \
|
||||
#
|
||||
# Install tslint, typescript. eslint is installed by javascript image
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
**/node_modules/**
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -16,9 +16,10 @@
|
|||
"devDependencies": {
|
||||
"@types/express": "^4.16.0",
|
||||
"@types/node": "^8.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.6.1",
|
||||
"@typescript-eslint/parser": "^2.6.1",
|
||||
"eslint": "^6.6.0",
|
||||
"typescript": "^3.7.2"
|
||||
"@typescript-eslint/eslint-plugin": "^2.31.0",
|
||||
"@typescript-eslint/parser": "^2.31.0",
|
||||
"vscode-nls-dev": "^3.3.1",
|
||||
"eslint":"^6.0.0",
|
||||
"typescript": "^3.8.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@ checkExtension "ms-vscode.vscode-typescript-tslint-plugin"
|
|||
checkExtension "dbaeumer.vscode-eslint"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "node" "node --version"
|
||||
check "yarn" yarn install
|
||||
check "npm" npm install
|
||||
check "tslint" "tslint src/server.ts"
|
||||
check "eslint" "eslint src/server.ts"
|
||||
check "eslint" "eslint --no-eslintrc -c .eslintrc.json src/server.ts"
|
||||
check "typescript" npm run compile
|
||||
check "test-project" npm run test
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@ ARG USER_GID=$USER_UID
|
|||
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
|
||||
groupmod --gid $USER_GID $USERNAME \
|
||||
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
|
||||
&& chown -R $USER_UID:$USER_GID /home/$USERNAME; \
|
||||
&& chown -R $USER_UID:$USER_GID /home/$USERNAME \
|
||||
&& chown -R $USERNAME:root /usr/local/share/npm-global; \
|
||||
fi \
|
||||
#
|
||||
# Install tslint, typescript. eslint is installed by javascript image
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
**/node_modules/**
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -11,15 +11,15 @@
|
|||
"test": " REGRESSION_TESTING=true npm start"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.16.1",
|
||||
"tslint-to-eslint-config": "^0.2.11"
|
||||
"express": "^4.16.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.16.0",
|
||||
"@types/node": "^8.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.6.1",
|
||||
"@typescript-eslint/parser": "^2.6.1",
|
||||
"eslint": "^6.6.0",
|
||||
"typescript": "^3.7.2"
|
||||
"@typescript-eslint/eslint-plugin": "^2.31.0",
|
||||
"@typescript-eslint/parser": "^2.31.0",
|
||||
"vscode-nls-dev": "^3.3.1",
|
||||
"eslint":"^6.0.0",
|
||||
"typescript": "^3.8.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@ checkExtension "ms-vscode.vscode-typescript-tslint-plugin"
|
|||
checkExtension "dbaeumer.vscode-eslint"
|
||||
check "non-root-user" "id node"
|
||||
check "/home/node" [ -d "/home/node" ]
|
||||
check "sudo" sudo -u node echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
check "node" "node --version"
|
||||
check "yarn" yarn install
|
||||
check "npm" npm install
|
||||
check "tslint" "tslint src/server.ts"
|
||||
check "eslint" "eslint src/server.ts"
|
||||
check "eslint" "eslint --no-eslintrc -c .eslintrc.json src/server.ts"
|
||||
check "typescript" npm run compile
|
||||
check "test-project" npm run test
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ checkExtension() {
|
|||
checkMultiple "vscode-server" 1 "[ -d ""$HOME/.vscode-server/bin"" ]" "[ -d ""$HOME/.vscode-server-insiders/bin"" ]" "[ -d ""$HOME/.vscode-test-server/bin"" ]"
|
||||
check "non-root-user" "id vscode"
|
||||
check "/home/vscode" [ -d "/home/vscode" ]
|
||||
check "sudo" sudo -u vscode echo "sudo works."
|
||||
check "sudo" sudo echo "sudo works."
|
||||
check "git" git --version
|
||||
check "command-line-tools" which top ip lsb_release
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ apt-get -y install --no-install-recommends \
|
|||
lsb-release \
|
||||
ca-certificates \
|
||||
apt-transport-https \
|
||||
dialog \
|
||||
gnupg \
|
||||
libc6 \
|
||||
libgcc1 \
|
||||
|
|
Загрузка…
Ссылка в новой задаче