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

Build Docker image failing with Syntax error #132

Closed
prabcloudxprt opened this issue Jun 7, 2021 · 3 comments
Closed

Build Docker image failing with Syntax error #132

prabcloudxprt opened this issue Jun 7, 2021 · 3 comments
Labels
invalid This doesn't seem right

Comments

@prabcloudxprt
Copy link

i see below error , any idea on how to fix this.

docker run -d k8s-sidecar:latest
b420eec44a49b6c7b5443a73e70a311e43c3c28deae10f7b73b3bff8f471f6c4
[test@host k8s-sidecar]$ docker logs b420eec44a49b6c7b5443a73e70a311e43c3c28deae10f7b73b3bff8f471f6c4
  File "/app/sidecar.py", line 28
    print(f"Selected resource type: {resources}")
                                               ^
SyntaxError: invalid syntax
@jekkel
Copy link
Member

jekkel commented Jun 7, 2021

I cannot reproduce. Are you using a locally built image?

$ docker run -d docker.io/kiwigrid/k8s-sidecar:latest
1411b1b4c2c87c90e45a11a098e9197e519c770ce7b2ef8fe9168eb0bf23caa6
$ docker logs 1411b1b4c2c87c90e45a11a098e9197e519c770ce7b2ef8fe9168eb0bf23caa6
[2021-06-07 09:39:47] Starting collector
[2021-06-07 09:39:47] No folder annotation was provided, defaulting to k8s-sidecar-target-directory
[2021-06-07 09:39:47] Should have added LABEL as environment variable! Exit
$

@jekkel jekkel added the question Further information is requested label Jun 7, 2021
@prabcloudxprt
Copy link
Author

yes i am using locally built image

@jekkel
Copy link
Member

jekkel commented Jun 7, 2021

Then I guess you made something different. How about using the official image instead?

@jekkel jekkel added invalid This doesn't seem right and removed question Further information is requested labels Jun 7, 2021
@jekkel jekkel closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants