Update development environment and ignore files

- Added more directories to `.cursorignore` to exclude temporary and log files
- Updated TODO.md with a new task for downloading E621 user favorites
- Modified Dockerfile.devcontainer to install PostgreSQL 17 client
- Updated VS Code extensions script to add Docker extension
- Added Dockerfile formatter in VS Code settings
- Configured Cursor as the default Git editor in the development container
This commit is contained in:
Dylan Knutson
2025-01-26 19:25:55 +00:00
parent 4d3a8e9fc6
commit e2e75cdc3d
5 changed files with 26 additions and 3 deletions

View File

@@ -49,12 +49,21 @@ RUN \
libvips42 \
libyaml-dev \
patch \
postgresql-client \
rustc \
uuid-dev \
zlib1g-dev \
watchman
# Install postgres 17 client
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
sudo install -d /usr/share/postgresql-common/pgdg && \
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \
sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
apt update && \
apt-get install --no-install-recommends --no-install-suggests -y \
postgresql-client-17
# Install & configure delta diff tool
RUN wget -O- https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_amd64.deb > /tmp/git-delta.deb && \
sudo dpkg -i /tmp/git-delta.deb && \
@@ -65,7 +74,8 @@ RUN git config --system core.pager "delta" && \
git config --system delta.navigate true && \
git config --system delta.dark true && \
git config --system delta.side-by-side true && \
git config --system merge.conflictstyle "zdiff3"
git config --system merge.conflictstyle "zdiff3" \
git config --system core.editor "cursor --wait"
# Install native gems
COPY --from=native-gems /usr/src/app/gems/xdiff-rb /gems/xdiff-rb

View File

@@ -1,7 +1,11 @@
#!/bin/bash -ex
# EDITOR_BIN="$(ls /vscode/cursor-server/bin/*/*/bin/remote-cli/cursor | head -n 1)"
# detect if either cursor or code is available, and use the first detected one
EDITOR_BIN=cursor
# EDITOR_BIN=code
function install_extension() {
$EDITOR_BIN --install-extension "$1"
}
@@ -12,4 +16,5 @@ install_extension aliariff.vscode-erb-beautify
install_extension bradlc.vscode-tailwindcss
install_extension KoichiSasada.vscode-rdbg
install_extension qwtel.sqlite-viewer
install_extension esbenp.prettier-vscode
install_extension esbenp.prettier-vscode
install_extension ms-azuretools.vscode-docker