Skip to content

Instantly share code, notes, and snippets.

@dragosMC91
Created July 20, 2019 09:25
Show Gist options
  • Save dragosMC91/af901ff829b2184c5cb54082c3f3d18d to your computer and use it in GitHub Desktop.
Save dragosMC91/af901ff829b2184c5cb54082c3f3d18d to your computer and use it in GitHub Desktop.
The entrypoint shell script for the base JMeter dockerfile
#!/bin/bash
# Run command to allocate the default or custom system resources (memory) to JMeter at 'docker run'
sed -i 's/\("${HEAP:="\)\(.*\)\("}"\)/\1-Xms'${Xms}' -Xmx'${Xmx}' -XX:MaxMetaspaceSize='${MaxMetaspaceSize}'\3/' ${JMETER_BIN}/jmeter
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment