Skip to content

Commit fbc767a

Browse files
author
Alexander Bondarev
committed
Add google-api-client installation.
Enable /etc/profile usage for template variables Fix template variables names.
1 parent b0e228e commit fbc767a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

9.6/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ RUN curl -L -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/rel
4747
ENV PGHOARD_VERSION=1.5.0
4848
RUN pip3 install git+https://github.com/ohmu/pghoard.git@${PGHOARD_VERSION}
4949

50+
RUN pip3 install google-api-python-client 'oauth2client<4'
51+
5052
RUN mkdir /var/lib/pghoard
5153
RUN chown postgres:postgres /var/lib/pghoard
5254

9.6/docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
source /etc/profile
6+
57
echo "Create pghoard directories..."
68
chown -R postgres /home/postgres
79

9.6/templates/pghoard.json.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"is_secure": "{{getenv "AWS_IS_SECURE"}}",
3939
{{end}}
4040
"bucket_name":"{{getenv "AWS_BUCKETNAME"}}"
41-
{{else if eq $storage_type "google"}}
42-
"storage_type": "google",
43-
"project_id": "{{getenv "GCE_PROJECT_ID"}}",
44-
"bucket_name": "{{getenv "GCE_BUCKET_NAME"}}",
45-
"credential_file": "{{getenv "GCE_CREDENTIAL_FILE"}}"
41+
{{else if eq $storage_type "google"}}
42+
"storage_type": "google",
43+
"bucket_name": "{{getenv "GCS_BUCKET_NAME"}}",
44+
"project_id": "{{getenv "GCE_PROJECT_ID"}}",
45+
"credential_file": "{{getenv "GCE_CREDENTIAL_FILE"}}"
4646
{{else if eq $storage_type "swift"}}
4747
"storage_type": "swift",
4848
"user":"{{getenv "OS_USERNAME"}}",

0 commit comments

Comments
 (0)