-
-
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.
* chore: moving the compose up to the docker image * ci: concurrent pre-commit * lint: fixy fix * ci: parallel * tests: only .ts * ci: ffs * chore: remove typescript configs * chore: setup env values * chore: include the setup * chore: adding prod compose and extra ignore * ci: only build container on merged pr
- Loading branch information
Showing
27 changed files
with
1,151 additions
and
248 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
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
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,3 @@ | ||
npm run lint | ||
npm run build | ||
npm run test |
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
File renamed without changes.
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,66 @@ | ||
services: | ||
pointd-pal: | ||
container_name: pointd-pal | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- ./:/home/node/app | ||
- /home/node/app/node_modules | ||
env_file: | ||
- .bot.env | ||
depends_on: | ||
- pointd-pal-db | ||
- migration | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:3000/health"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
pointd-pal-db: | ||
container_name: pointd-pal-db | ||
image: postgres:latest | ||
env_file: | ||
- .psql.env | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- pointdpal:/home/postgres/pgdata/data | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U pointdpal"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
migration: | ||
image: flyway/flyway:latest | ||
volumes: | ||
- ./migrations/sql/:/flyway/sql | ||
env_file: | ||
- .flyway.env | ||
command: "migrate -X" | ||
depends_on: | ||
- pointd-pal-db | ||
|
||
migration-info: | ||
image: redgate/flyway:latest | ||
volumes: | ||
- ./migrations/sql/:/flyway/sql | ||
environment: | ||
- FLYWAY_URL=jdbc:postgresql://pointd-pal-db:5432/pointdpal | ||
- FLYWAY_USER=pointdpal | ||
- FLYWAY_PASSWORD=pointdpal | ||
- FLYWAY_BASELINE_ON_MIGRATE=true | ||
command: "info" | ||
depends_on: | ||
pointd-pal-db: | ||
condition: service_started | ||
migration: | ||
condition: service_completed_successfully | ||
|
||
volumes: | ||
pointdpal: | ||
driver: local |
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,7 @@ | ||
const config = { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access | ||
'*': (stagedFiles) => `eslint ${stagedFiles.join(' ')}`, | ||
'*.ts': 'npm run build', | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.