Operations & Maintenance

  • Container maintenance
  • Build scripts description
  • Building project

1. Container maintenance

Scripts to start and stop containers

CommandDescription
./sbe lsShow running components
./sbe start [component]Start suite or specified component
./sbe stop [component]Stop suite or specified component
./sbe restart [component]Restart suite or specified component
./sbe network-createCreate network
./sbe network-removeRemove network
./sbe volumes-create [volume-name]Create volumes or specified volume
./sbe volumes-remove [volume-name]Remove volumes or specified volume
./sbe proxy-startStart reverse proxy server
./sbe proxy-stopStop reverse proxy server
./sbe proxy-restartRestart reverse proxy server
./sbe pull-images [image-name]Pull specified component image or all images
./sbe instance-updateUpdate instance configuration if configuration or project yaml was modified

Other commands

CommandDescription
./sbe run ldap-import [ldif filename]Tool for importing LDIF file into LDAP service

To stop and remove the various containers use

Clean volumes

WARNING: The following commands will result in data loss. They are NOT for normal operation and should only be run by an administrator for the purposes of system maintenance.

2. Build commands description

Build scripts description

CommandDescription
./sbe run project-importImport custom Git repository into SBE Gerrit
./sbe run project-buildCreate jenkins job for build
./sbe run project-runRun jenkins job remotely

3. Building projects

Import the example project into Gerrit

First import the example project from the public or private repository into Gerrit. Before you continue, set the following variables:

Add sources from remote Git into Gerrit:

Before you run the following command to run and build a Jenkins job, see here for information on how to define a project.

Create a Jenkins job to build and run the Jenkins job:

4. Cloning individual repositories

The sbe repository is cloned as part of the standard installation procedure. However it is also possible to clone the individual components of the SBE listed in the following table:

COMPONENTREPOSITORY NAME
apachedssbe-docker-apacheds
basesbe-docker-base
gerritsbe-docker-gerrit
jenkinssbe-docker-jenkins
nexussbe-docker-nexus
nginxsbe-docker-nginx
postgresqlsbe-docker-postgresql
redminesbe-docker-redmine
sbesbe-docker-sbe
nginx-proxysbe-docker-nginx-proxy
sonarqubesbe-docker-sonarqube

To clone one of the above repositories, replace xxx with the repository name in the following command:

When prompted for a password enter the [customerpassword] provided by FRINX.