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

Setting silent from the Docker command line? #76

Closed
danielcompton opened this issue Jun 1, 2018 · 3 comments
Closed

Setting silent from the Docker command line? #76

danielcompton opened this issue Jun 1, 2018 · 3 comments
Assignees
Labels

Comments

@danielcompton
Copy link

I can set other properties when running S3Mock via Docker, but the silent parameter doesn't seem to be picked up?

$ docker run -p 9090:9090 -p 9191:9191 -t adobe/s3mock:latest --server.port=0 --initialBuckets=abc,def --silent=true
+------------------------------------------------------------------------------+
|             _______  ______    _______  _______  _______  _                  |
|            (  ____ \/ ___  \  (       )(  ___  )(  ____ \| \    /\           |
|            | (    \/\/   \  \ | () () || (   ) || (    \/|  \  / /           |
|            | (_____    ___) / | || || || |   | || |      |  (_/ /            |
|            (_____  )  (___ (  | |(_)| || |   | || |      |   _ (             |
|                  ) |      ) \ | |   | || |   | || |      |  ( \ \            |
|            /\____) |/\___/  / | )   ( || (___) || (____/\|  /  \ \           |
|            \_______)\______/  |/     \|(_______)(_______/|_/    \/           |
|                                                                              |
+------------------------------------------------------------------------------+

2018-06-01 01:14:25.760  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : Starting S3MockApplication on b1e6221d7dca with PID 1 (/opt/service/s3mock-2.0.5.jar started by root in /opt/service)
2018-06-01 01:14:25.763  INFO 1 --- [           main] c.a.testing.s3mock.S3MockApplication     : No active profile set, falling back to default profiles: default
2018-06-01 01:14:25.794  INFO 1 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5b1d2887: startup date [Fri Jun 01 01:14:25 GMT 2018]; root of context hierarchy
2018-06-01 01:14:26.500  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 0 (https) 9090 (http)
...
2018-06-01 01:14:26.779  INFO 1 --- [           main] c.a.testing.s3mock.FileStoreController   : Creating initial buckets: [abc, def]
2018-06-01 01:14:26.779  INFO 1 --- [           main] c.a.testing.s3mock.FileStoreController   : Creating bucket: abc
2018-06-01 01:14:26.780  INFO 1 --- [           main] c.a.testing.s3mock.FileStoreController   : Creating bucket: def

The other parameters seem to be picked up, but not --silent=true. Is there another way I should be doing this?

@timoe
Copy link
Contributor

timoe commented Jun 1, 2018

Thanks for reporting @danielcompton. We'll take a look at it.

@timoe timoe added the question label Jun 4, 2018
@timoe timoe self-assigned this Jun 4, 2018
@timoe
Copy link
Contributor

timoe commented Jun 4, 2018

S3 Mocks bootstrapping code ignores env. variables, program- or JVM arguments regarding the silent parameter @danielcompton. It can only be applied programmatically for now, e.g. as done in JUnit Rule.

From my point of view it would be useful to configure things like the silent parameter or threads counts mentioned here #75 in a more open way. Either configure them via env. variable, VM argument, programm argument or a mix of all those. I'll create a new issue for that and close this one.

@timoe
Copy link
Contributor

timoe commented Jun 4, 2018

see #77

@timoe timoe closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants