Compare commits

...

5 commits

Author SHA1 Message Date
ada949b486
feat(devcontainer): initialize redbot instance in postCreateCommand
Some checks failed
Actions / Build Documentation (MkDocs) (push) Has been skipped
Actions / Lint Code (Ruff & Pylint) (push) Failing after 42s
2025-01-25 22:51:38 +00:00
a82d3490e7
feat(vscode): add --dev argument to redbot args 2025-01-25 22:51:38 +00:00
cf7bc48f2f
chore(vscode): add -vvv argument to launch & debug 2025-01-25 22:51:38 +00:00
549519782a
fix(devcontainer): chown workspace directory
for some reason, the default `.data` mount is not owned by the `vscode` user (on my system at least), so we `chown` it to ensure that `uv run redbot-setup` can write to the directory.
2025-01-25 22:51:38 +00:00
cbd4f6dfcc
fix(devcontainer): ensure pip is installed in the devcontainer
this is being done because Red-DiscordBot requires pip to be installed to function, but does not declare it as a dependency. this is only a problem when uv is being used to install dependencies in an environment where pip is not present. so, we ensure pip is present!
2025-01-25 22:51:38 +00:00
3 changed files with 4 additions and 3 deletions

View file

@ -31,4 +31,5 @@ COPY --from=uv --chown=vscode: /uv /uvx /bin/
COPY --from=python --chown=vscode: /usr/local /usr/local
RUN ln -s /usr/local/bin/python3.11 /usr/local/bin/python; \
python --version
python --version; \
python -m ensurepip

View file

@ -30,6 +30,6 @@
"PROJECT_DIR": "/workspaces/SeaCogs"
},
"mounts": ["source=seacogs-persistent-data,target=/workspaces/SeaCogs/.data,type=volume"],
"postCreateCommand": "uv sync --frozen",
"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"
}

2
.vscode/launch.json vendored
View file

@ -9,7 +9,7 @@
"type": "debugpy",
"request": "launch",
"module": "redbot",
"args": ["local"]
"args": ["local", "--dev", "-vvv"]
}
]
}