checkstyle / contribution

some useful sources that should not stay in main repo but it is good to host them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update checkstyle/jdk-11-groovy-git-mvn to use latest version of maven, git, and groovy

Vyom-Yadav opened this issue · comments

We aim to run groovy scripts in a docker container to utilize the latest groovy version.
Main repo issue: checkstyle/checkstyle#12646

File to be updated:

devops/docker/no-exception-build-image/jdk-11-groovy-git-mvn/Dockerfile

Hi @Vyom-Yadav is this issue still live ?

@Vyom-Yadav Can you guide me about this issue and what actually to work on.

@Vyom-Yadav I have tried to update the packages in the above file, can you check that if it works.

@Shubhamrajgithub You need to create a pull request.

Did we addressed this issue in your latest container?

We did not updated groovy to latest , and we actually downgraded to older version , details at #810 (comment)

From that issue:

looks like we went to older version of groovy due to Ubuntu usage.

@nrmancuso , @relentless-pursuit, can you explain a bit more?

f059eb4#diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47R54 we downgraded 3.0.9 to 2.4.21

Since we are using Ubuntu, it was easier to use the version of groovy that is included; we needed to unblock maven version update in main repo. We can do a separate battle with custom groovy version in scope of this issue. We can do manual installation, or try to layer docker images if that is easier and doesn’t bloat the image.

https://circleci.com/developer/images/image/cimg/base

Software:
build-essential 12.9ubuntu3, curl 7.81.0, docker 24.0.6, docker-compose /usr/local/bin/docker-compose Docker Compose version v2.23.0 v2.23.0, dockerize v0.8.0, git 2.42.0, jq 1.6, ubuntu 22.04.3 LTS, wget 1.21.2

Looks like they stick with Ubuntu 22, lts.

I don't understand why we don't use official groovy image as base and just install maven on those? Won't that sort our problem?

We do not need latest groovy for sure :).

Let's close this issue then.