Skip to content

Commit

Permalink
Adjust host
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Jul 31, 2024
1 parent 7be1b07 commit 4978e07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/Dockerfile.postgres_profile_docker_k8s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.9
RUN pip install dbt-postgres==1.3.1 psycopg2==2.9.3 pytz

ENV POSTGRES_DATABASE=postgres
ENV POSTGRES_HOST=postgres-postgresql.default.svc.cluster.local
ENV POSTGRES_HOST=127.0.0.1
ENV POSTGRES_PASSWORD=<postgres_password>
ENV POSTGRES_PORT=5432
ENV POSTGRES_SCHEMA=public
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/kubernetes-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export POSTGRES_PASSWORD
# Expose the Postgres to the host running Docker/Kind
#kubectl port-forward --namespace default postgres-postgresql-0 5432:5432 &
kubectl port-forward --namespace default svc/postgres-postgresql 5432:5432 &
kubectl create secret generic postgres-secrets --from-literal=host=postgres-postgresql.default.svc.cluster.local --from-literal=password=$POSTGRES_PASSWORD
kubectl create secret generic postgres-secrets --from-literal=host=127.0.0.1 --from-literal=password=$POSTGRES_PASSWORD

# Create a docker image containing the dbt project files and dbt profile
cd dev && docker build -t dbt-jaffle-shop:1.0.0 -f Dockerfile.postgres_profile_docker_k8s .
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ postgresql:
command:
- /bin/sh
- -c
- exec pg_isready -U "postgres" -h postgres-postgresql.default.svc.cluster.local -p 5432
- exec pg_isready -U "postgres" -h 127.0.0.1 -p 5432
initialDelaySeconds: 120
timeoutSeconds: 120
periodSeconds: 120
Expand Down

0 comments on commit 4978e07

Please sign in to comment.