<commit_before># Amalgam8 examples

Sample microservice-based applications and local sandbox environment for Amalgam8

## Table of Contents

* [Overview](#overview)
* [Amalgam8 on Kubernetes (local)](#local-k8s)
* [Amalgam8 on Marathon/Mesos (local)](#local-marathon)
* [Amalgam8 on Google Compute Cloud](#gcp)

## Overview <a id="overview"></a>

This project includes a number of Amalgam8 sample programs, and a preconfigured environment to allow
you to easily run, build, and experiment with the provided samples.

The following samples are available for Amalgam8:

* **Helloworld** is a single microservice app that demonstrates how to route traffic to different versions of the same microservice
* **Bookinfo** is a multiple microservice app used to demonstrate and experiment with several Amalgam8 features

There is an end-to-end
[test & deploy demo](https://github.com/amalgam8/examples/blob/master/demo-script.md)
that you can try out on your local vagrant box.

In addition, the scripts are generic enough such that you can easily deploy
them to any kubernetes based environment such as OpenShift, Google Cloud
Platform, Azure, etc. See the last section of this README for details on
how to deploy Amalgam8 on Google Cloud Platform.

## Amalgam8 with Kubernetes - local environment <a id="local-k8s"></a>

The repository's root directory includes a Vagrant file that provides an environment with everything installed and ready to build/run the samples:

* [Go](http://golang.org/)
* [Docker](http://www.docker.com/)
* [Kubernetes](http://kubernetes.io/)
* [Amalgam8 CLI](https://github.com/amalgam8/controller/tree/master/cli)

To get started, install a recent version of Vagrant and follow the steps below.

1. Clone the Amalgam8 repos and start the vagrant environment.

  ```
    git clone <EMAIL>:amalgam8/examples.git
    git clone <EMAIL>:amalgam8/registry.git
    git clone <EMAIL>:amalgam8/controller.git
    git clone <EMAIL>:amalgam8/sidecar.git

    cd examples
    vagrant up<commit_msg>add gremlin SDK to list of requirements<commit_after># Amalgam8 examples

Sample microservice-based applications and local sandbox environment for Amalgam8

## Table of Contents

* [Overview](#overview)
* [Amalgam8 on Kubernetes (local)](#local-k8s)
* [Amalgam8 on Marathon/Mesos (local)](#local-marathon)
* [Amalgam8 on Google Compute Cloud](#gcp)

## Overview <a id="overview"></a>

This project includes a number of Amalgam8 sample programs, and a preconfigured environment to allow
you to easily run, build, and experiment with the provided samples.

The following samples are available for Amalgam8:

* **Helloworld** is a single microservice app that demonstrates how to route traffic to different versions of the same microservice
* **Bookinfo** is a multiple microservice app used to demonstrate and experiment with several Amalgam8 features

There is an end-to-end
[test & deploy demo](https://github.com/amalgam8/examples/blob/master/demo-script.md)
that you can try out on your local vagrant box.

In addition, the scripts are generic enough such that you can easily deploy
them to any kubernetes based environment such as OpenShift, Google Cloud
Platform, Azure, etc. See the last section of this README for details on
how to deploy Amalgam8 on Google Cloud Platform.

## Amalgam8 with Kubernetes - local environment <a id="local-k8s"></a>

The repository's root directory includes a Vagrant file that provides an environment with everything installed and ready to build/run the samples:

* [Go](http://golang.org/)
* [Docker](http://www.docker.com/)
* [Kubernetes](http://kubernetes.io/)
* [Amalgam8 CLI](https://github.com/amalgam8/controller/tree/master/cli)
* [Gremlin SDK](https://github.com/ResilienceTesting/gremlinsdk-python)

To get started, install a recent version of Vagrant and follow the steps below.

1. Clone the Amalgam8 repos and start the vagrant environment.

  ```
    git clone <EMAIL>:amalgam8/examples.git
    git clone <EMAIL>:amalgam8/registry.git
    git clone <EMAIL>:amalgam8/controller.git
    git clone <EMAIL>:amalgam8/sidecar.git

    cd examples
    vagrant up
{'fraction_non_alphanumeric': 0.08799222168206125, 'fraction_numerical': 0.010209042294603793, 'mean_word_length': 4.779494382022472, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2415046', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1164, 'n_words': 475}