Skip to content

Commit

Permalink
remove .dockerenv, add it as ENV to Dockerfile
Browse files Browse the repository at this point in the history
Fixes: #61
  • Loading branch information
rwaffen committed Apr 5, 2024
1 parent 12186a5 commit 4c5c228
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ docker pull ghcr.io/voxpupuli/puppetdb:7.13.0-v1.2.1
| **PUPPETDB_NODE_PURGE_TTL** | Automatically delete nodes that have been deactivated or expired for the specified amount of time<br><br>`14d` |
| **PUPPETDB_REPORT_TTL** | Automatically delete reports that are older than the specified amount of time<br><br>`14d` |
| **PUPPETDB_JAVA_ARGS** | Arguments passed directly to the JVM when starting the service<br><br>`-Djava.net.preferIPv4Stack=true -Xms256m -Xmx256m -XX:+UseParallelGC -Xloggc:/opt/puppetlabs/server/data/puppetdb/logs/puppetdb_gc.log -Djdk.tls.ephemeralDHKeySize=2048` |
| **LOGDIR** | Path of the log directory<br><br>`/opt/puppetlabs/server/data/puppetdb/logs` |
| **SSLDIR** | Path of the SSL directory<br><br>`/opt/puppetlabs/server/data/puppetdb/certs` |

### Cert File Locations

Expand Down
5 changes: 5 additions & 0 deletions puppetdb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ ARG UBUNTU_CODENAME
ARG vcs_ref
ARG build_date
ARG build_type

ARG LOGDIR
ENV LOGDIR=${LOGDIR:-/opt/puppetlabs/server/data/puppetdb/logs}

ARG SSLDIR
ENV SSLDIR=${SSLDIR:-/opt/puppetlabs/server/data/puppetdb/certs}

ENV PUPPET_DEB=puppet${PUPPET_RELEASE}-release-${UBUNTU_CODENAME}.deb
ADD https://apt.puppet.com/${PUPPET_DEB} /${PUPPET_DEB}
Expand Down
4 changes: 0 additions & 4 deletions puppetdb/conf.d/.dockerenv

This file was deleted.

2 changes: 0 additions & 2 deletions puppetdb/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

set -e

. /etc/puppetlabs/puppetdb/conf.d/.dockerenv

for f in /docker-entrypoint.d/*.sh; do
echo "Running $f"
"$f"
Expand Down

0 comments on commit 4c5c228

Please sign in to comment.