3.2.8 • Published 2 years ago

soajs.deployer v3.2.8

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
2 years ago

soajs.deployer

SOAJS deployer runs inside your docker image and helps you deploy from source code and run your application

SOAJS deployer paths:

PathDescription
/opt/soajs/soajs.deployerThe location of soajs deployer inside the image
/opt/soajs/soajs.deployer/deployerThe working directory
/opt/soajs/tmpthe temp directory that deployer use while executing

Environment variables

Source code repository

These environment variables works for Nodejs and Golang

NOTE: if provider is equal to bitbucket then the domain can by bitbucket.org for SaaS or the domain for your enterprise bitbucket installation

ENV VariableDescriptionDefaultExample
SOAJS_GIT_ACC_INFOA stringified JSON objectnull'{"token":null,"provider":"bitbucket","owner":"soajs","domain":"bitbucket.org"}'
SOAJS_GIT_REPO_INFOA stringified JSON objectnull'{"repo":"soajs.deployer.example.config","branch":"master","commit":null}'

Golang

The deployment path of golang source code is @/go/src/REPO where REPO is the value set @ SOAJS_GIT_REPO_INFO

Nodejs

The deployment path of nodejs source code is @/opt/soajs/node_modules/REPO where REPO is the value set @ SOAJS_GIT_REPO_INFO

ENV VariableDescriptionDefaultExample
SOAJS_SRV_MEMORYControle nodejs max_old_space_size the number of megabytes allowednull4096
SOAJS_SRV_MAINThe main file for nodejs application.app.js

Configuration repository

SOAJS deployer allows you to add a configuration content from a git repository. This repository has a working example https://github.com/soajs/soajs.deployer.example.config

if you end up adding your own nginx.con make sure you have teh following worker_processes 1; daemon off;

ENV VariableDescriptionDefaultExample
SOAJS_ENVThe environment where you are deployingdev
SOAJS_CONFIG_ACC_INFOA stringified JSON objectnull'{"token":null,"provider":"github","owner":"soajs","domain":"github.com"}'
SOAJS_CONFIG_REPO_INFOA stringified JSON objectnull'{"repo":"soajs.deployer.example.config","branch":"master","commit":null}'

NGINX

The configuration path of nginx is /etc/nginx/, if you have a custom location you can set the SOAJS_NX_LOC

The certificates path is /opt/soajs/certificates/ where you will find dhparam.pem fullchain.pem privkey.pem

Please note that there is no need to do any configuration regarding SSL, it is done automatically when you set SOAJS_SSL_CONFIG

ENV VariableDescriptionDefaultExample
SOAJS_GATEWAY_CONFIGA stringified JSON object. domainPrefix only needed for dashboard env to update the console UI configuration with SOAJS_EXTKEYnull'{"ip":"","port":"4000","domain:"api.mydomain.com","domainPrefix":"api"}'
SOAJS_SITES_CONFIGA stringified JSON objectnull'["git":{"token":null,"provider":"bitbucket","owner":"soajs","domain":"bitbucket.org","repo":"soajs.deployer.example.config","branch":"master","commit":null},"conf":{"domains:"www.mydomain.com", "mydomain.com","folder":"/"}]'
SOAJS_SSL_CONFIGA stringified JSON object. domains is an array of extra domains to create SSL certifications fornull'{"email":"me@ddd.com","redirect":true,domains":"www.d1.com","www.d2.com"}'
SOAJS_NX_LOCDo not set this if you do not know what you are doing/etc/nginx/
SOAJS_SSL_SECRETset this to true if you want to use secret to handle ssl, you must get a certificate and add these files fullchain-crt and private-keynot setlocation /opt/soajs/certificates/secret/
SOAJS_NX_API_DOMAIN_PREFIXto deploy console ui as standalonenot set

NGINX Console binary

ENV VariableDescriptionDefaultExample
SOAJS_GATEWAY_CONFIGA stringified JSON object. domainPrefix only needed for dashboard env to update the console UI configuration with SOAJS_EXTKEYnull'{"ip":"","port":"4000","domain:"api.mydomain.com","domainPrefix":"api"}'
SOAJS_NX_SITE_DOMAINThe domain for soajs console in case the binary image is usednull
SOAJS_SSL_CONFIGA stringified JSON object. domains is an array of extra domains to create SSL certifications fornull'{"email":"me@ddd.com","redirect":true,domains":"www.d1.com","www.d2.com"}'
SOAJS_EXTKEYThe tenant external key to usenull
SOAJS_NX_SITE_FOLDERused to point to a build foldernull'/build/'

SOAJS

ENV VariableDescriptionDefaultExample
SOAJS_ENVThe environment where you are deployingdevdev
SOAJS_PROFILE_LOCThe profile location. this is needed when you deploy a soajs service/opt/soajs/profiles/
SOAJS_REGISTRY_APIWhere is the gateway of this env to fetch registry from. this is needed when you deploy a service behind SOAJS GatewayBLANK"192.168.5.1:5000"
SOAJS_DEPLOYER_TYPETo restrict only a type to be allowed

License

Copyright SOAJS All Rights Reserved.

Use of this source code is governed by an Apache license that can be found in the LICENSE file at the root of this repository.

3.2.8

2 years ago

3.2.7

2 years ago

3.2.6

2 years ago

3.2.5

2 years ago

3.2.4

3 years ago

3.2.3

3 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.8

4 years ago

3.1.7

4 years ago

3.1.6

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.0

4 years ago

3.0.19

4 years ago

3.0.18

4 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.8

4 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago