{"action":"created","issue":{"url":"https://api.github.com/repos/just-containers/s6-overlay/issues/102","labels_url":"https://api.github.com/repos/just-containers/s6-overlay/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/just-containers/s6-overlay/issues/102/comments","events_url":"https://api.github.com/repos/just-containers/s6-overlay/issues/102/events","html_url":"https://github.com/just-containers/s6-overlay/issues/102","id":118125514,"number":102,"title":"How to start a script with parameters?","user":{"login":"gzoller","id":772873,"avatar_url":"https://avatars.githubusercontent.com/u/772873?v=3","gravatar_id":"","url":"https://api.github.com/users/gzoller","html_url":"https://github.com/gzoller","followers_url":"https://api.github.com/users/gzoller/followers","following_url":"https://api.github.com/users/gzoller/following{/other_user}","gists_url":"https://api.github.com/users/gzoller/gists{/gist_id}","starred_url":"https://api.github.com/users/gzoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzoller/subscriptions","organizations_url":"https://api.github.com/users/gzoller/orgs","repos_url":"https://api.github.com/users/gzoller/repos","events_url":"https://api.github.com/users/gzoller/events{/privacy}","received_events_url":"https://api.github.com/users/gzoller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-20T21:04:26Z","updated_at":"2015-11-23T12:36:32Z","closed_at":null,"body":"I have a base Docker containing a small program (portster) I want to run on start-up.  I'm using S6 overlay for this and have create a script: /etc/services.d/portster/run (and finish).\r\n\r\nSo this works well by itself.  I can derive trivial Dockers from this base image and so long as I don't define an ENDPOINT or CMD my portster program launches neatly without any assistance.\r\n\r\nNow I want to use this base image to derive a new Docker holding a Java application.  When run this application needs to accept parameters from the \"docker run\" command line (to be consumed as args in my Java code).  I have a shell script that will launch my Java code (sets variables, classpath, etc.)\r\n\r\nHow can I configure S6 overlay to launch my Java app, accepting parameters, and still retain the core behavior of auto-launching/managing portster I initially needed (without the new Java  Docker having to know about or manage portster)?"},"comment":{"url":"https://api.github.com/repos/just-containers/s6-overlay/issues/comments/158922789","html_url":"https://github.com/just-containers/s6-overlay/issues/102#issuecomment-158922789","issue_url":"https://api.github.com/repos/just-containers/s6-overlay/issues/102","id":158922789,"user":{"login":"glerchundi","id":2232214,"avatar_url":"https://avatars.githubusercontent.com/u/2232214?v=3","gravatar_id":"","url":"https://api.github.com/users/glerchundi","html_url":"https://github.com/glerchundi","followers_url":"https://api.github.com/users/glerchundi/followers","following_url":"https://api.github.com/users/glerchundi/following{/other_user}","gists_url":"https://api.github.com/users/glerchundi/gists{/gist_id}","starred_url":"https://api.github.com/users/glerchundi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glerchundi/subscriptions","organizations_url":"https://api.github.com/users/glerchundi/orgs","repos_url":"https://api.github.com/users/glerchundi/repos","events_url":"https://api.github.com/users/glerchundi/events{/privacy}","received_events_url":"https://api.github.com/users/glerchundi/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:36:32Z","updated_at":"2015-11-23T12:36:32Z","body":"@gzoller I'm with @jprjr, use environment variables to customize your daemon behaviour, IMO, it's the most configurable way of handling parameters. I usually do and it work pretty well for all kind of situations."}}