From 4b83b9baa1508f6b4a063c5eb9e916832cb27751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 5 Oct 2021 22:29:30 +0200 Subject: [PATCH] remove .devcontainer folder. #95 --- .devcontainer/Dockerfile | 51 ------------------------------- .devcontainer/devcontainer.json | 25 --------------- .devcontainer/docker-compose.yaml | 17 ----------- 3 files changed, 93 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/devcontainer.json delete mode 100644 .devcontainer/docker-compose.yaml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 3bc2529b..00000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,51 +0,0 @@ -FROM nurdism/neko:dev - -# 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=neko -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -# -# Set to false to skip installing zsh and Oh My ZSH! -ARG INSTALL_ZSH="true" - -# -# Location and expected SHA for common setup script - SHA generated on release -ARG COMMON_SCRIPT_SOURCE="https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/common-debian.sh" -ARG COMMON_SCRIPT_SHA="dev-mode" - -# -# Docker Compose version -ARG COMPOSE_VERSION=1.24.0 - -# -# Verify git, common tools / libs installed, add/modify non-root user, optionally install zsh -RUN set -eux; \ - wget -q -O /tmp/common-setup.sh $COMMON_SCRIPT_SOURCE; \ - if [ "$COMMON_SCRIPT_SHA" != "dev-mode" ]; then echo "$COMMON_SCRIPT_SHA /tmp/common-setup.sh" | sha256sum -c - ; fi; \ - /bin/bash /tmp/common-setup.sh "$INSTALL_ZSH" "$USERNAME" "$USER_UID" "$USER_GID"; \ - rm /tmp/common-setup.sh; \ - # - # Install docker - apt-get install -y apt-transport-https gnupg-agent software-properties-common lsb-release; \ - curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | (OUT=$(apt-key add - 2>&1) || echo $OUT); \ - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable"; \ - apt-get update; apt-get install -y docker-ce-cli; \ - # - # Install docker compose - curl -sSL "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose; \ - chmod +x /usr/local/bin/docker-compose; \ - # - # Set alternate global install location that both users have rights to access - mkdir -p /usr/local/share/npm-global; \ - chown ${USERNAME}:root /usr/local/share/npm-global; \ - npm config -g set prefix /usr/local/share/npm-global; \ - sudo -u ${USERNAME} npm config -g set prefix /usr/local/share/npm-global - -ENV PATH=/usr/local/share/npm-global/bin:$PATH - -# -# switch back to dialog for any ad-hoc use of apt-get -ENV DEBIAN_FRONTEND=dialog diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 285e531b..00000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "neko", - "service": "neko", - "dockerComposeFile": "docker-compose.yaml", - "workspaceFolder": "/workspace", - "remoteUser": "neko", - "settings": { - "terminal.integrated.shell.linux": "/bin/bash", - "go.gopath": "/go" - }, - "extensions": [ - "ms-vscode.go", - "octref.vetur", - "ms-vscode.cpptools", - "esbenp.prettier-vscode", - "dbaeumer.vscode-eslint", - "ms-vscode-remote.vscode-remote-extensionpack", - "ms-vscode-remote.remote-containers", - "ms-azuretools.vscode-docker", - "editorconfig.editorconfig", - "gruntfuggly.todo-tree", - "eamodio.gitlens", - "swyphcosmo.spellchecker" - ] -} diff --git a/.devcontainer/docker-compose.yaml b/.devcontainer/docker-compose.yaml deleted file mode 100644 index 32838ba7..00000000 --- a/.devcontainer/docker-compose.yaml +++ /dev/null @@ -1,17 +0,0 @@ -version: '2.0' -services: - neko: - network_mode: host - build: - context: . - dockerfile: Dockerfile - shm_size: '2gb' - cap_add: - - SYS_PTRACE - security_opt: - - seccomp:unconfined - volumes: - - /home//neko:/workspace - - /var/run/docker.sock:/var/run/docker.sock - - command: "/bin/sh -c \"while sleep 1000; do :; done\"" \ No newline at end of file