-
Notifications
You must be signed in to change notification settings - Fork 3
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
Docker support #27
Comments
@Davidhunter Not really something Goal specific as a project developed with Goal is just a regular Go app that can be built as follows: go build github.com/davidhunter/goal-sample So, any Dockerfile that works for a standard library based Go app will work for your project, too. E.g., Revel's Dockerfile from the thread:
In this case you have to have an already compiled binary of your project. Alternatively, use this sample from Go language's docs, do not try to install Goal, install your project:
Do you have access for |
The issue has been resolved, it is not enough to listen on The way to run an app with the # Build the image and tag it as myImage (use whatever tag name you want).
docker build -t myImage .
# Run the app, publish container's :8080 port on the external :8080 port
# (format: `external_addr_or_port:container's_port`), give the app a predictable name.
docker run --publish 8080:8080 --name myApp |
@alkchr I think a docker file inside the project skeleton would be useful for this project |
👍 Should it be a Dockerfile that uses |
I am not sure if I am using This Dockerfile seems to work when the install path is set to the same project gopath.
|
Yeah, right. Because generated apps use absolute import paths (e.g. Your
If this works, we can add to the skeleton and close this issue. |
@alkchr Your docker file works |
Goal gives a error while trying to build a docker image with this dockerfile. It works if the project files are on a public github repo.
Then their is another issue where I can't connect to it outside a container.
The text was updated successfully, but these errors were encountered: