File: Dockerfile

package info (click to toggle)
pgcluu 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,192 kB
  • sloc: perl: 21,874; sh: 14; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM fedora:latest
COPY . /usr/src/pgcluu
WORKDIR /usr/src/pgcluu
Run dnf install -y \
    perl \
    perl-Getopt-Long.noarch \
    perl-Storable \
    postgresql \
    && dnf clean all
CMD [ "perl", "./Makefile.PL" ]
CMD [ "make" ]
CMD [ "make" "install" ]
ENV PGCLUU_STATS_DIR /tmp/pgcluu_stats
ENV PGCLUU_REPORT_DIR /tmp/pgcluu_report
ENV PATH /usr/src/pgcluu:$PATH
ENV POSTGRES_USERNAME postgres
ENV POSTGRES_PASSWORD postgres
ENV POSTGRES_DB       postgres
ENV POSTGRES_HOSTNAME postgres
Run mkdir -p $PGCLUU_STATS_DIR $PGCLUU_REPORT_DIR
ENTRYPOINT echo -e "\t Hit CTRL-\ (SIGQUIT) to stop the collection and generate the report" ; \
           pgcluu_collectd -i 60 $PGCLUU_STATS_DIR -h $POSTGRES_HOSTNAME -U $POSTGRES_USERNAME -d $POSTGRES_DB ; \
           pgcluu -o $PGCLUU_REPORT_DIR $PGCLUU_STATS_DIR