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

#83 add Dockerfile with some docu in README #84

Merged
merged 3 commits into from Jul 19, 2019

Conversation

justb4
Copy link
Collaborator

@justb4 justb4 commented Jul 18, 2019

Added Dockerfile (Image size uncompressed just 32.3MB) plus some guidance in README.md.
Tested with custom app-config and Docker Volume Mapping.

Copy link
Collaborator

@chrismayer chrismayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very cool and works great! 👍 Thank you very much @justb4!

I have some minor remarks, you might want to address at will. Otherwise we can do them follow-ups.

README.md Outdated Show resolved Hide resolved
To run with a custom Wegue JSON config, use Docker Volume Mapping to override the default config:

``` bash
docker run -it -p 8080:80 -v $(pwd)/app-conf-mine.json:/usr/share/nginx/html/static/app-conf.json meggsimum/wegue:latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By mapping app-conf-mine.json to static/app-conf.json it will overwrite the default app-conf. By setting

-v $(pwd)/app-conf-mine.json:/usr/share/nginx/html/static/app-conf-mine.json you could use both the default configs and the newly mounted one by http://localhost:8080/?appCtx=mine

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but idea was that in real-world cases one would add own config, override default, thus keep URL simple (no appCtx=).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hold on, a double bash literal now in README.md text, will commit in few seconds....

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, totally fine with that. Always good to have several options.

@justb4
Copy link
Collaborator Author

justb4 commented Jul 19, 2019

Ok, updated README.md. You may want to merge and edit it after as you like.

@chrismayer
Copy link
Collaborator

Thanks again @justb4 ! I'll happily merge now.

@chrismayer chrismayer merged commit 4b9f32f into wegue-oss:master Jul 19, 2019
justb4 pushed a commit to Geolicious/wegue that referenced this pull request May 25, 2020
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.

None yet

2 participants