mirror of
https://github.com/MAGICGrants/truenas-apps.git
synced 2026-01-08 20:18:01 -05:00
postgres: fix variable name (#1782)
* postgres: fix variable name * bump * fix test
This commit is contained in:
@@ -27,4 +27,4 @@ sources:
|
||||
- https://hub.docker.com/_/postgres
|
||||
title: Postgres
|
||||
train: community
|
||||
version: 1.0.18
|
||||
version: 1.0.19
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
categories:
|
||||
- storage
|
||||
- database
|
||||
icon_url: https://media.sys.truenas.net/apps/postgres/icons/icon.png
|
||||
screenshots: []
|
||||
tags:
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
{% do c1.ports.add_port(values.network.tcp_port, values.network.tcp_port) %}
|
||||
|
||||
{% do c1.environment.add_env("POSTGRES_PORT", values.network.tcp_port) %}
|
||||
{% do c1.environment.add_env("PGPORT", values.network.tcp_port) %}
|
||||
{% do c1.environment.add_env("POSTGRES_PASSWORD", values.postgres.password) %}
|
||||
{% do c1.environment.add_env("POSTGRES_USER", values.postgres.user) %}
|
||||
{% do c1.environment.add_env("POSTGRES_DB", values.postgres.database) %}
|
||||
|
||||
@@ -7,7 +7,7 @@ postgres:
|
||||
database: postgres
|
||||
|
||||
network:
|
||||
tcp_port: 5432
|
||||
tcp_port: 8080
|
||||
host_network: false
|
||||
|
||||
ix_volumes:
|
||||
|
||||
@@ -56,7 +56,7 @@ class PostgresContainer:
|
||||
"POSTGRES_USER": config["user"],
|
||||
"POSTGRES_PASSWORD": config["password"],
|
||||
"POSTGRES_DB": config["database"],
|
||||
"POSTGRES_PORT": port,
|
||||
"PGPORT": port,
|
||||
}
|
||||
|
||||
for k, v in common_variables.items():
|
||||
@@ -82,7 +82,7 @@ def test_add_postgres(mock_values):
|
||||
"POSTGRES_USER": "test_user",
|
||||
"POSTGRES_PASSWORD": "test_@password",
|
||||
"POSTGRES_DB": "test_database",
|
||||
"POSTGRES_PORT": "5432",
|
||||
"PGPORT": "5432",
|
||||
}
|
||||
assert output["services"]["pg_container"]["depends_on"] == {
|
||||
"perms_container": {"condition": "service_completed_successfully"},
|
||||
@@ -1,2 +1,2 @@
|
||||
0.0.1: f074617a82a86d2a6cc78a4c8a4296fc9d168e456f12713e50c696557b302133
|
||||
2.1.16: dac15686f882b9ce65b8549a3d5c0ed7bafe2df7a9028880d1a99b0ff4af1eff
|
||||
2.1.17: fac0bd3f679320fc7366687de39b822c1c53241b4aa0cb85080d6d6843322154
|
||||
|
||||
Reference in New Issue
Block a user