fsprojects / IfSharp

F# for Jupyter Notebooks
Other
442 stars 71 forks source link

Publish docker images on dockerhub #187

Closed godu closed 5 years ago

godu commented 6 years ago

On each tag push, Travis will build and publish 2 images

Demo

If create new tag on my fork https://github.com/godu/IfSharp/releases/tag/v3.0.1 Travis build : https://travis-ci.com/godu/IfSharp/builds/80667557 DockerHub tags : https://hub.docker.com/r/godu/ifsharp/tags/

Next

cgravill commented 6 years ago

Looks like a nice improvement to have an automated deployment.

In terms of the username and password, any suggestions how this would be managed? Do you know if other docker images are automatically published and how they handle accounts like this?

godu commented 6 years ago

@cgravill In my company, we build images for every commit and publish it to docker registry. Cf https://hub.docker.com/u/coorpacademy/ I have some knowledge about DockerHub, and this is my following advice :

Docker doesn't provide access token system like github. I think travis are right, we have to use username/password as credentials.

You should :

cgravill commented 6 years ago

OK, this seems better done at the fsprojects level as we don't want single points of failure. Can we join with whatever is happening here: https://hub.docker.com/_/fsharp/ ?

dsyme commented 5 years ago

Hi all,

@gbaydin and I are diving into iFSharp and we've realised that we will need dockerhub images for iFSharp.

I've created a community organization on docker cloud https://cloud.docker.com/u/fsprojects/ which we can use for all "fsprojects" projects.

@baronfel - If you'd like to be co-admin on that please send me your dockerhub ID.

@cgravill - Could you confirm your dockerhub ID is "cgravill"?

thanks don

cgravill commented 5 years ago

Hi @dsyme yes that's me and I've had a notification from docker hub.

dsyme commented 5 years ago

@godu @cgravill We'll look at updating this PR and getting this in, if that's ok

cgravill commented 5 years ago

Sure, would you like me to resolve the conflicts? I know what's going on with them - enabling the experimental .NET Core builds, and reordering the readme.

baronfel commented 5 years ago

Excellent news, and of course I'll help. My docker hub ID is chusk3@gmail.com.

dsyme commented 5 years ago

Sure, would you like me to resolve the conflicts? I know what's going on with them - enabling the experimental .NET Core builds, and reordering the readme.

Yes please! thanks!

cgravill commented 5 years ago

Done! I haven't checked the local Docker instructions still work. Note to other that this Docker build is targeting the stable Mono version of this.

Getting to .NET Core on Docker in the future would be great.

dsyme commented 5 years ago

Getting to .NET Core on Docker in the future would be great.

I'll look at this too

dsyme commented 5 years ago

OK, so we've

This is now building at https://travis-ci.org/fsprojects/IfSharp/builds/511585157 and all going well the results will appear at https://cloud.docker.com/u/fsprojects/repository/registry-1.docker.io/fsprojects/ifsharp

cgravill commented 5 years ago

That's great and it looks like the .NET Core SDK is now working correctly on Travis too!

dsyme commented 5 years ago

All working, images here https://cloud.docker.com/u/fsprojects/repository/registry-1.docker.io/fsprojects/ifsharp