Skip to content

Commit

Permalink
chore: update env local & docker
Browse files Browse the repository at this point in the history
  • Loading branch information
labasubagia committed Jan 30, 2024
1 parent b55345d commit 2a21e0b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"shutdownAction": "stopCompose",
"forwardPorts": [5000],
"remoteUser": "vscode",
"initializeCommand": ["cp .env.docker .env", "cp .env.test.example .env.test"],
"initializeCommand": ["cp .env.docker .env", "cp .env.docker.test.example .env.test"],
"customizations": {
"vscode": {
"extensions": [
Expand Down
9 changes: 9 additions & 0 deletions .env.docker.test.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ENVIRONMENT=development
POSTGRES_SOURCE=postgres://postgres:postgres@postgres:5432/realworld?sslmode=disable
POSTGRES_MIGRATION_URL=file://../../../internal/adapter/repository/sql/db/migration
MONGO_SOURCE=mongodb://root:root@mongo:27017/realworld?authSource=admin
LOG_TYPE=zerolog
DB_TYPE=postgres
SERVER_TYPE=restful
SERVER_PORT=5000
TOKEN_SYMMETRIC_KEY=12345678901234567890123456789012
4 changes: 2 additions & 2 deletions .env.test.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ENVIRONMENT=development
POSTGRES_SOURCE=postgres://postgres:postgres@postgres:5432/realworld?sslmode=disable
POSTGRES_SOURCE=postgres://postgres:postgres@0.0.0.0:5432/realworld?sslmode=disable
POSTGRES_MIGRATION_URL=file://../../../internal/adapter/repository/sql/db/migration
MONGO_SOURCE=mongodb://root:root@mongo:27017/realworld?authSource=admin
MONGO_SOURCE=mongodb://root:root@0.0.0.0:27017/realworld?authSource=admin
LOG_TYPE=zerolog
DB_TYPE=postgres
SERVER_TYPE=restful
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ jobs:
run: go mod tidy

- name: Test
run: make test_all
run: |
cp .env.test.example .env.test
make test_all

0 comments on commit 2a21e0b

Please sign in to comment.