-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Netcracker/dockerbuild
Switch to golang compilation in docker build phase, polish local development guides
- Loading branch information
Showing
10 changed files
with
120 additions
and
96 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 @@ | ||
podman build ./ -t netcracker/qubership-apihub-backend |
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
105 changes: 53 additions & 52 deletions
105
docs/local_development/docker-compose/DB/docker-compose.yml
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,54 +1,55 @@ | ||
version: "3.9" | ||
services: | ||
postgres: | ||
image: postgres:13.3 | ||
command: | ||
- "postgres" | ||
- "-c" | ||
- "max_connections=50" | ||
- "-c" | ||
- "shared_buffers=1GB" | ||
- "-c" | ||
- "effective_cache_size=4GB" | ||
- "-c" | ||
- "work_mem=16MB" | ||
- "-c" | ||
- "maintenance_work_mem=512MB" | ||
- "-c" | ||
- "random_page_cost=1.1" | ||
- "-c" | ||
- "temp_file_limit=10GB" | ||
- "-c" | ||
- "log_min_duration_statement=200ms" | ||
- "-c" | ||
- "idle_in_transaction_session_timeout=10s" | ||
- "-c" | ||
- "lock_timeout=1s" | ||
- "-c" | ||
- "shared_preload_libraries=pg_stat_statements" | ||
- "-c" | ||
- "pg_stat_statements.max=10000" | ||
- "-c" | ||
- "pg_stat_statements.track=all" | ||
environment: | ||
POSTGRES_DB: "apihub" | ||
POSTGRES_USER: "apihub" | ||
POSTGRES_PASSWORD: "APIhub1234" | ||
PGDATA: "/C/pg-docker/data" | ||
volumes: | ||
- ../2. Init Database:/docker-entrypoint-initdb.d | ||
- .:/var/lib/postgresql/data | ||
ports: | ||
- "5432:5432" | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U apihub -d apihub"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
start_period: 10s | ||
restart: unless-stopped | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '1' | ||
memory: 4G | ||
postgres: | ||
image: docker.io/postgres | ||
container_name: postgres | ||
command: | ||
- "postgres" | ||
- "-c" | ||
- "max_connections=50" | ||
- "-c" | ||
- "shared_buffers=1GB" | ||
- "-c" | ||
- "effective_cache_size=1GB" | ||
- "-c" | ||
- "work_mem=16MB" | ||
- "-c" | ||
- "maintenance_work_mem=512MB" | ||
- "-c" | ||
- "random_page_cost=1.1" | ||
- "-c" | ||
- "temp_file_limit=10GB" | ||
- "-c" | ||
- "log_min_duration_statement=200ms" | ||
- "-c" | ||
- "idle_in_transaction_session_timeout=10s" | ||
- "-c" | ||
- "lock_timeout=1s" | ||
- "-c" | ||
- "shared_preload_libraries=pg_stat_statements" | ||
- "-c" | ||
- "pg_stat_statements.max=10000" | ||
- "-c" | ||
- "pg_stat_statements.track=all" | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
- POSTGRES_DB=postgres | ||
- PGDATA=/C/pg-docker/data | ||
ports: | ||
- 5432:5432 | ||
healthcheck: | ||
test: [ "CMD-SHELL", "pg_isready -U postgres" ] | ||
interval: 10s | ||
timeout: 15s | ||
retries: 15 | ||
start_period: 5s | ||
restart: unless-stopped | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '1' | ||
memory: 3G | ||
volumes: | ||
- '.:/var/lib/postgresql/data:Z' | ||
- './scripts/init-db:/docker-entrypoint-initdb.d' |
3 changes: 3 additions & 0 deletions
3
docs/local_development/docker-compose/DB/scripts/init-db/init.sql
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 @@ | ||
CREATE USER apihub WITH PASSWORD 'apihub' CREATEDB INHERIT; | ||
CREATE DATABASE apihub OWNER apihub; | ||
GRANT ALL PRIVILEGES ON DATABASE apihub TO apihub; |
6 changes: 3 additions & 3 deletions
6
...ment/docker-compose/FE/docker-compose.yml → ...ment/docker-compose/UI/docker-compose.yml
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,10 @@ | ||
version: "3.9" | ||
services: | ||
apihub-ui: | ||
image: ghcr.io/qubersip/apihub-ui-assembly-release-2.2.18:build8 | ||
qubership-apihub-ui: | ||
image: ghcr.io/netcracker/qubership-apihub-ui:main | ||
environment: | ||
APIHUB_BACKEND_ADDRESS: "host.docker.internal:8090" | ||
APIHUB_NC_SERVICE_ADDRESS: "host.docker.internal:8091" | ||
ports: | ||
- "8080:8080" | ||
- "8081:8080" | ||
restart: unless-stopped |
6 changes: 3 additions & 3 deletions
6
...r-compose/Node-service/docker-compose.yml → ...se/build-task-consumer/docker-compose.yml
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,10 @@ | ||
version: "3.9" | ||
services: | ||
apihub-node-service: | ||
image: ghcr.io/qubership/apihub-node-service-assembly-develop:build861 | ||
qubership-apihub-build-task-consumer: | ||
image: ghcr.io/netcracker/qubership-apihub-build-task-consumer:main | ||
environment: | ||
APIHUB_BACKEND_ADDRESS: "host.docker.internal:8090" | ||
APIHUB_API_KEY: "123123" | ||
ports: | ||
- "8092:8080" | ||
- "3000:3000" | ||
restart: unless-stopped |
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