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

Add more parameters to the launcher script #1

Open
wysow opened this issue Nov 4, 2015 · 4 comments
Open

Add more parameters to the launcher script #1

wysow opened this issue Nov 4, 2015 · 4 comments

Comments

@wysow
Copy link

wysow commented Nov 4, 2015

Hello,

First thanks for this useful image!

It could be great to add some more parameters to the launcher script, especially a -p to allow use of a custom port like docker does, but maybe also some others I don't think of at this time...

What do you think?

@garywiz
Copy link
Owner

garywiz commented Nov 4, 2015

I debated about this. I figured people would take the launcher script, then modify it to suit their purposes. For example, at the top of the launcher script, you can change the EXT_HTTP_PORT line to look something like this:

EXT_HTTP_PORT=80

Then, the launched image will use port 80 instead of 8080.

I could certainly add switches and options too, I just didn't want to over-complicate the launcher script and make it harder to read for people who aren't used to shell scripting so much.

Curious about your thoughts!

@wysow
Copy link
Author

wysow commented Nov 5, 2015

Yes both solutions sounds right, just for me as a developer I think that more options is more customization ;). And by the way for people not used to shell scripting if they have to open it to customize, not sure that sounds great for them... ;)

@garywiz
Copy link
Owner

garywiz commented Dec 14, 2015

In this latest release, I've enhanced the launcher script, and included details on the main documentation page. There are probably many more customizations, but is this a good start?

$ ./run-docker-grav.sh -h
Usage: run-docker-grav.sh [-d] [-p port#] [-h]
       Run Grav from garywiz/docker-grav as a daemon (with -d) or 
       interactively (the default).

  -d            Run as daemon (otherwise interactive)
  -p port#      Specify port number to expose Grav server (default 8080)
  -s dirpath    Specifies the path to an optional storage directory where 
                ALL persistent Grav files and settings will be stored.  This allows
                you to keep your site separate from the container so you can easily
                upgrade the container software. By default, this script looks to see 
                if ../docker-grav-storage exists, and if it does, it will be used.  
                You can override that default with this switch.
  -n name       Name the container 'name' instead of the default name invented by Docker.

HTTPS options (SSL):
  -H sslhost    Specify the SSL host name and enable the SSL server.  If specified, Grav
            will also be available using https on the port specified by -P
  -P sslport#   Specify SSL port number (default 8443)

@wysow
Copy link
Author

wysow commented Dec 15, 2015

@garywiz sounds like a great start, wiil try it and come back to you if I have some feedback or ideas.

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

No branches or pull requests

2 participants