Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.66 KB

Monorepo-Readme.md

File metadata and controls

58 lines (49 loc) · 1.66 KB

Intel® SecL-DC

This repository is planned to be monorepo to hold all services and libraries.

System Requirements

  • RHEL 8.4 or ubuntu 20.04
  • Epel 8 Repo
  • Proxy settings if applicable

Software requirements

  • git
  • makeself
  • go version == go1.18.8

Step By Step Build Instructions

Install required shell commands

Please make sure that you have the right http proxy settings if you are behind a proxy

export HTTP_PROXY=http://<proxy>:<port>
export HTTPS_PROXY=https://<proxy>:<port>

Install tools from yum

$ sudo yum install -y wget git makeself

Install go version = go1.18.8

Services requires Go version 1.18.8 that has support for go modules. The build was validated with the latest version go1.18.8 of go. It is recommended that you use go1.18.8 version of go. You can use the following to install go.

wget https://dl.google.com/go/go1.18.8.linux-amd64.tar.gz
tar -xzf go1.18.8.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

Generation of Binary

Use command make <component_name> to build component and make <component_name>-installer to generate binary. Example:

$ make hvs
% make hvs-installer
% make ihub-installer

Swagger Document Creation

Use command make swagger to generate swagger/openapi documentation for APIs,

Pre-requisite:

$ wget https://github.com/go-swagger/go-swagger/releases/download/v0.21.0/swagger_linux_amd64 -O /usr/local/bin/swagger
$ chmod +x /usr/local/bin/swagger

Command to generate swagger documentation:

$ make swagger