How to add native docker-compose to official Jenkins image

I am using official Jenkins image:

https://hub.docker.com/_/jenkins/

  • Expose and publish a port with specified host port number inside Dockerfile
  • Use Php in Docker Apache
  • Running Docker Image with AWS ECS
  • MySQL databases are gone when the docker container is shutdown
  • Docker proper redirect link
  • Docker container that depends on file in other container
  • I wonder which is the best approach to add native docker-compose to it. For a full continuous integration system I need Jenkins to start Gradle+docker+docker-compose applications but, unlike with Docker plugins, docker-image plugins for Gradle act just as docker-compose frontend, needing it to be native installed. I will then use simple shell scripts in Jenkins to run the docker-compose up commands before the tests.

    Note: Docker should be executed in a external Host, obviously, not locally as we are inside a docker already. I wonder if I can avoid installing the full Docker stack in the Jenkins docker image.

    Thanks for any ideas

  • How to link two containers using docker-compose
  • Docker-compose failed running a jar that read configuration from a file
  • How to tell Docker client location of Notary Server?
  • Docker Daemon connected to socket on :2375
  • Installing OpenSSH on the Alpine Docker Container
  • Unable to correct problems, you have held broken packages
  • One Solution collect form web for “How to add native docker-compose to official Jenkins image”

    docker-compose is right on the same level as docker-engine – so the host you want to run docker-images / containers on, need docker-engine, and if you want to run them using docker-compose, you need that on the host – that is best practise

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.