Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic parsing from dashed env vars #238

Closed
toschneck opened this issue Feb 14, 2017 · 2 comments
Closed

Automatic parsing from dashed env vars #238

toschneck opened this issue Feb 14, 2017 · 2 comments

Comments

@toschneck
Copy link
Contributor

Find a way to map env vars like SAKULI_LOG_FOLDER to the sakuli property sakuli.log.folder automatically.

This will be helpful to manage docker containers from the outside during runtime like in an openshift deployment.

2 Possible ways to go:

Example: openshift.sakuli.gitvolume.pod.run.yaml
old

      volumeMounts:
      - mountPath: /headless/sakuli/testsuite
        name: vol-testsuite
      args:
        - run
        - /headless/sakuli/testsuite/${GIT_TEST_SUITE_PATH}
        - -D
        # must be a writable path
        - sakuli.log.folder=/headless/sakuli/logs
        - -D
        # not needed in openshift environment
        - sakuli.forwarder.gearman.cache.enabled=false

new

      volumeMounts:
      - mountPath: /headless/sakuli/testsuite
        name: vol-testsuite
      env:
      - name: SAKULI_TEST_SUITE
        value: headless/sakuli/testsuite/${GIT_TEST_SUITE_PATH}
      - name: SAKULI_LOG_FOLDER
        value: $SAKULI_ROOT/logs
@toschneck
Copy link
Contributor Author

toschneck commented Mar 9, 2017

see TODO #238 in code

@simonmeggle
Copy link

Try to read all properties in sakuli-default.properties from the environment. If found, it will overwrite the property value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants