fonsp/PlutoUtils.jl

Automatically build Docker images in case of updates of Pluto.jl or PlutoUI.jl

lungben opened this issue ยท 11 comments

Currently, the build of Pluto Docker images need to be triggered manually in Dockerhub.
This should be automated using Github Actions.

fonsp commented

Great! Do I need to do anything?

Probably you need to set up some credentials for the Git repos to work together with Dockerhub, but I first need to get familiar myself with this topic.
I'll let you know when I need your help.

fyi, the Github actions workflow is already setup with this file

TODO: Need to use a proper convention for version numbering

for Docker Personal Access Token
Dockerhub > Account Settings > Security > New AccessToken
Github project Settings > Secrets > New secret > Name=DOCKER_PAT value=token from above step

@shashankp thanks for the instructions!

fyi, for Binder, the plutojl/pluto-binder docker image need to have a version# as tag, latest wouldnt work

This would work in local, but for Binder

docker run -it -p 8080:8080 plutojl/pluto-binder:latest jupyter notebook --ip=0.0.0.0 --port=8080

Thanks for the information, I tagged the latest version with 0.1.

adding dockerfile will make a git repo with Pluto notebooks work in binder & also Jupyter in local

Badge link ๐ŸŽˆ
Binder

Can add this to wiki?

Maybe not directly in the url, but in here
image

https://hub.docker.com/r/plutojl/pluto-binder

fonsp commented

But we want it directly from the URL! http://pluto-on-binder.glitch.me/

@fonsp Could you please do the steps described by @shashankp ?
You need your Dockerhub and Github account for this.

TODO: Need to use a proper convention for version numbering

for Docker Personal Access Token
Dockerhub > Account Settings > Security > New AccessToken
Github project Settings > Secrets > New secret > Name=DOCKER_PAT value=token from above step

As far as I can see, the automatic creation of Docker images and the CI pipeline in general should work after the tokens are set.