Trying to use the warnings-ng-plugin-devenv

24 views
Skip to first unread message

Simon Matthews

unread,
Jun 1, 2022, 7:00:51 PM6/1/22
to Jenkins Developers
I forked the warnings-ng-plugin-devenv and cloned it locally. Then I ran  ./clone-repos.sh, which completed successfully, however, when I try to run "jenkins.sh", I get:
alpine: Pulling from jenkins/jenkins
Digest: sha256:a7dd40264e04592ba0d759f7d75fb52fdd5f0fcb9ae5939fef7cbf23b4a6a944
Status: Image is up to date for jenkins/jenkins:alpine
docker.io/jenkins/jenkins:alpine
docker: 'compose' is not a docker command.
See 'docker --help'
Running docker compose with user ID 1010:441
docker: 'compose' is not a docker command.
See 'docker --help'

This is on an unbuntu 22.04 with "docker-compose" installed. I think the command should be:
docker-compose build
not docker compose build
Simon

Gavin Mogan

unread,
Jun 1, 2022, 7:27:12 PM6/1/22
to Jenkins Developers
Docker compose v2 is a docker plugin instead of a standalone CLI.

I personally recommend upgrading the cli as its way faster but you could probably edit the scripts to the gym he hypenated one


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6dedab15-7c78-48d6-89c4-6bc97b4b9e26n%40googlegroups.com.

Ullrich Hafner

unread,
Jun 2, 2022, 5:10:44 AM6/2/22
to JenkinsCI Developers
Yes, the script is from the time before the integration of docker-compose into docker. 

I tried to replace docker-compose with docker compose in the script but it seems that the implementation is different and does not update the Jenkins version to the latest one so I finally did not change it. If you find a way to make that working without docker-compose please let me know!

Gavin Mogan

unread,
Jun 2, 2022, 12:31:55 PM6/2/22
to Jenkins Developers
"docker compose" is v2 which is the version now documented @
https://docs.docker.com/compose/install/
"docker-compose" is v1 and python, and no longer documented, and
probably soon the package managers will update
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/C353BAFF-38D1-4DCA-A7EF-CB7413E7B108%40gmail.com.
Reply all
Reply to author
Forward
0 new messages