Skip to content

Conversation

@bk2204
Copy link
Member

@bk2204 bk2204 commented Jun 23, 2022

Update the Dockerfiles to allow building with Asciidoctor. Note that we don't remove the use of ronn in the Debian Dockerfiles to prevent CI from failing before the git-lfs/git-lfs changes are merged.

bk2204 added 2 commits June 23, 2022 17:26
We're going to start building Asciidoctor as a gem in the future, and it
won't work on the ancient version of Ruby in CentOS 7.  Use the Software
Collections repository to get Ruby 3.0 and then invoke our script with
it in the path.
We'd like to use AsciiDoc to build our documentation in the future, so
let's install Asciidoctor to do that for us.
@bk2204 bk2204 requested a review from a team June 23, 2022 18:04
@bk2204 bk2204 merged commit 6b21ada into git-lfs:master Jun 23, 2022
@bk2204 bk2204 deleted the asciidoc branch June 23, 2022 20:33
chrisd8088 added a commit to chrisd8088/build-dockers that referenced this pull request Dec 27, 2022
In commit 833d085 of PR git-lfs#47 we
updated our Debian Dockerfiles so they would install the asciidoctor
package, to allow our primary Git LFS project to migrate from ronn
to asciidoctor.

Now that that migration is complete, as of PR git-lfs/git-lfs#5054,
we can update our Debian Dockerfiles again so they no longer install
any ronn packages.
chrisd8088 added a commit to chrisd8088/git-lfs that referenced this pull request Dec 27, 2022
In commit git-lfs/build-dockers@544e07e
of PR git-lfs/build-dockers#47 we updated our CentOS 7 Dockerfile to
install Ruby 3.0 using the rh-ruby30-{ruby,build} packages and then run
our CentOS build script with that version of Ruby as the default.  We made
this change to support our use of Asciidoctor in preference to ronn,
which was completed in PR git-lfs#5054, and as part of that PR, in commit
db9a821 we replaced our installation of
ronn with one of asciidoctor in our rpm/build_rpms.bsh script.

As a result, none of our CentOS or Rocky Linux container image builds
now rely on Ruby 2.x, so we can remove the code which installed that
version.

We can also remove the related code which used to install Ruby 2.x when
an even older version was the default, along with our local ruby.spec
file for Ruby 2.2.2.

Finally, we can remove the code which installed the rubygems-devel
package on CentOS 8 because that is taken care of by the corresponding
Dockerfile in our git-lfs/build-dockers project, which, like the
one for Rocky Linux 9, installs ruby, ruby-devel, and rubygems-devel.
chrisd8088 added a commit to chrisd8088/build-dockers that referenced this pull request Dec 27, 2022
In commit 833d085 of PR git-lfs#47 we
updated our Debian Dockerfiles so they would install the asciidoctor
package, to allow our primary Git LFS project to migrate from ronn
to asciidoctor.

Now that that migration is complete, as of PR git-lfs/git-lfs#5054,
we can update our Debian Dockerfiles again so they no longer install
any ronn packages.
chrisd8088 added a commit to chrisd8088/git-lfs that referenced this pull request Dec 27, 2022
In commit git-lfs/build-dockers@544e07e
of PR git-lfs/build-dockers#47 we updated our CentOS 7 Dockerfile to
install Ruby 3.0 using the rh-ruby30-{ruby,build} packages and then run
our CentOS build script with that version of Ruby as the default.  We made
this change to support our use of Asciidoctor in preference to ronn,
which was completed in PR git-lfs#5054, and as part of that PR, in commit
db9a821 we replaced our installation of
ronn with one of asciidoctor in our rpm/build_rpms.bsh script.

As a result, none of our CentOS or Rocky Linux container image builds
now rely on Ruby 2.x, so we can remove the code which installed that
version.

We can also remove the related code which used to install Ruby 2.x when
an even older version was the default, along with our local ruby.spec
file for Ruby 2.2.2.

Finally, we can remove the code which installed the rubygems-devel
package on CentOS 8 because that is taken care of by the corresponding
Dockerfile in our git-lfs/build-dockers project, which, like the
one for Rocky Linux 9, installs ruby, ruby-devel, and rubygems-devel.
chrisd8088 added a commit to chrisd8088/git-lfs that referenced this pull request Dec 28, 2022
In commit git-lfs/build-dockers@544e07e
of PR git-lfs/build-dockers#47 we updated our CentOS 7 Dockerfile to
install Ruby 3.0 using the rh-ruby30-{ruby,build} packages and then run
our CentOS build script with that version of Ruby as the default.  We made
this change to support our use of Asciidoctor in preference to ronn,
which was completed in PR git-lfs#5054, and as part of that PR, in commit
db9a821 we replaced our installation of
ronn with one of asciidoctor in our rpm/build_rpms.bsh script.

As a result, none of our CentOS or Rocky Linux container image builds
now rely on Ruby 2.x, so we can remove the code which installed that
version.

We can also remove the related code which used to install Ruby 2.x when
an even older version was the default, along with our local ruby.spec
file for Ruby 2.2.2.

Finally, we can remove the code which installed the rubygems-devel
package on CentOS 8 because that is taken care of by the corresponding
Dockerfile in our git-lfs/build-dockers project, which, like the
one for Rocky Linux 9, installs ruby, ruby-devel, and rubygems-devel.
chrisd8088 added a commit to chrisd8088/git-lfs that referenced this pull request Dec 28, 2022
In commit git-lfs/build-dockers@544e07e
of PR git-lfs/build-dockers#47 we updated our CentOS 7 Dockerfile to
install Ruby 3.0 using the rh-ruby30-{ruby,build} packages and then run
our CentOS build script with that version of Ruby as the default.  We made
this change to support our use of Asciidoctor in preference to ronn,
which was completed in PR git-lfs#5054, and as part of that PR, in commit
db9a821 we replaced our installation of
ronn with one of asciidoctor in our rpm/build_rpms.bsh script.

As a result, none of our CentOS or Rocky Linux container image builds
now rely on Ruby 2.x, so we can remove the code which installed that
version.

We can also remove the related code which used to install Ruby 2.x when
an even older version was the default, along with our local ruby.spec
file for Ruby 2.2.2.

Finally, we can remove the code which installed the rubygems-devel
package on CentOS 8 because that is taken care of by the corresponding
Dockerfile in our git-lfs/build-dockers project, which, like the
one for Rocky Linux 9, installs ruby, ruby-devel, and rubygems-devel.
chrisd8088 added a commit to chrisd8088/build-dockers that referenced this pull request Dec 28, 2022
In commit 833d085 of PR git-lfs#47 we
updated our Debian Dockerfiles so they would install the asciidoctor
package, to allow our primary Git LFS project to migrate from ronn
to asciidoctor.

Now that that migration is complete, as of PR git-lfs/git-lfs#5054,
we can update our Debian Dockerfiles again so they no longer install
any ronn packages.
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.

2 participants