From b7f50f0053eebc96bc9ff6abc6f55d4fa4e8916a Mon Sep 17 00:00:00 2001 From: Jacky Date: Sun, 25 Feb 2024 20:01:54 +0800 Subject: [PATCH] revert: use dev container --- .devcontainer/Dockerfile | 38 --------------------------------- .devcontainer/devcontainer.json | 9 -------- 2 files changed, 47 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 8987019b..00000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -FROM --platform=linux/arm64/v8 ubuntu:latest - -WORKDIR /app -EXPOSE 80 443 - -# COPY resources/development/sources.list /etc/apt/sources.list - -ENV GO_VERSION="1.22.0" -ENV GO_ARCH="linux-arm64" -ENV GO_TAR="go${GO_VERSION}.${GO_ARCH}.tar.gz" -ENV PATH="${PATH}:/usr/local/go/bin" - -RUN set -x \ - # create nginx user/group first, to be consistent throughout docker variants - && addgroup --system --gid 101 nginx \ - && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \ - && apt update && apt install gcc curl gnupg2 ca-certificates lsb-release ubuntu-keyring wget -y \ - && curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \ - | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null \ - && echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ - https://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" \ - | tee /etc/apt/sources.list.d/nginx.list - -RUN echo "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" | tee /etc/apt/preferences.d/99nginx \ - && apt update && apt install nginx -y - -RUN wget https://go.dev/dl/${GO_TAR} && \ - rm -rf /usr/local/go && tar -C /usr/local -xzf ${GO_TAR} && rm -f ${GO_TAR} - -RUN go install github.com/cosmtrek/air@latest - -COPY ../resources/development/entrypoint.sh /entrypoint.sh - -RUN chmod a+x /entrypoint.sh \ - && rm -f /etc/nginx/conf.d/default.conf \ - && rm -f /usr/etc/nginx/conf.d/default.conf - -CMD ["/entrypoint.sh"] diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index a58b8300..00000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,9 +0,0 @@ -// Info https://containers.dev/implementors/json_reference/ -{ - // name of the dev container - "name": "nginx-ui-dev", - "build": { - // Path is relative to the devcontainer.json file. - "dockerfile": "Dockerfile" - } -}