Uživatelské nástroje

Nástroje pro tento web


mobis_containers

MOBIS containers

  • nastavit obis5/etc/mobis-obiscserver.ini obis5/etc/mobis-xmlrpcserver.ini
  • nastavit obis5/html/etc: apache.conf,key,pem + obisrc.xml (nesmi byt symlink) + phpserver.ini

obis5/etc/mobis-obiscserver.ini

dofile=./system/lua/server/web/obis.lua
#stdin ma prednost, parametr pouziva xinetd
tcp=9300
debug=5

obis5/etc/mobis-xmlrpcserver.ini

serverport=9300
listenport=9302
serviceport=9303
readycon=1
maxttl=86400
debug=3

html/etc/phpserver.ini

obiscserver_uri = "tcp://localhost:9302"
obiscserver_proto = "JSON-RPC"
restpasswd = ""

[javascript]
LogLevel = 5
;DesktopMode = 1

Windows

http://localhost:8000/mobis/mobis.php

cd obis5\containers
docker-compose up -d
docker ps
docker exec -it containers_obiscserver_1 /bin/bash
#aktualizace
docker pull cregistry.epos.cz/obis/obiscserver
docker pull cregistry.epos.cz/obis/xmlrpcserver
docker pull cregistry.epos.cz/obis/apache
docker images
docker ps
docker stop CONTAINER_ID 3x
docker rm CONTAINER_ID 3x
docker images
docker rmi IMAGE_ID 3x

obis5/containers/docker-compose.yml

version: "3"

services:
  obiscserver:
    image: cregistry.epos.cz/obis/obiscserver
    network_mode: service:xmlrpcserver
    restart: unless-stopped
    environment:
      - PREFIX=mobis
    volumes:
      - ../etc:/obis/etc
      - ../user:/obis/user:ro
      - ../uzivatele:/obis/uzivatele
      - ../obisdoc:/obis/uobisdoc
      - ../log:/obis/log
  xmlrpcserver:
    image: cregistry.epos.cz/obis/xmlrpcserver
    network_mode: service:apache
    restart: unless-stopped
    environment:
      - PREFIX=mobis
    volumes:
      - ../etc:/obis/etc:ro
      - ../log:/obis/log
  apache:
    image: cregistry.epos.cz/obis/apache
    restart: unless-stopped
    ports:
      - "8000:80"
    volumes:
      - ../html/etc:/obis/html/etc:ro
      - ../log:/obis/log 

Linux

#podman login -u obis -p ***** cregistry.epos.cz
export REGISTRY_AUTH_FILE=/home/common/obis5/etc/cregistry.epos.cz.auth
ls ${XDG_RUNTIME_DIR}/containers/auth.json
podman search cregistry.epos.cz/
#pripadne doplnit /etc/subuid +/etc/subgud + podman system migrate
podman unshare cat /proc/self/uid_map  #2 radky 0 + 1, kde 1 je pro rozsah dle /etc/subuid
podman image search --list-tags cregistry.epos.cz/obis/obiscserver
podman pull cregistry.epos.cz/obis/obiscserver
podman pull cregistry.epos.cz/obis/obiscserver:v5.0.479
podman images
podman run cregistry.epos.cz/obis/obiscserver
podman ps
podman exec -it CONTAINER_ID  /bin/bash
podman top CONTAINER_ID
podman stop CONTAINER_ID
podman rm CONTAINER_ID
podman images
podman rmi IMAGE_ID
export ROOT=`pwd`
export USERDIR=$ROOT/user
export DOCUMENTDIR=$USERDIR/tmplin
export REGISTRY_AUTH_FILE=/home/common/obis5/etc/cregistry.epos.cz.auth
#export OBIS_TAG="v5.0.480"
#export MOUNT_SYSTEM="1"
$ROOT/containers/mobis.sh start
http://localhost:10081/mobis/mobis.php?
$ROOT/containers/mobis.sh stop
$ROOT/containers/mobis.sh clean

Firebird

  • docker pull jacobalberty/firebird:3.0
  • pri spuštení nastavit optional param : name, případně port a env. variable: ISC_PASSWORD
  • z klienta vytvorit DB: gbak -R -V -pass heslo /tmp/licence.fbk ip_addr/port:/firebird/data/licence.fdb #IP je přímo adresa host systemu
mobis_containers.txt · Poslední úprava: 2023/02/22 08:40 autor: Karel Petrů