File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,18 @@ LABEL name="Percona Postgres Operator" \
5050 description="Percona Postgres Operator simplifies and automates all essential actions for stable and continuous database operation during the whole database lifecycle" \
5151 maintainer=
"Percona Development <[email protected] >" 5252
53-
5453COPY licenses /licenses
5554
5655COPY --from=go_builder /usr/local/bin/postgres-operator /usr/local/bin
5756COPY --from=go_builder /usr/local/bin/extension-installer /usr/local/bin
5857COPY --from=go_builder /licenses /licenses
5958COPY build/postgres-operator/install-extensions.sh /usr/local/bin
6059COPY hack/tools/queries /opt/crunchy/conf
60+ COPY operator-wrapper.sh /usr/local/bin/operator-wrapper.sh
6161
62- RUN chgrp -R 0 /opt/crunchy/conf && chmod -R g=u opt/crunchy/conf
62+ RUN chgrp -R 0 /opt/crunchy/conf && chmod -R g=u opt/crunchy/conf && \
63+ chmod +x /usr/local/bin/operator-wrapper.sh
6364
6465USER 2
6566
66- CMD ["postgres- operator" ]
67+ ENTRYPOINT ["/usr/local/bin/ operator-wrapper.sh " ]
Original file line number Diff line number Diff line change 1111 containers :
1212 - name : operator
1313 image : postgres-operator
14+ command : ["/usr/local/bin/operator-wrapper.sh"]
1415 env :
1516 - name : PGO_NAMESPACE
1617 valueFrom :
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Set ulimit before starting the operator
4+ ulimit -n 1000000
5+
6+ # Start the operator
7+ exec /usr/local/bin/postgres-operator " $@ "
You can’t perform that action at this time.
0 commit comments