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 a Dockerfile :) #1

Merged
merged 1 commit into from
Aug 10, 2015
Merged

Add a Dockerfile :) #1

merged 1 commit into from
Aug 10, 2015

Conversation

vdemeester
Copy link
Contributor

I couldn't resists but to add a Dockerfile 😅.

λ docker build -t calavera/gh-rel .
# […]
λ docker run --rm -ti -v /tmp/data:/data calavera/gh-rel add docker/distribution
λ docker run --rm -ti -v /tmp/data:/data calavera/gh-rel add docker/compose
λ docker run --rm -ti -v /tmp/data:/data -p 8888:888 calavera/gh-rel                                                                                          
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET   /assets/*filepath         --> github.com/gin-gonic/gin.func·011 (3 handlers)
[GIN-debug] HEAD  /assets/*filepath         --> github.com/gin-gonic/gin.func·011 (3 handlers)
[GIN-debug] GET   /                         --> main.func·003 (3 handlers)
[GIN-debug] Listening and serving HTTP on :8888
No media type for this response
[GIN] 2015/08/08 - 20:57:22 | 200 |  2.330971997s | 172.17.42.1:37386 |   GET     /
No media type for this response
No media type for this response
[GIN] 2015/08/08 - 20:57:28 | 200 |  1.866008868s | 172.17.42.1:37386 |   GET     /
[GIN] 2015/08/08 - 20:57:28 | 304 |      99.349µs | 172.17.42.1:37386 |   GET     /assets/css/primer.css
[GIN] 2015/08/08 - 20:57:28 | 304 |     137.161µs | 172.17.42.1:37390 |   GET     /assets/css/octicons.css
[GIN] 2015/08/08 - 20:57:28 | 304 |      63.238µs | 172.17.42.1:37386 |   GET     /assets/css/main.css
[GIN] 2015/08/08 - 20:57:28 | 304 |      57.207µs | 172.17.42.1:37386 |   GET     /assets/images/mini-logo.svg

The change on main.go is there because each time I ran gh-rel --db=… serve it was complaining 😓.

🐸

Signed-off-by: Vincent Demeester vincent@sbr.pm

@calavera
Copy link
Owner

Don't you think that the data directory should be a volume, to keep the database around and such 😉 ?

@vdemeester
Copy link
Contributor Author

@calavera yeah, I could declare the VOLUME in the Dockerfile you're right 😝.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
@calavera
Copy link
Owner

sup, thank you!

calavera added a commit that referenced this pull request Aug 10, 2015
@calavera calavera merged commit d8009f0 into calavera:master Aug 10, 2015
@vdemeester vdemeester deleted the dockerfile branch August 10, 2015 16:37
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.

2 participants