This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor reorganization, docker-compose for SQL
- Loading branch information
Showing
8 changed files
with
57 additions
and
14 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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
build : | ||
build: | ||
ifeq ($(env), local) | ||
cd frontend && npm install | ||
else | ||
docker-compose up --build | ||
endif | ||
|
||
run : | ||
run: | ||
ifeq ($(env), local) | ||
cd frontend && npm run dev | ||
else | ||
docker-compose up | ||
endif | ||
|
||
down : | ||
down: | ||
docker-compose down --remove-orphans | ||
|
||
prettier : | ||
prettier: | ||
cd frontend && npx prettier --write . | ||
cd frontend && npm run lint -- --fix | ||
cd frontend && npm run lint -- --fix |
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 was deleted.
Oops, something went wrong.
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,5 @@ | ||
FROM postgres:13.1 | ||
RUN apt-get update && apt-get install -y dos2unix | ||
COPY sql/ /docker-entrypoint-initdb.d | ||
RUN chmod +x /docker-entrypoint-initdb.d/build.sh | ||
RUN find ./docker-entrypoint-initdb.d -type f -print0 | xargs -0 -n 1 -P 4 dos2unix |
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 @@ | ||
# Dialog Storage | ||
|
||
## SQL | ||
|
||
The SQL scripts can be found under [sql](sql/). The custom Dockerfile builds the image, this should only be used for development purposes. | ||
|
||
## Notes | ||
|
||
All storage related files should go here, this includes but is not limited to: | ||
- Schema | ||
- Database configuration files/scripts | ||
- Object storage | ||
- Caching |
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 @@ | ||
cd $(dirname $0) | ||
|
||
PGUSER=postgres | ||
PGHOST=localhost | ||
PGPASSWORD=postgres | ||
PGDATABASE=postgres | ||
PGPORT=5432 | ||
|
||
initilize=$(psql -f scripts/discussion-board.sql) |
File renamed without changes.