From 98f5fa743cbcc4c8d95a998c75f7f15c077aed6c Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 28 Mar 2025 10:04:07 -0500 Subject: [PATCH] chore(repo): remove the dev container --- .devcontainer/Dockerfile | 38 ----------------------- .devcontainer/devcontainer.json | 52 -------------------------------- .devcontainer/home/.bash_aliases | 3 -- 3 files changed, 93 deletions(-) delete mode 100644 .devcontainer/Dockerfile delete mode 100644 .devcontainer/devcontainer.json delete mode 100644 .devcontainer/home/.bash_aliases diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 50a99c7..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -FROM ghcr.io/astral-sh/uv:0.5.30@sha256:bb74263127d6451222fe7f71b330edfb189ab1c98d7898df2401fbf4f272d9b9 AS uv -FROM python:3.11-slim@sha256:6ed5bff4d7d377e2a27d9285553b8c21cfccc4f00881de1b24c9bc8d90016e82 AS python -FROM code.forgejo.org/forgejo/runner:6.2.1@sha256:fecc96a111a15811a6887ce488e75718089f24599e613e93db8e54fe70b706e8 AS forgejo-runner - -FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm@sha256:6155a486f236fd5127b76af33086029d64f64cf49dd504accb6e5f949098eb7e -LABEL repository="www.coastalcommits.com/cswimr/SeaCogs" -LABEL maintainer="cswimr " - -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - # Red-DiscordBot - build-essential \ - git \ - # PyNaCl - libsodium-dev \ - # CFFI - libffi-dev \ - # SSH repository support - openssh-client \ - # Cog dependencies - # Audio - openjdk-17-jre-headless \ - # PyLav - libaio1 \ - libaio-dev \ - # SeaUtils - dnsutils; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/* - -COPY --from=uv --chown=vscode: /uv /uvx /bin/ -COPY --from=python --chown=vscode: /usr/local /usr/local -COPY --from=forgejo-runner --chown=vscode: /bin/forgejo-runner /bin/forgejo-runner -COPY --chown=vscode: .devcontainer/home/* /home/vscode/ - -RUN ln -s /usr/local/bin/python3.11 /usr/local/bin/python; \ - python --version; \ - python -m ensurepip diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 9bf34c9..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "Red-DiscordBot: SeaCogs", - "build": { - "context": "..", - "dockerfile": "Dockerfile" - }, - "features": { - "ghcr.io/devcontainers/features/docker-in-docker:2": {} - }, - "customizations": { - "vscode": { - "settings": { - "python.terminal.activateEnvInCurrentTerminal": true, - "python.terminal.activateEnvironment": true, - "terminal.integrated.defaultProfile.linux": "zsh", - "terminal.integrated.profiles.linux": { - "zsh": { - "path": "/bin/zsh" - } - } - }, - "extensions": [ - "charliermarsh.ruff", - "ms-azuretools.vscode-docker", - "ms-python.python", - "tekumara.typos-vscode", - "tamasfe.even-better-toml", - "redhat.vscode-yaml", - "DavidAnson.vscode-markdownlint", - "yy0931.vscode-sqlite3-editor", - "aaron-bond.better-comments", - "donjayamanne.githistory", - "eamodio.gitlens" - ] - } - }, - "containerEnv": { - "DISPLAY": "dummy", - "PYTHONUNBUFFERED": "True", - "UV_LINK_MODE": "copy", - "UV_PYTHON_PREFERENCE": "only-system", - "UV_PYTHON_DOWNLOADS": "never", - "PROJECT_DIR": "/workspaces/SeaCogs" - }, - "mounts": [ - "source=seacogs-persistent-data,target=/workspaces/SeaCogs/.data,type=volume" - ], - "postCreateCommand": { - "Setup Virtual Environment": "uv sync --frozen && sudo chown -R vscode:vscode /workspaces/SeaCogs/.data && uv run redbot-setup --no-prompt --instance-name=local --data-path=/workspaces/SeaCogs/.data --backend=json" - }, - "remoteUser": "vscode" -} diff --git a/.devcontainer/home/.bash_aliases b/.devcontainer/home/.bash_aliases deleted file mode 100644 index 277fc5f..0000000 --- a/.devcontainer/home/.bash_aliases +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -alias runactions="forgejo-runner exec --default-actions-url=https://www.coastalcommits.com --gitea-instance=https://www.coastalcommits.com" -- 2.45.3