forked from logto-io/logto
-
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(OGCIO): makefile run native (#70)
* chore(core): added run native command * chore(core): re-added old docs * chore(core): added EOF
- Loading branch information
1 parent
27210ae
commit e00a1ff
Showing
2 changed files
with
29 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
# This file has been added on OGCIO fork | ||
TAG = local-logto:latest | ||
GREEN=\033[0;32m | ||
NC=\033[0m | ||
|
||
build: | ||
docker build -t ${TAG} . | ||
run: | ||
docker-compose -f docker-compose-local.yml up --detach | ||
|
||
down: | ||
docker-compose -f docker-compose-local.yml down | ||
docker-compose -f docker-compose-local.yml down | ||
run-native: | ||
@echo "${GREEN}Starting db...${NC}" | ||
docker compose -f docker-compose-db.yml up --detach | ||
@echo "${GREEN}Db started!${NC}" | ||
@echo "${GREEN}Installing stuffs...${NC}" | ||
pnpm pnpm:devPreinstall && pnpm i && pnpm prepack | ||
@echo "${GREEN}Stuffs installed!${NC}" | ||
@echo "${GREEN}Seeding db...${NC}" | ||
npm run cli db seed -- --swe && npm run cli db alteration deploy latest && npm run cli db ogcio -- --seeder-filepath="./packages/cli/src/commands/database/ogcio/ogcio-seeder-local.json" | ||
@echo "${GREEN}Db ready!${NC}" | ||
@echo "${GREEN}Preparing connectors...${NC}" | ||
pnpm connectors build && pnpm cli connector link | ||
@echo "${GREEN}Connectors ready!${NC}" | ||
@echo "${GREEN}Starting Logto...${NC}" | ||
pnpm dev |