Service Generation Installation
Introduction
In order to use the Microservice Generation Feature (BETA), you need to install several product components. This page guides you through the different installation processes and helps you setup your environment for microservice generation.
Installation Overview
Bundle |
Component |
Installation guide |
Usage |
Base components |
Consul |
You need to set up the base components to be able to create modules, services and classes. |
|
Gateway Service |
Dispatcher |
You can use Dispatcher to hide internal services from the outside world. |
|
Generation Service |
Brewer |
You need Brewer to generate microservices out of your ApiOmat classes. |
|
Hosting Service |
Innkeeper |
You need Innkeeper to host the service artifact files. |
|
Deployment Service |
Executor (and Nomad) |
You can use Executor to deploy and start your generated microservices. Additionally, you will have to install Nomad (see Executor installation page for further explanation). |
|
Configuration Service |
Gearhead |
Gearhead is used to externalize the configuration of your generated services. |
|
Authentication Service |
Bouncer |
You can use Bouncer as a central point for authentication, as well as identity and access management. |
Preparation
You may install all the components above using a single command. First, you need to ensure that all the requirements of the components are fulfilled. The requirements of each component can be found on its installation page.
In detail, this means you need to install the following external components or add the required repositories:
-
Add ApiOmat repository:Debian/Ubuntu
Debian/Ubuntuapt-get install apt-transport-https
wget -O - https:
//repo.apiomat.com/yambas/rest/web/Key/LIVE/apiomat-archive-keyring.asc | sudo apt-key add -
echo
"deb https://<USERNAME>:<PASSWORD>@repo.apiomat.com/yambas/rest/web/Repo/LIVE/deb ./"
| sudo tee /etc/apt/sources.list.d/apiomat.list
apt-get update
Centos/Oracle/RedHat
Centos/Oracle/RedHatecho "[apiomat]
name=ApiOmat
baseurl=https:
//<USERNAME>:<PASSWORD>@repo.apiomat.com/yambas/rest/web/Repo/LIVE/rpm
gpgcheck=
0
enabled=
1
" > /etc/yum.repos.d/apiomat.repo
yum update
-
Add PHP 7 / 8 repository:Ubuntu
Ubuntuadd-apt-repository ppa:ondrej/php -y
apt-get update
Debian
Debianapt install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https:
//packages.sury.org/php/apt.gpg
sh -c
'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt update
CentOS 7.X
CentOS 7.Xyum remove php*
yum install https:
//dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http:
//rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh https:
//mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum update
One-Line Command Installation
After preparation, you can install all the components with the following command:Debian/Ubuntu
apt-get install aom-consul=
1.7
.
2
aom-nomad=
0.11
.
0
aom-explorer=
1.4
.
0
apiomat-analytics=
1.7
.
0
aom-dispatcher=
1.10
.
0
aom-innkeeper=
2.2
.
0
aom-brewer=
2.1
.
1
aom-executor=
1.3
.
0
aom-gearhead=
2.0
.
0
aom-bouncer=
1.2
.
0
apiomat-yambas=
3.8
.
4
apiomat-dashboard=
3.8
.
2
Centos/Oracle/RedHat
yum -y --nogpgcheck --enablerepo=remi-php81 install aom-consul-
1.7
.
2
aom-nomad-
0.11
.
0
aom-explorer-
1.4
.
0
apiomat-analytics-
1.7
.
0
aom-dispatcher-
1.10
.
0
aom-innkeeper-
2.2
.
0
aom-brewer-
2.1
.
1
aom-executor-
1.3
.
0
aom-gearhead-
2.0
.
0
aom-bouncer-
1.2
.
0
apiomat-yambas-
3.8
.
4
apiomat-dashboard-
3.8
.
2
After the installation is finished, you need to do some configuration in order to run the components.