antlr / antlr4-lab

A client/server for trying out and learning about ANTLR
MIT License
36 stars 11 forks source link

Support Docker #28

Closed parrt closed 1 year ago

parrt commented 1 year ago

Support Docker (Fixes #21):

$ cd antlr4-lab
$ mvn clean package  # has to be built first as docker copies in the jar
$ docker build --tag antlr4-lab-docker .
$ docker run -p80:80 --rm antlr4-lab-docker

Then just open browser to http://localhost/index.html

parrt commented 1 year ago

Heh @kaby76, are you one with Docker? Can you check this out? @teverett?

kaby76 commented 1 year ago

I can check later today. I have to reinstall docker....it doesn't be quiet, asks all the time "Can I update?", like displaying advertisements.

On Sat, Oct 8, 2022, 3:36 PM Terence Parr @.***> wrote:

Heh @kaby76 https://github.com/kaby76, are you one with Docker? Can you check this out? @teverett https://github.com/teverett?

— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4-lab/pull/28#issuecomment-1272384504, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW4UC3I3ZUTRLN2DNNGI2LWCHEMZANCNFSM6AAAAAARAL6E5U . You are receiving this because you were mentioned.Message ID: @.***>

parrt commented 1 year ago

ok, making some changes. apparently i don't know what I'm doing. haha

kaby76 commented 1 year ago

Seems to work fine. But I had to do some things to get it to work on Windows/WSL2.

It looks like docker binds port 80 to 0.0.0.0 by default (after installing net-tools, and doing netstat -a).

parrt commented 1 year ago

Thanks! Yeah, not sure it's useful but I'll merge in case people want. I'll add your comments to info.