chore(devcontainer): add DiD, forgejo runner, aliases
This commit is contained in:
parent
289da84b76
commit
666efaf893
3 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
FROM ghcr.io/astral-sh/uv:0.5.24@sha256:2381d6aa60c326b71fd40023f921a0a3b8f91b14d5db6b90402e65a635053709 AS uv
|
FROM ghcr.io/astral-sh/uv:0.5.24@sha256:2381d6aa60c326b71fd40023f921a0a3b8f91b14d5db6b90402e65a635053709 AS uv
|
||||||
FROM python:3.11-slim@sha256:6ed5bff4d7d377e2a27d9285553b8c21cfccc4f00881de1b24c9bc8d90016e82 AS python
|
FROM python:3.11-slim@sha256:6ed5bff4d7d377e2a27d9285553b8c21cfccc4f00881de1b24c9bc8d90016e82 AS python
|
||||||
|
FROM code.forgejo.org/forgejo/runner:6.2.0 AS forgejo-runner
|
||||||
|
|
||||||
FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm@sha256:6155a486f236fd5127b76af33086029d64f64cf49dd504accb6e5f949098eb7e
|
FROM mcr.microsoft.com/vscode/devcontainers/base:bookworm@sha256:6155a486f236fd5127b76af33086029d64f64cf49dd504accb6e5f949098eb7e
|
||||||
LABEL repository="www.coastalcommits.com/cswimr/SeaCogs"
|
LABEL repository="www.coastalcommits.com/cswimr/SeaCogs"
|
||||||
|
@ -29,6 +30,8 @@ RUN apt-get update; \
|
||||||
|
|
||||||
COPY --from=uv --chown=vscode: /uv /uvx /bin/
|
COPY --from=uv --chown=vscode: /uv /uvx /bin/
|
||||||
COPY --from=python --chown=vscode: /usr/local /usr/local
|
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; \
|
RUN ln -s /usr/local/bin/python3.11 /usr/local/bin/python; \
|
||||||
python --version; \
|
python --version; \
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"context": "..",
|
"context": "..",
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
||||||
|
},
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
@ -29,7 +32,9 @@
|
||||||
"UV_PYTHON_DOWNLOADS": "never",
|
"UV_PYTHON_DOWNLOADS": "never",
|
||||||
"PROJECT_DIR": "/workspaces/SeaCogs"
|
"PROJECT_DIR": "/workspaces/SeaCogs"
|
||||||
},
|
},
|
||||||
"mounts": ["source=seacogs-persistent-data,target=/workspaces/SeaCogs/.data,type=volume"],
|
"mounts": [
|
||||||
|
"source=seacogs-persistent-data,target=/workspaces/SeaCogs/.data,type=volume"
|
||||||
|
],
|
||||||
"postCreateCommand": "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",
|
"postCreateCommand": "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"
|
"remoteUser": "vscode"
|
||||||
}
|
}
|
||||||
|
|
3
.devcontainer/home/.bash_aliases
Normal file
3
.devcontainer/home/.bash_aliases
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
alias runactions="forgejo-runner exec --default-actions-url=https://www.coastalcommits.com --gitea-instance=https://www.coastalcommits.com"
|
Loading…
Add table
Reference in a new issue