Zola: Image on Docker Hub

Created on 25 Aug 2018  Â·  19Comments  Â·  Source: getzola/zola

Would there be interest in having a automatically built, "official", image on Docker Hub?

I found a number of images on Docker Hub and I made my own on my private GitLab Registry, but it might be good to make one really good image for general use.

For extra points, we could do a second FROM scratch, static rust-musl-build one for the smallest image size possible.

enhancement

All 19 comments

It's a good idea I think but I would wait on #377 for the name first

For extra points, we could do a second FROM scratch, static rust-musl-build one for the smallest image size possible.

I think musl will not work because of https://github.com/compass-rs/sass-rs/issues/30
If you have any experience with musl and Rust, I would love some help on that

With Gutenberg just being a build tool, I don’t think that size should be treated against stability (because of unusual build and compiler environments), as this container wouldn’t be deployed thousands of times but rather just a single time per server.

Rust for example takes 1,6 GB by default, which is pretty enormous – in contrast to spending time on shrinking a few megabytes.

The name has been changed now so you can go ahead if you want

There is one at https://hub.docker.com/r/j1mc/docker-zola/

It would be easier to collaborate on that directly, closing the issue

Is this an official one from you, or do you at least supervise that?

it is an inofficial one mentioned here afaik: https://github.com/getzola/zola/issues/377#issuecomment-439994701

FWIW, I am the maintainer of that docker-zola repo (both on github and docker hub). I know it's unofficial, but I'll keep it up-to-date.

As a note, I've pushed an update which bases the container off of Alpine Linux, reducing the container size down to 35.4mb.

Is there any chance that this repo can be linked to an official docker image under getzola/zola ? Using the automated build available on docker hub and the dockerfile of @leiserfg, I hope you can automate the work of publishing the docker image and also keep a track of the version with docker tag.

I moved my work to the repository of @j1mc cause it's more "famous" but I think is better to make it official.

What would official mean here, having the getzola/zola namespace?
I'm a bit wary about adding one more automated build system, the last one added in the repo (snapcraft) is still now working properly. Is it as simple as adding the Dockerfile and setting up the release on tag in some UI?

The dockerfile is using the version from an environment variable, so it can even use the realese tag for that.

Yeah I guess having the docker under getzola/zola will make it official.

Adding this feature should not add too much complexity to the build system because docker hub have is own automate build system (https://docs.docker.com/docker-hub/builds/) and it can be linked to a Github repository.
Like you said it should be as easy as adding the Dockerfile and setting up the release in Docker Hub UI.

Actually I noticed that you can use the tag from github as a docker tag and dockerhub will pass that variable DOCKER_TAG into the docker environment so I can use that for automatic builds, so you just need to mimic my settings, and let it hands free

Can someone do a PR with the Dockerfile on the next branch? I'll have a look at the dockerhub setup afterwards

For sure

Ok balthek/zola is on dockerhub. I couldn't get the name zola and I can't seem to change the username, oh well

Was this page helpful?
0 / 5 - 0 ratings