Sign inSign up

elastest/epm-adapter-docker-compose

By elastest

•Updated over 5 years ago

A docker-compose adapter for the EPM to support docker as a virtualization technology.

Image
0

100K+

elastest/epm-adapter-docker-compose repository overview

License badge Docker badge

Copyright © 2017-2019 ElasTest⁠. Licensed under Apache 2.0 License⁠.

⁠elastest/epm-adapter-docker-compose

⁠What is epm-adapter-docker-compose?

The docker-compose adapter compliant to the EPM is used to launch docker-compose instances. The docker-compose file is passed along with an additional Metadata file in a package.

⁠Quick reference

⁠What's on this image?

The adapter is implemented using python2.7 and the docker-compose, Docker and gRPC libraries.

⁠How to use this image

To start the adapter in a docker container run this command:

docker run -v /var/run/docker.sock:/var/run/docker.sock -p 50051:50051 --expose 50051 -i -t epm-adapter-docker-compose

If you want to start both the Elastest Platform Manager and the Docker-Compose client you can use the docker-compose file below:

version: '3'
services:
    elastest-platform-manager:
        container_name: elastest-epm
        image: elastest/epm
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock:rw
        expose:
            - 8180
        ports:
            - 8180:8180
        networks:
            - elastest
    epm-adapter-docker-compose:
        container_name: elastest-epm-adapter-docker-compose
        image: elastest/epm-adapter-docker-compose
        entrypoint: python run.py --register-pop
        depends_on:
            - elastest-platform-manager
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock:rw
        expose: 
            - 50051
        ports:
            - 50051:50051
        networks:
            - elastest
networks:
    elastest:
        driver: bridge

This will create the docker container for both the adapter and the EPM and will also automatically register the adapter to the EPM, so you can start using them straight away.

The package has to be a tar file and has to have the following structure:

- Metadata.yaml #Simple metadata file that should include the name of the package
- docker-compose.yml #The docker-compose file

This is an example Metadata file:

name: example-name

⁠Dependencies (other containers or tools)

none

⁠Integration with other containers or tools)

none

Tag summary

Content type

Image

Digest

Size

445.9 MB

Last updated

over 5 years ago

docker pull elastest/epm-adapter-docker-compose:20210226