Container Native

Container Native

SG-Runner

The solution is on DockerHub as image sg-runner:1.0.1.

The acces to the runner by ssh connection over port 22000 as user sg_exec or sg_dev user. The sg_exec user have privilages to execute test where sg_dev has prilivilages to execute and to change test configuration at ./store direcotry.

In the case of test devlopment use sg_dev shell be used.

The solution are able to deploy in Kuberanetes cluster.

The deployment at GKE enviroment has accepted already.

Docker

Lern how to install The Docker

Try ru run docker host or on VM and setup docker up and pull image.


[root@sg_run_01 docs]# docker pull atossoftsea/sg-runner:1.0.1
1.0.1: Pulling from atossoftsea/sg-runner
Digest: sha256:65a726a8e13cfa960b10859ae97e6d0e23a98c4bf0ab831cbb4bb72ca418e85a
Status: Image is up to date for atossoftsea/sg-runner:1.0.1
docker.io/atossoftsea/sg-runner:1.0.1


[root@sg_run_01 docs]# docker images
REPOSITORY              TAG       IMAGE ID       CREATED       SIZE
atossoftsea/sg-runner   1.0.1     135a1acdc473   2 hours ago   770MB

The access to docker by ssh are avaible using private key.

Start containe and login by ssh sg@172.17.0.2 -p 20022 -i ../ssh_host_rsa_key in case if ssh is not avaible still you can access by running docker run -it …

How to start

By docker run expected outpotus is given rhen start docker image. After you may run tests


[root@sg_run_01 docs]# docker run atossoftsea/sg-runner:1.0.1 
...
INFO: Enty-point is reached
INFO: Entry-point - ./10-openssh-server.sh is starting
INFO: Open SSH-Server
WARN: There are more then one ip address
INFO: Assigned ADDR=172.17.0.2
INFO Server pid={} exit_code=0
INFO: Entry-point - ./99-sg-engine-status.sh is starting
INFO: Sg-Engin - status -start
INFO: Sg-Engine - status pooling

if no ssh aviable


[root@sg_run_01 docs]# docker run -it atossoftsea/sg-runner:1.0.1 bash
--RUN--
...
[root@2f614beff882 /]#

# E.g. after you may run tests as following into container 

[root@2f614beff882 /]cd /opt/sea/sg-runner/
./sbin/setup.sh -e "Lab01" -t "SEA01" -s "sg_data_normal"
INFO ...
...

[root@2f614beff882 /]cd ./run/SEA01/sg_data_normal/
[root@2f614beff882 /] ls -l *.sh
					./pre-proc.sh
					./start.sh
					./status.sh
					./stop.sh
					./post-proc.sh

Integrate it with Test-Store

All test configuration are place at sg-test-store, results at shared direcotres


[root@sg_run_01 docs]# mkdir -p <work>
[root@sg_run_01 docs]# cd <work>
[root@sg_run_01 docs]# mkdir shared

[root@sg_run_01 docs]# git clone https://github.com/atossoftsea/sg-test-store.git

[root@sg_run_01 docs]# docker run -it \
     -v ${pwd}/sg-test-store/:/opt/sea/sg-runner/store/ \
	 -v $(pwd)/shared/:/opt/sea/sg-runner/shared \
	  atossoftsea/sg-runner:1.0.1

Kubernetes native

The kubernetes is modern, scalable solution, provides varates to extend to unlimted traffic load.

Note

The terafform scripts shell be provided to manage infrastructures The helmchart scripts shell scale up/down K8S costs

SG-Commander

on the roadmap