From af0c00a44dce6f784bf4af5f934165c1caf2fe3a Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 7 Aug 2015 09:12:04 -0700 Subject: [PATCH] Remove docker-compose container Removing docker-compose entirely since config-internal is being removed. Change-Id: Idc0e9c8d2bdd7b90ddc6b4b147dfd31e1a404583 Partially-Implements: blueprint remove-config-internal --- docker/centos/binary/docker-compose/README.md | 108 ------------------ docker/fedora/binary/docker-compose | 1 - docker/rhel/binary/docker-compose | 1 - 3 files changed, 110 deletions(-) delete mode 100644 docker/centos/binary/docker-compose/README.md delete mode 120000 docker/fedora/binary/docker-compose delete mode 120000 docker/rhel/binary/docker-compose diff --git a/docker/centos/binary/docker-compose/README.md b/docker/centos/binary/docker-compose/README.md deleted file mode 100644 index 38b17a16a5..0000000000 --- a/docker/centos/binary/docker-compose/README.md +++ /dev/null @@ -1,108 +0,0 @@ -Docker Compose (ie Fig) -======================= - -[![wercker status](https://app.wercker.com/status/d5dbac3907301c3d5ce735e2d5e95a5b/s/master "wercker status")](https://app.wercker.com/project/bykey/d5dbac3907301c3d5ce735e2d5e95a5b) - -Fast, isolated development environments using Docker. - -Define your app's environment with Docker so it can be reproduced anywhere: - - FROM python:2.7 - COPY . /code - WORKDIR /code - RUN pip install -r requirements.txt - CMD python app.py - -Define the services that make up your app so they can be run together in an isolated environment: - -```yaml -web: - build: . - links: - - db - ports: - - "8000:8000" - - "49100:22" -db: - image: postgres -``` - -(No more installing Postgres on your laptop!) - -Then type `docker-compose up`, and Compose will start and run your entire app. - -There are commands to: - - - start, stop and rebuild services - - view the status of running services - - tail running services' log output - - run a one-off command on a service - -Installation and documentation ------------------------------- - -Full documentation is available on [Docker's website](https://docs.docker.com/compose/). - -Use wtih Kolla --------------- - -Docker-compose is being used to compose one or more co-located containers know -as [container sets][]. docker-compose is deployed as a container from the -kollaglue [repository][] to Kolla nodes using the Heat orchestration -[template]. The docker-compose container creates a host mount to communicate -with the docker api over a unix socket. The docker engine could be configured -to expose the API over TCP and may be evaluated for future use. An additional -host mount to /opt/docker-compose for docker-compose to read the .yml file. -This allows for seperating the docker-compose code from the data/configuration -information. - -Either create or modify the existing docker-compose.yml file at -/opt/docker-compose. Here is a simple example of a single container for -RabbitMQ: - -``` -rabbitmq: - image: kollaglue/fedora-rdo-rabbitmq - environment: - RABBITMQ_NODENAME: rabbit01 - RABBITMQ_USER: rabbit - RABBITMQ_PASS: password - net: "host" - ports: - - "5672:5672" - - "15672:15672" - - "4369:4369" - - "25672:25672" - privileged: true -``` - -Then run up to instantiate the container-set: -``` -$ docker run --privileged -v /opt/docker-compose:/opt/docker-compose -v /var/run/docker.sock:/var/run/docker.sock kollaglue/fedora-rdo-docker-compose up -d -``` -The -d flag tells docker-compose to run the container set in daemonized mode. - -[container sets]: https://github.com/stackforge/kolla/blob/master/specs/containerize-openstack.rst -[template]: https://github.com/stackforge/kolla/tree/master/devenv -[repository]: https://registry.hub.docker.com/u/kollaglue/fedora-rdo-docker-compose/ - -Contribute to Kolla Fig ------------------------ - -Clone the repo: -``` -git clone https://github.com/docker/compose.git -``` -Set the following ENVs in the project's Dockerfile: -``` -ENV COMPOSE_PROJECT_NAME kollaglue-fedora-rdo -ENV COMPOSE_FILE /opt/docker-compose/docker-compose.yml -``` -Hack as needed, then build the image: -``` -$ docker build -t kollaglue/kollaglue-fedora-rdo-docker-compose . -``` -Push the image to the kollaglue repo -``` -$ docker push kollaglue/fedora-rdo-docker-compose:latest -``` diff --git a/docker/fedora/binary/docker-compose b/docker/fedora/binary/docker-compose deleted file mode 120000 index 287f1cd132..0000000000 --- a/docker/fedora/binary/docker-compose +++ /dev/null @@ -1 +0,0 @@ -../../centos/binary/docker-compose \ No newline at end of file diff --git a/docker/rhel/binary/docker-compose b/docker/rhel/binary/docker-compose deleted file mode 120000 index 287f1cd132..0000000000 --- a/docker/rhel/binary/docker-compose +++ /dev/null @@ -1 +0,0 @@ -../../centos/binary/docker-compose \ No newline at end of file