Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

development: Commands CLI #1

Open
armand1m opened this issue Dec 3, 2016 · 0 comments
Open

development: Commands CLI #1

armand1m opened this issue Dec 3, 2016 · 0 comments

Comments

@armand1m
Copy link
Owner

armand1m commented Dec 3, 2016

Proposal

Create a CLI for handling the microservices environment state

Why we need this

To create this environment, you need to:

  • Create a directory.
  • cd directory
  • git init
  • git submodule add https://github.com/armand1m/microservices-compose-utils ./commands
  • git submodule add https://github.com/armand1m/core-services.
  • Create a docker-compose.yml file with this content:
version: '2'
services:
  consul:
    extends:
      file: ./core-services/services.yml
      service: consul_service

  gateway:
    extends:
      file: ./core-services/services.yml
      service: fabio_service
    links:
      - consul

To add a service to the recently created environment, you need to:

  • git clone https://github.com/armand1m/microservice-barebone ./my-service
  • cd ./my-service
  • git submodule add https://github.com/<user>/<service-name>
  • Edit the docker-compose.yml to extend and run the added service. Let's say you are adding armand1m/bucket-service. The file would look like this after the modifications:
  service:
    extends:
      file: ./bucket-service/service.yml
      service: service
    volumes:
      - ./data:/data
    depends_on:
      - consul
    links:
      - consul

  consul:
    extends:
      file: ./core-services/services.yml
      service: consul_service

  gateway:
    extends:
      file: ./core-services/services.yml
      service: fabio_service
    links:
      - consul
@armand1m armand1m changed the title (feature): Commands CLI feature: Commands CLI Mar 9, 2017
@armand1m armand1m changed the title feature: Commands CLI development: Commands CLI Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant