bnbalsamo / microservice_repository_orchestration

*ARCHIVED* - Dockerized microservice orchestration for an archival digital repository
GNU General Public License v3.0
0 stars 1 forks source link

ARCHIVED

This repository is archived. I am no longer actively developing/supporting it.

If you are interested in discussing the contents of this repository feel free to contact me via the contact details provided in the "Author" section below.


This repository contains the necessary files to spin up the core microservices for an archival digital repository.

Build Status

These microservices are still in varying stages of development, changes may occur without warning.

It relies on the following projects:

The accutil is built to ingest files into the microservice systems.

Swarm Setup Instructions

Prerequisites/Notes

  1. Optional: Configure Swarm Visualizer If you'd like to have the swarm visualizer for pretty graphics running at $SWARM_HOST:8080

    $ docker run -it -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock dockersamples/visualizer
  2. Configure the Registry Manually fire up a docker image registry. If you already have a registry, instead set the $REGISTRY environmental variable.

    $ docker service create --name registry --publish 5000:5000 registry:2
  3. Clone the Git Repository

    $ git clone https://github.com/bnbalsamo/microservice_repository_orchestration.git
  4. Navigate into the Repository Root

    $ cd microservice_repository_orchestration
  5. Clone the Other Relevant Git Repositories

    $ ./clone_repos.sh
  6. Edit Settings in the vars.env File

    • !! NOTE: This file is going to get sourced in later scripts. !!

Use whatever editor you like, the file is plaintext. Nano example provided:

$ nano vars.env
  1. Build the YML for Docker Compose

    $ ./build_swarm_yml.sh
  2. Build the Container Images

    $ docker-compose -f swarm_stack.yml build
  3. Push the Built Images to the Docker Repository

    $ docker-compose -f swarm_stack.yml push
  4. Deploy the Services to the Swarm

    $ docker stack deploy --compose-file swarm_stack.yml repository_swarm

    You should now be able to navigate to $SWARM_HOST and see the interface

Compose Setup Instructions

Prerequisites/Notes

  1. Clone the Git Repository

    $ git clone https://github.com/bnbalsamo/microservice_repository_orchestration.git
  2. Navigate into the Repository Root

    $ cd microservice_repository_orchestration
  3. Clone the Other Relevant Git Repositories

    $ ./clone_repos.sh
  4. Edit Settings in the vars.env File

    • !! NOTE: This file is going to get sourced in later scripts. !!

Use whatever editor you like, the file is plaintext. Nano example provided:

$ nano vars.env
  1. Build the YML for Docker Compose

    $ ./build_compose_yml.sh
  2. Build the Container Images

    $ docker-compose -f docker-compose.yml build
  3. Start the containers

    $ docker-compose -f docker-compose.yml up

    You should now be able to navigate to $UNIFIER_HOST:$UNIFIER_EXTERNAL_PORT and see the interface