Skip to content

Commit a0dac1c

Browse files
author
matthias
committed
some modifications
1 parent 962e863 commit a0dac1c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docker/postgres-stage/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ RUN ${PACKAGER} -y update && ${PACKAGER} -y install --nodocs \
6262
busybox \
6363
dpkg \
6464
jq \
65+
rsync \
6566
&& ${PACKAGER} -y clean all;
6667

6768

@@ -217,7 +218,7 @@ RUN mkdir /package && cd /package && wget http://smarden.org/runit/runit-2.1.2.
217218
RUN ln -s /usr/local/bin/dumb-init /usr/bin/dumb-init && ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir
218219

219220
# Clean Up git-repos
220-
RUN rm -rf /pgextwlist /pg_stat_kcache /package /oracle_fdw /pgnodemx \
221+
RUN rm -rf /pgextwlist /pg_stat_kcache /oracle_fdw /pgnodemx \
221222
&& rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest;
222223

223224
# Clean Up Packages
@@ -234,7 +235,7 @@ ARG TIMESCALEDB
234235

235236
EXPOSE 5432 8008 8080
236237
ENV LC_ALL=en_US.utf-8 \
237-
PATH=$PATH:/usr/pgsql-$PGVERSION/bin \
238+
PATH=$PATH:/usr/pgsql-$PGVERSION/bin \
238239
PGHOME=/home/postgres \
239240
RW_DIR=/run \
240241
TIMESCALEDB=$TIMESCALEDB \

scripts/exporter/structure.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11

22
# User
3+
CREATE ROLE postgres_exporter with password 'password';
4+
ALTER ROLE postgres_exporter login;
35

46
GRANT pg_monitor TO postgres_exporter;
57
GRANT SELECT ON TABLE pg_authid TO postgres_exporter;
68

7-
# Structure
9+
// Structure
810

911
CREATE SCHEMA exporter;
1012

0 commit comments

Comments
 (0)