Load an image from a tar archive.

$ sudo ./dobsworker.sh load

List images.

$ sudo docker images

$ docker images
tizendocker:443/obsworker 2.4.0.3

Configuration of the Container

$ vi config.conf

Configuration a config.conf of the dobsworker.sh
### In the value of the OBS_WORKER_PORTBASE of the obs-server file must be increased by the number of OBS_WORKER_INSTANCES.
export PORTS="60000-60003" ## ex) "hostport1 hostport2" or "hostport1:containerport1" or "exposeport1- exposeport2"
### Assign a name to the container
export CONTAINER="obsworker"
### Container host name
export HOSTNAME="OBSWorker"
### Add a custom host-to-IP mapping (host:ip)
export ADD_HOSTS="<obsserver hostname>:<ip>" ## ex)<obsserver hostname1>:<ip1>

Configuration of OBS worker

$ vi $(pwd)/root/etc/sysconfig/obs-server

# Default setting : 4 instances are created, and 1 job (cpu) is assinged to each instance.
# You can change OBS worker setting (optimization based on your server environment)
# (refer to https://wiki.tizen.org/wiki/OBS_2.4_All-in-One_Server)
###Set Number of all instances which is used by worker
# OBS_WORKER_INSTANCES=(Max Port No. - Min Port No.+1)
# ex) if you use "export PORTS="60000-60007, then OBS_WORKER_INSTANCES=(60007-60000 +1) = 8
OBS_WORKER_INSTANCES="4"
# OBS_WORKER_JOBS : number of cpus which is used by each instance
# Note : (OBS_WORKER_INSTANCES * OBS_WORKER_JOBS ) must not exceed total number of host cpus.
# ex) total number of host cpus = 32 core, and OBS_WORKER_INSTANCES=12
# if OBS_WORKER_JOBS=2, it's ok (OBS_WORKER_INSTANCES * OBS_WORKER_JOBS =24, which is lower than 32)
# if OBS_WORKER_JOBS=3, woker will not work. (OBS_WORKER_INSTANCES * OBS_WORKER_JOBS =36, which is higher than 32)
OBS_WORKER_JOBS = 4
# important ( worker1,worker2 must be different port value.)
# ex) worker1 server = "60000" then worker2 server = "60020"
OBS_WORKER_PORTBASE="60000"
# The hostname or the IP address of the OBS server
OBS_SRC_SERVER="<OBSServer ip>:5352"
# The hostname or the IP address of the OBS server
OBS_REPO_SERVERS="<OBSServer ip>:5252"
...
#The product of OBS_WORKER_INSTANCES and OBS_WORKER_JOBS should be smaller than the number of CPU cores in each OBS worker node.

If you use a firewall on host OS, you have to allow a obsworker port number.

Initialize

CLI

USAGE: ./dobsworker.sh COMMAND
-e
Commands:
install Install lxc-docker-1.4.1
start Start a stopped container
attach Attach to a running container
stop Stop a running container
status Status a running container
rm Remove this containers
restart stop, start a container
kill Kill a running container
logs Fetch the logs of a container
cp Copy files/folders from a container's filesystem to the host path
pull Pull an image or a repository from a Docker registry server
inspect Return low-level information on a containe
top Lookup the running processes of a container
save Save an image to a tar archive
load Load an image from a tar archive
help help