rundeck.logviewer.maxLogSize=100MB
but not sure what is the best/easiest way to set it with rundeck docker.
In /etc/remco/templates/rundeck-config.properties I'm not sure how to do that.
Do you have any suggestions?
Thank you very much,
Cristina Ruscau
Hi Cristina,
I’ve tested and it works here on my end, let me share my REMCO config :)
The rundeck-config-extra.properties file (/remco/templates/ path):
# adding extra stuff to rundeck-config.properties file rundeck.execution.logs.output.limit={{ getv("/rundeck/execution/logs/output/limit", "2MB") }} rundeck.execution.logs.output.limitAction={{ getv("/rundeck/execution/logs/output/limitAction", "truncate") }} rundeck.logviewer.maxLogSize={{ getv("/rundeck/logviewer/maxLogSize", "2MB") }}The rundeck-config.properties-extra.toml file (/remco/resources.d/ path):
[[template]] src = "${REMCO_TEMPLATE_DIR}/rundeck-config-extra.properties" dst = "${REMCO_TMP_DIR}/rundeck-config/rundeck-config-extra.properties" mode = "0644"The docker-compose.yml file :
version: '3' services: rundeckserver: build: context: . dockerfile: Dockerfile args: url: http://localhost:4440 ports: - "4440:4440" restart: alwaysDockerfile:
FROM rundeck/rundeck:5.8.0 COPY --chown=rundeck:root remco /etc/remco ARG url="" ENV RUNDECK_SERVER_ADDRESS=0.0.0.0 ENV RUNDECK_GRAILS_URL=$urlI’ve tested with the following job (it generates 10MB of log but the config only admits 2MB).
- defaultTab: nodes description: '' executionEnabled: true id: e5ef170a-beab-4a02-ab5d-70705b7f6f44 loglevel: INFO name: HelloWorld nodeFilterEditable: false plugins: ExecutionLifecycle: {} scheduleEnabled: true sequence: commands: - autoSecureInput: 'false' fileExtension: .sh interpreterArgsQuoted: false passSecureInput: 'false' script: |- base64 /dev/urandom | head -c 10000000 > file.txt sleep 1 cat file.txt sleep 1 rm file.txt scriptInterpreter: /bin/bash keepgoing: false strategy: node-first uuid: e5ef170a-beab-4a02-ab5d-70705b7f6f44The parameters are in place after launching the container with the docker compose up command. Check the result here (if you change the job to generate less than 2MB, it shows the entire file content).
Try this config.
Hope it helps!