From 652ce9169963a3ec355f0355e30b759c41a9cf97 Mon Sep 17 00:00:00 2001 From: Simon Ingeson <44818+smonn@users.noreply.github.com> Date: Sun, 17 Oct 2021 21:06:31 -0400 Subject: [PATCH] remove devcontainer --- .devcontainer/Dockerfile | 15 -------- .devcontainer/base.Dockerfile | 68 --------------------------------- .devcontainer/devcontainer.json | 28 -------------- 3 files changed, 111 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/base.Dockerfile delete mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index b2479c2..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -# Update the VARIANT arg in devcontainer.json to pick a Node.js version: 14, 12, 10 -ARG VARIANT=14 -FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT} - -# [Optional] Uncomment this section to install additional OS packages. -# RUN apt-get update \ -# && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends - -# [Optional] Uncomment if you want to install an additional version of node using nvm -# ARG EXTRA_NODE_VERSION=10 -# RUN sudo -u node bash -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" - -# [Optional] Uncomment if you want to install more global node modules -# RUN sudo -u node npm install -g diff --git a/.devcontainer/base.Dockerfile b/.devcontainer/base.Dockerfile deleted file mode 100644 index d267569..0000000 --- a/.devcontainer/base.Dockerfile +++ /dev/null @@ -1,68 +0,0 @@ -# Update the VARIANT arg in devcontainer.json to pick a Node.js version: 14, 12, 10 -ARG VARIANT=14 -FROM node:${VARIANT} - -# Options for common setup script -ARG INSTALL_ZSH="true" -ARG UPGRADE_PACKAGES="true" - -# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in -# devcontainer.json to use it. More info: https://aka.ms/vscode-remote/containers/non-root-user. -ARG USERNAME=node -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -# Script sources -ARG COMMON_SCRIPT_SOURCE="https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/common-debian.sh" -ARG COMMON_SCRIPT_SHA="dev-mode" -ARG NVM_YARN_SCRIPT_SOURCE="https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/node-debian.sh" -ARG NVM_YARN_SCRIPT_SHA="dev-mode" - -ENV NVM_DIR=/usr/local/share/nvm \ - NVM_SYMLINK_CURRENT=true \ - PATH=${NVM_DIR}/current/bin:${PATH} - -# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. -RUN apt-get update \ - && export DEBIAN_FRONTEND=noninteractive \ - # Tactically remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131 - && apt-get purge -y imagemagick imagemagick-6-common \ - # Install common packages - && curl -sSL ${COMMON_SCRIPT_SOURCE} -o /tmp/common-setup.sh \ - && ([ "${COMMON_SCRIPT_SHA}" = "dev-mode" ] || (echo "${COMMON_SCRIPT_SHA} */tmp/common-setup.sh" | sha256sum -c -)) \ - && /bin/bash /tmp/common-setup.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \ - # Update yarn and install nvm - && rm -rf /opt/yarn-* /usr/local/bin/yarn /usr/local/bin/yarnpkg \ - && curl -sSL ${NVM_YARN_SCRIPT_SOURCE} -o /tmp/nvm-setup.sh \ - && ([ "${NVM_YARN_SCRIPT_SHA}" = "dev-mode" ] || (echo "${NVM_YARN_SCRIPT_SHA} */tmp/nvm-setup.sh" | sha256sum -c -)) \ - && /bin/bash /tmp/nvm-setup.sh "${NVM_DIR}" "none" "${USERNAME}" \ - # Clean up - && apt-get autoremove -y \ - && apt-get clean -y \ - && rm -rf /var/lib/apt/lists/* /root/.gnupg /tmp/common-setup.sh /tmp/nvm-setup.sh - -# Configure global npm install location -ARG NPM_GLOBAL=/usr/local/share/npm-global -ENV PATH=${PATH}:${NPM_GLOBAL}/bin -RUN mkdir -p ${NPM_GLOBAL} \ - && chown ${USERNAME}:root ${NPM_GLOBAL} \ - && npm config -g set prefix ${NPM_GLOBAL} \ - && sudo -u ${USERNAME} npm config -g set prefix ${NPM_GLOBAL} \ - && echo "if [ \"\$(stat -c '%U' ${NPM_GLOBAL})\" != \"${USERNAME}\" ]; then sudo chown -R ${USER_UID}:root ${NPM_GLOBAL} ${NVM_DIR}; fi" \ - | tee -a /root/.bashrc /root/.zshrc /home/${USERNAME}/.bashrc >> /home/${USERNAME}/.zshrc - -# Install eslint globally -RUN sudo -u ${USERNAME} npm install -g eslint - -# [Optional] Uncomment this section to install additional OS packages. -# RUN apt-get update \ -# && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends - -# [Optional] Uncomment if you want to install an additional version of node using nvm -# ARG EXTRA_NODE_VERSION=10 -# RUN sudo -u node bash -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" - -# [Optional] Uncomment if you want to install more global node modules -# RUN sudo -u node npm install -g - diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index fa2f685..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "Node.js", - "build": { - "dockerfile": "base.Dockerfile", - // Update 'VARIANT' to pick a Node version. Rebuild the container - // if it already exists to update. Available variants: 10, 12, 14 - "args": { "VARIANT": "14" } - }, - - // Set *default* container specific settings.json values on container create. - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" - }, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "dbaeumer.vscode-eslint" - ] - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "yarn install", - - // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. - // "remoteUser": "node" -}