forked from a-warner/preflight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Genius/integer-to-bigint
Integer to BigInt
- Loading branch information
Showing
6 changed files
with
123 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM ruby:2.5.8 | ||
|
||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | ||
RUN mkdir /preflight | ||
|
||
WORKDIR /preflight | ||
|
||
ADD .ruby-version /preflight/.ruby-version | ||
ADD Gemfile /preflight/Gemfile | ||
ADD Gemfile.lock /preflight/Gemfile.lock | ||
|
||
RUN bundle install | ||
ADD . /preflight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
db/migrate/20241106203538_change_applied_checklist_pull_request_id_integer_to_big_int.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class ChangeAppliedChecklistPullRequestIdIntegerToBigInt < ActiveRecord::Migration[5.2] | ||
def up | ||
change_column :applied_checklists, :github_pull_request_id, :bigint | ||
end | ||
|
||
def down | ||
change_column :applied_checklists, :github_pull_request_id, :integer | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3' | ||
services: | ||
db: | ||
image: postgres:14.12 | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
POSTGRES_USER: | ||
POSTGRES_PASSWORD: | ||
POSTGRES_DB: | ||
|
||
|
||
web: | ||
build: . | ||
entrypoint: ./docker-web-entrypoint.sh | ||
command: bundle exec rails s -p 3000 -b '0.0.0.0' | ||
volumes: | ||
- .:/preflight | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- db | ||
env_file: | ||
- .env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ -f tmp/pids/server.pid ]; then | ||
rm tmp/pids/server.pid | ||
fi | ||
|
||
exec bundle exec "$@" |