-
Notifications
You must be signed in to change notification settings - Fork 1
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
update: Added a basic Dockerfile #22
base: master
Are you sure you want to change the base?
Conversation
* Added a basic Dockerfile with nodejs and mongodb to start to use tournamenter in a way it deserves. Signed-off-by: mr.Shu <[email protected]>
Also, when you run the second command you should be seing the tournamenter output (just saying). |
@TechnoX feel free to play around this too, it might simplify the deployment for you. |
Will play around now that i'm home! and connected to the internet as well...
|
@ivanseidel take your time, there is no real rush in this =) |
@mrshu this error occurs while using |
@ivanseidel my bad, on Mac machines you should not be using sudo at all (moby/moby#9808). Can you please try it without it? |
I tried without |
@ivanseidel it seems that this boot2docker thing changes all the time. The problem is that it doesn't bind 0.0.0.0 or 127.0.0.1 but some other strange IP so you need to open that. Please see https://github.com/boot2docker/boot2docker#container-port-redirection and do let me know if that helps. |
@ivanseidel Generally speaking you only need to change the |
Roger That. Worked... but how to do something pretty and easier for dummies? haha I guess everything should work just by copying and pasting something in the terminal... what do you think? |
@ivanseidel absolutely, will create a script for that! |
Once I found something really nice like this... script was written in |
It seems to be everywhere these days and frankly, it's very insecure and generally a bad practice. But for tournamenter it seems to be the way to go. @ivanseidel did you mean something like this? curl https://www.npmjs.org/install.sh | sh |
yeah @mrshu .. exactly! haha Do you need any help? I think of this line of events:
Also, if user executes the same shell again, it should skip instalation steps... What do you think? |
I believe I can do this fairly easily. I'd say let's concentrate on Mac and Linux machines first and figure out Windows afterwards (but it should be easy to do it there too). A few comments:
Totally agreed. Sounds like a good plan! Just one question, if there will be some config values in |
What I was thinking about, is creating a settings file like:
Or something like this... that we could insert tournamenter instances, and each object key |
@ivanseidel I see. If at that moment we would also require people to install say node on their boxes that would make total sense. Let's roll with that for now then! |
tournamenter in a way it deserves.
Signed-off-by: mr.Shu [email protected]
This is a very first and very basic version of a Dockerfile that will in the end power
tournamenter
.To get this, first of all you need to install docker (http://docs.docker.com/installation/mac/). Then you need to pull my build by running
It's going to install a LOT of data (like around 800MB) but afterwards you can run
Which will start tournamenter, open port 12345 on your machine and route the "internal" tournamenter's port (1337) into it. That way, tournamenter should be now available at http://127.0.0.1:12345/ on your machine.
@ivanseidel Do let me know if there are any problems with this -- would like to get them figured out.