Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into 4175-add-request-ty…
Browse files Browse the repository at this point in the history
…pe-flag
  • Loading branch information
coalest committed Dec 3, 2024
2 parents 9c0572b + a93fd40 commit 66b3cf5
Show file tree
Hide file tree
Showing 809 changed files with 13,847 additions and 5,109 deletions.
6 changes: 5 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
# it will be more efficient to change the image.
# See https://github.com/devcontainers/images/blob/main/src/ruby/history/
FROM mcr.microsoft.com/devcontainers/ruby:dev-3.2-buster
RUN apt -y update && apt install -y vim curl gpg postgresql postgresql-contrib
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install vim curl gpg postgresql postgresql-contrib
RUN cd /tmp
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get -y install ./google-chrome-stable_current_amd64.deb
26 changes: 24 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,24 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/postgres
{
"dockerComposeFile": "docker-compose.yml",
"forwardPorts": [3000, 5432],
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {}
},
"forwardPorts": [3000, 5432, 6080],
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "silent"
},
"5432": {
"label": "Database",
"onAutoForward": "silent"
},
"6080": {
"label": "Desktop",
"onAutoForward": "silent"
}
},
"workspaceFolder": "/workspaces/human-essentials",
"service": "app",
"customizations": {
Expand All @@ -16,5 +33,10 @@
}
},

"postCreateCommand": ".devcontainer/post-create.sh"
// DOCKER env variable passed to Cuprite to enable --no-sandbox so Chrome can run in Docker
"remoteEnv": {
"DOCKER": "true"
},

"postCreateCommand": "bash -i .devcontainer/post-create.sh"
}
3 changes: 3 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ services:
volumes:
- ../..:/workspaces:cached

# Increase shared memory for Chrome to run in Fluxbox
shm_size: "2gb"

# Overrides default command so things don't shut down after the process ends.
command: sleep infinity

Expand Down
32 changes: 32 additions & 0 deletions .devcontainer/launch.json.codespaces
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "ruby_lsp",
"request": "launch",
"name": "Debug rspec at cursor with browser",
"program": "bundle exec rspec ${file}:${lineNumber}",
"env": {
"NOT_HEADLESS": "true"
}
},
{
"type": "ruby_lsp",
"request": "launch",
"name": "Debug with Events rspec at cursor with browser",
"program": "bundle exec rspec ${file}:${lineNumber}",
"env": {
"NOT_HEADLESS": "true",
"EVENTS_READ": "true"
}
},
{
"type": "ruby_lsp",
"request": "attach",
"name": "Attach to a live server"
}
]
}
5 changes: 5 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ RUBY_VERSION="$(cat .ruby-version | tr -d '\n')"

# copy the file only if it doesn't already exist
cp -n .devcontainer/.env.codespaces .env
mkdir -p .vscode && cp -n .devcontainer/launch.json.codespaces .vscode/launch.json

# If the project's required ruby version changes from 3.2.2, this command
# will download and compile the correct version, but it will take a long time.
Expand All @@ -11,4 +12,8 @@ if [ "$RUBY_VERSION" != "3.2.2" ]; then
echo "Ruby $RUBY_VERSION installed"
fi

nvm install node
rbenv init bash
rbenv init zsh

bin/setup
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- I have added tests that prove my fix is effective or that my feature works,
- New and existing unit tests pass locally with my changes ("bundle exec rake"),
- Title include "WIP" if work is in progress.
- I acknowledge that I will *not* force push my branch once reviews have started.
-->

Expand Down
5 changes: 4 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
interval: monthly
open-pull-requests-limit: 10
ignore:
- dependency-name: bootstrap
Expand All @@ -23,6 +23,9 @@ updates:
- dependency-name: geocoder
versions:
- 1.6.7
- dependency-name: strong_migrations
versions:
- 1.8.0
- dependency-name: devise_invitable
versions:
- 2.0.4
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/plantuml.yml

This file was deleted.

92 changes: 0 additions & 92 deletions .github/workflows/rspec-events.yml

This file was deleted.

93 changes: 0 additions & 93 deletions .github/workflows/rspec-system-events.yml

This file was deleted.

1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ Layout/SpaceInsideHashLiteralBraces:
- 'app/models/product_drive_participant.rb'
- 'app/models/distribution.rb'
- 'app/models/donation.rb'
- 'app/models/inventory_item.rb'
- 'app/models/item.rb'
- 'app/models/item_category.rb'
- 'app/models/kit.rb'
Expand Down
Loading

0 comments on commit 66b3cf5

Please sign in to comment.