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

Update deployment and add version notice #77

Merged
merged 11 commits into from
Sep 7, 2023

Conversation

Shotgunosine
Copy link
Contributor

Addresses #76. docker pull bids/freesurfer, docker pull bids/freesurfer:v6, and docker pull bids/freesurfer:v6-${CIRCLETAG} will pull FreeSurfer 6.
docker pull bids/freesurfer:v7, and docker pull bids/freesurfer:v7-${CIRCLETAG} will pull FreeSurfer 7.

I've added a warning as well. If you're ok with this arrangment @Remi-Gau, I can also update the readme in this PR.

@Remi-Gau
Copy link
Contributor

Remi-Gau commented Sep 1, 2023

on second thought not sure that this naming won't be confusing for users

right now this would give something like:

docker pull bids/freesurfer:v6-7.4.1

Should we try something "simpler"?

docker pull bids/freesurfer:${FSversion}

with FSVersion that could be one of:

  • "6.0.1"
  • "7.4.1"

Or any version we decide to release

When we push to the default branch we release a

bids/freesurfer:${FSversion}_unstable for each FSversion

And for now latest matches "6.0.1"

And in 2024 it will match "7.4.1"

@Remi-Gau
Copy link
Contributor

Remi-Gau commented Sep 1, 2023

If we want to make sure we keep all the previous versions (preferable IMHO) then the release tag should be the date and we would have:

  • docker pull bids/freesurfer:7.4.1_202401

  • docker pull bids/freesurfer:7.4.1_202309

  • docker pull bids/freesurfer:7.4.1 would give you the latest release of freesurfer 7.4.1

  • docker pull bids/freesurfer:6.0.1_202401

  • docker pull bids/freesurfer:6.0.1_202309

  • docker pull bids/freesurfer:6.0.1 would give you the latest release of freesurfer 6.0.1

  • docker pull bids/freesurfer and - docker pull bids/freesurfer:latest would give you latest of 6.0.1 for now

@Shotgunosine
Copy link
Contributor Author

Happy to have release tag as the date. I just don't know if we want to name the Freesurfer 6 and Freesurfer 7 versions with the whole version number. That implies that we're going to continue supporting multiple Freesurfer 7 versions at the same time. How about as a compromise we have the following:

  • docker pull bids/freesurfer:7.4.1_202401

  • docker pull bids/freesurfer:7.4.1_202309

  • docker pull bids/freesurfer:7 would give you the latest release of Freesurfer 7

  • docker pull bids/freesurfer:6.0.1_202401

  • docker pull bids/freesurfer:6.0.1_202309

  • docker pull bids/freesurfer:6 would give you the latest release of freesurfer 6

  • docker pull bids/freesurfer and - docker pull bids/freesurfer:latest would give you latest of 6.0.1 for now

@Remi-Gau
Copy link
Contributor

Remi-Gau commented Sep 7, 2023

That implies that we're going to continue supporting multiple Freesurfer 7 versions at the same time

good point
as long we have what FS version is in a given image I am totally OK making it clear we will NOT maintain all possible FS versions

.circleci/config.yml Outdated Show resolved Hide resolved
@Remi-Gau
Copy link
Contributor

Remi-Gau commented Sep 7, 2023

OK good with me merging this one

@Remi-Gau Remi-Gau merged commit 62eb276 into bids-apps:master Sep 7, 2023
1 check passed
@Shotgunosine
Copy link
Contributor Author

Alright, if you give it a date based version tag it should deploy containers the way you wanted.

@Remi-Gau Remi-Gau mentioned this pull request Sep 7, 2023
@bpinsard
Copy link

bpinsard commented Sep 8, 2023

It seems that it didn't run the deploy step to dockerhub, I cannot see the tags. Is that expected?

@Remi-Gau
Copy link
Contributor

Remi-Gau commented Sep 8, 2023

yeah it is because I did not make a release, let me fix that

@bpinsard
Copy link

bpinsard commented Sep 8, 2023

Cool thanks!

@bpinsard
Copy link

bpinsard commented Sep 8, 2023

Looks like deploy is broken with the tags renaming.

@Shotgunosine
Copy link
Contributor Author

Shotgunosine commented Sep 8, 2023

@Remi-Gau, looks like an easy fix, just need to add:
docker tag "${user_name}/${repo_name}" "${user_name}/${repo_name}:latest"
before line 212 of config.yml

Do you want to just make that correction and push it directly to master?

@Remi-Gau
Copy link
Contributor

Remi-Gau commented Sep 8, 2023

will take care of it

@bpinsard
Copy link

gentle ping :D

@Remi-Gau
Copy link
Contributor

gentle ping :D

@bpinsard

new version released are on dockerhub: https://hub.docker.com/r/bids/freesurfer/tags

@bpinsard
Copy link

Thanks a lot! Will deploy it asap.

@SamGuay
Copy link

SamGuay commented Sep 17, 2023

Amazing, thank you @Remi-Gau, I was patiently waiting for this release as well!

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.

None yet

4 participants