ieugen edited a comment on pull request #246:
URL: https://github.com/apache/ofbiz-framework/pull/246#issuecomment-736535273
Glad it helps, but don't put too much in gradle.
Gradle is a good tool and I love it but production people want to unpack a
(single ?!) binary add a configuration file or command line options and run it.
Complex tools just to generate a configuration VS plain old search and
replace in text editor/ sed .
In production you usually make your config once and tweak it over time while
restarting the app.
Also people can automate and manage from examples and instructions based on
their needs and knowledge.
Bellow is an example from a Prometheus deployment with docker only.
FYI it's very easy to translate such a deployment to kubernetes.
Please note the use of volumes and mounted host directory, environment
variables and command line arguments.
```
docker volume create prometheus-storage
cd /opt/monitoring
docker run --detach \
--name prometheus \
--restart unless-stopped \
--hostname prometheus \
--env VIRTUAL_PORT=9090 \
--volume prometheus-storage:/prometheus \
--volume /opt/monitoring/prometheus:/etc/prometheus:ro \
prom/prometheus:v2.22.1 \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/prometheus \
--storage.tsdb.retention.time=30d \
--web.console.libraries=/usr/share/prometheus/console_libraries \
--web.console.templates=/usr/share/prometheus/consoles
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]