Skip to content

reading user and password from env#4

Open
gowrisankar22 wants to merge 1 commit intocirocosta:masterfrom
gowrisankar22:patch-1
Open

reading user and password from env#4
gowrisankar22 wants to merge 1 commit intocirocosta:masterfrom
gowrisankar22:patch-1

Conversation

@gowrisankar22
Copy link
Contributor

@gowrisankar22 gowrisankar22 commented Mar 31, 2020

@cirocosta
Copy link
Owner

cirocosta commented Mar 31, 2020

Hey @gowrisankar22 ,

are you sure this is currently broken?

Building it from source, I can get it working without problems:

SR_USERNAME=test SR_PASSWORD=test ./slirunner once --target local -c http://localhost:8080

(otherwise, the feedback would be pretty quick by saying "the required flags -p, --password' and -u, --username' were not specified")

are you getting that error message?

@gowrisankar22
Copy link
Contributor Author

@cirocosta I mentioned in the issue already: #3
even for me it works in docker but not in the kubernetes setup ..i get below error.

➜  ~ k  logs po/slirunner-8f48b9fd-28ckj
{"timestamp":"1585723680.169568539","source":"slirunner","message":"slirunner.run.login.start","log_level":1,"data":{"session":"1.1"}}
{"timestamp":"1585723680.311585426","source":"slirunner","message":"slirunner.run.login.finish","log_level":2,"data":{"error":"command execution failed: exit status 127","session":"1.1"}}
COMMAND FAILURE---
error: unknown target: ci
/bin/bash: line 3: -p: command not found
/bin/bash: line 4: -c: command not found

➜  ~ k  logs po/slirunner-8f48b9fd-28ckj
{"timestamp":"1585723680.169568539","source":"slirunner","message":"slirunner.run.login.start","log_level":1,"data":{"session":"1.1"}}
{"timestamp":"1585723680.311585426","source":"slirunner","message":"slirunner.run.login.finish","log_level":2,"data":{"error":"command execution failed: exit status 127","session":"1.1"}}
COMMAND FAILURE---
error: unknown target: ci
/bin/bash: line 3: -p: command not found
/bin/bash: line 4: -c: command not found

{"timestamp":"1585723740.170141220","source":"slirunner","message":"slirunner.run.login.start","log_level":1,"data":{"session":"1.2"}}
{"timestamp":"1585723740.216677189","source":"slirunner","message":"slirunner.run.login.finish","log_level":2,"data":{"error":"command execution failed: exit status 127","session":"1.2"}}
COMMAND FAILURE---
error: unknown target: ci
/bin/bash: line 3: -p: command not found
/bin/bash: line 4: -c: command not found

offcourse it works if you pass -p and -u ..

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants