Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure DevContainer for local dev #2032

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

edavey
Copy link
Collaborator

@edavey edavey commented Dec 12, 2024

We use "teaching-vacancies" as a model. A few differences in our setup:

  • we set a different UID as 1000 is already defined for our app's user "complete". We use 1001

  • we need to explicitly chown the gem directory at /user/local/rvm

  • we use the 'gst' bash abbrv for 'git status' rather than 'stash' (I can't relearn that!)

  • we set msq.connections in our VSCode settings, but doesn't seem to be automatically configuring the connections...

  • we use standardrb rather than rubocop for our linting. We haven't configured this yet.

Note that in my experiments I had some grief with line endings: CRLF on Windows versus LF inside the DevContainer. I think that we'll be ok if we:

  • set git config autocrlf to input or false

  • only operate on the workspace via the docker container and never via the Windows filesystem (e.g. d:\code\complete)

@edavey edavey requested a review from lozette December 12, 2024 18:00
@edavey edavey force-pushed the local-dev-with-vscode-dev-containers branch from e67630c to f7a5364 Compare December 16, 2024 11:03
We use "teaching-vacancies" as a model. A few differences in our setup:

- we set a different UID as 1000 is already defined for our app's
  user "complete". We use 1001

- we need to explicitly chown the gem directory at /user/local/rvm

- we use the 'gst' bash abbrv for 'git status' rather than 'stash'
  (I can't relearn that!)

- we set msq.connections in our VSCode settings, but doesn't seem to
  be automatically configuring the connections...

- we use `standardrb` rather than `rubocop` for our linting. We haven't
  configured this yet.

Note that in my experiments I had some grief with line endings: CRLF on
Windows versus LF inside the DevContainer. I _think_ that we'll be ok if
we:

- set git config `autocrlf` to `input` or `false`

- only operate on the workspace via the docker container and never
  via the Windows filesystem (e.g. `d:\code\complete`)
@edavey edavey force-pushed the local-dev-with-vscode-dev-containers branch from f7a5364 to 8a27f79 Compare December 16, 2024 17:18
@edavey edavey merged commit 08fca93 into main Dec 16, 2024
7 of 8 checks passed
@edavey edavey deleted the local-dev-with-vscode-dev-containers branch December 16, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants