-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev): add pgAdmin to local dev env (#144)
Additions and Changes: - add pgAdmin to docker-compose.yaml (incl. mounts) - preconfigure pgAdmin DB server - add tem. files to gitignore - update README.md - update Taskfile tasks for linux and macos - update env.* environment files - Match Postgresql version to the version of the Helm chart (14.5)
- Loading branch information
Showing
10 changed files
with
106 additions
and
28 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 |
---|---|---|
|
@@ -206,6 +206,27 @@ When you just run `task` without parameters, you will see all tasks available. | |
5. Click on "Authorize" and "close" | ||
6. MIW is up and running | ||
|
||
### pgAdmin | ||
|
||
This local environment contains [pgAdmin](https://www.pgadmin.org/), which is also started (default: http://localhost:8888). | ||
The default login is: | ||
|
||
``` | ||
user: [email protected] (you can change it in the env.* files) | ||
password: the one you set for "POSTGRES_PASSWORD" in the env.* files | ||
``` | ||
|
||
#### DB connection password | ||
|
||
When you log in into pgAdmin, the local Postgresql server is already configured. | ||
But you will be asked to enter the DB password on the first time you connect to the DB. | ||
(password: POSTGRES_PASSWORD in the env.* files) | ||
|
||
#### Storage folder | ||
|
||
The storage folder of pgAdmin is mounted to `dev-assets/docker-environment/pgAdmin/storage/`. | ||
For example, You can save DB backups there, so you can access them on your local machine. | ||
|
||
# End Users | ||
|
||
See OpenAPI documentation, which is automatically created from the source and available on each deployment at | ||
|
@@ -344,4 +365,4 @@ See [Docker-hub-notice.md](./Docker-hub-notice.md) | |
|
||
We would like to give credit to these projects, which we use in our project. | ||
|
||
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) | ||
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) |
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,22 @@ | ||
{ | ||
"Servers": { | ||
"1": { | ||
"Name": "Local", | ||
"Group": "Servers", | ||
"Host": "postgres", | ||
"Port": 5432, | ||
"MaintenanceDB": "postgres", | ||
"Username": "$POSTGRES_USER", | ||
"UseSSHTunnel": 0, | ||
"TunnelPort": "22", | ||
"TunnelAuthentication": 0, | ||
"KerberosAuthentication": false, | ||
"ConnectionParameters": { | ||
"sslmode": "prefer", | ||
"connect_timeout": 10, | ||
"sslcert": "<STORAGE_DIR>/.postgresql/postgresql.crt", | ||
"sslkey": "<STORAGE_DIR>/.postgresql/postgresql.key" | ||
} | ||
} | ||
} | ||
} |
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,22 @@ | ||
# | ||
# /******************************************************************************** | ||
# Copyright (c) 2021,2023 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License, Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# ********************************************************************************/ | ||
# | ||
|
||
Is mounted as storage folder inside the pgAdmin container. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ POSTGRES_DB_NAME_MIW=miw | |
POSTGRES_USERNAME_MIW=miw_user | ||
POSTGRES_PASSWORD_MIW= | ||
|
||
# Docker: pgAdmin config | ||
[email protected] | ||
|
||
# Docker: Keycloak config | ||
KEYCLOAK_MIW_PUBLIC_CLIENT=miw_public | ||
DB_DATABASE=keycloak | ||
|
@@ -45,5 +48,6 @@ DB_USER=${POSTGRES_USER} | |
DB_NAME=${POSTGRES_DB_NAME_MIW} | ||
DB_USER_NAME=${POSTGRES_USERNAME_MIW} | ||
DB_PASSWORD=${POSTGRES_PASSWORD_MIW} | ||
PGADMIN_DEFAULT_PASSWORD=${POSTGRES_PASSWORD} | ||
ORG_GRADLE_PROJECT_githubUserName=${GITHUB_USERNAME} | ||
ORG_GRADLE_PROJECT_githubToken=${GITHUB_TOKEN} |
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 |
---|---|---|
|
@@ -14,6 +14,9 @@ POSTGRES_DB_NAME_MIW=miw | |
POSTGRES_USERNAME_MIW=miw_user | ||
POSTGRES_PASSWORD_MIW= | ||
|
||
# Docker: pgAdmin config | ||
[email protected] | ||
|
||
# Docker: Keycloak config | ||
KEYCLOAK_MIW_PUBLIC_CLIENT=miw_public | ||
DB_DATABASE=keycloak | ||
|
@@ -45,5 +48,6 @@ DB_USER=${POSTGRES_USER} | |
DB_NAME=${POSTGRES_DB_NAME_MIW} | ||
DB_USER_NAME=${POSTGRES_USERNAME_MIW} | ||
DB_PASSWORD=${POSTGRES_PASSWORD_MIW} | ||
PGADMIN_DEFAULT_PASSWORD=${POSTGRES_PASSWORD} | ||
ORG_GRADLE_PROJECT_githubUserName=${GITHUB_USERNAME} | ||
ORG_GRADLE_PROJECT_githubToken=${GITHUB_TOKEN} |
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