Skip to content

Move docker images used in CI to stanorg account#1017

Merged
serban-nicusor-toptal merged 13 commits intomasterfrom
jenkins/move-docker-imgs
Nov 2, 2021
Merged

Move docker images used in CI to stanorg account#1017
serban-nicusor-toptal merged 13 commits intomasterfrom
jenkins/move-docker-imgs

Conversation

@serban-nicusor-toptal
Copy link
Copy Markdown
Contributor

@serban-nicusor-toptal serban-nicusor-toptal commented Oct 27, 2021

Submission Checklist

  • Run unit tests
  • Documentation
    • If a user-facing facing change was made, the documentation PR is here:
    • OR, no user-facing changes were made

Release notes

Replaces all references to Docker Hub for andrjohns images with stanorg.
#974

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

@WardBrian
Copy link
Copy Markdown
Member

@andrjohns can you give this a once over?

@serban-nicusor-toptal I think we should edit a file in src/ to trigger a build artificially. Maybe just edit a comment in src/stanc/stan.ml by adding or deleting a newline or something

@andrjohns
Copy link
Copy Markdown
Contributor

Nothing stands out to me, so no complaints from my end

@WardBrian
Copy link
Copy Markdown
Member

Just a question, really, because I don’t understand docker that well: would it save time to build the docket instances we use once and upload them in the same place? It seems like we’re always rebuilding the Windows instance for example

@andrjohns
Copy link
Copy Markdown
Contributor

Once we had the images transferred I was also going to suggest building the other images rather than using dockerfiles. The Opam setup and dependencies definitely takes far longer than downloading the image. So +1 from me on that suggestion

@WardBrian
Copy link
Copy Markdown
Member

Glad my suggestion wasn’t too crazy. We will need to rebuild the images if/when we update OCaml and our dependencies, but I think that’s more like a once every couple years problem

@serban-nicusor-toptal
Copy link
Copy Markdown
Contributor Author

I'll build and push the rest to stanorg.
Does it make any sense to set up and CI to build the images when there are changes to dockerfile/windows for example? I would do it so we have less to worry about.

@WardBrian
Copy link
Copy Markdown
Member

If we’re building the images would we still want to maintain a docker folder here? I think just the scripts would be enough them?

@serban-nicusor-toptal
Copy link
Copy Markdown
Contributor Author

I would say we need it as it defines the build steps of the docker build process, else I would either separate them into another repo or template them on the fly.

@WardBrian
Copy link
Copy Markdown
Member

Feels like they could live in the ci-scripts repo if we moved to that system. It can be a separate PR though

@serban-nicusor-toptal
Copy link
Copy Markdown
Contributor Author

debian and debian-windows pushed to Docker Hub.
If these images are used only in the CI, we can surely move them to ci-scripts ( will do another PR ).

@WardBrian
Copy link
Copy Markdown
Member

Great!

The follow on PR can also remove the comment in stanc.ml which is great.

@WardBrian
Copy link
Copy Markdown
Member

Any merit to leaving that comment in during the merge to test all the non-x86 binaries?

@serban-nicusor-toptal
Copy link
Copy Markdown
Contributor Author

serban-nicusor-toptal commented Nov 1, 2021

Well we can do it to be extra sure that everything works right after the merge. Do we remove it later in a PR ?
Also, is there something else needed for this PR ?

@WardBrian
Copy link
Copy Markdown
Member

If we're doing a follow on PR to remove the dockerfiles (them being moved to ci-scripts) we can remove it then, yes. Otherwise this seems good to me.

@serban-nicusor-toptal serban-nicusor-toptal merged commit bfca41a into master Nov 2, 2021
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.

3 participants