Sign inSign up

inasoft/s4a

By inasoft

•Updated 10 months ago

The SQL4automation Connector connects PLC and robotic controls directly with SQL databases.

Image
3

3.1K

inasoft/s4a repository overview

SQL4automation Logo

Find us on:

⁠Usage

Here are some example snippets you can use to start your SQL4automation container. Just copy and paste them into your terminal (CTRL+SHIFT+V)

⁠Docker

On systems with amd64 or i386

docker run -itd \
--net host \
--device /dev/bus/usb \
--volume ~/docker/s4a:/var/log/SQL4automation \
--name s4a \
--restart always \
inasoft/s4a:latest

On systems with armhf (for example a Raspberry Pi 4)

docker run -itd \
--net host \
--device /dev/bus/usb \
--volume ~/docker/s4a:/var/log/SQL4automation \
--name s4a \
--restart always \
inasoft/s4a:armhf_v4.0.0.6    

⁠Docker-Compose

On systems with amd64 or i386

version: '3.6'
services:
  #SQL4automation Connector service
  s4a:
    container_name: s4a
    image: inasoft/s4a:latest
    restart: always
    devices:
      - /dev/bus/usb:/dev/bus/usb
    volumes:
      - ~/docker/s4a:/var/log/SQL4automation
    network_mode: host
    stdin_open: true

On systems with armhf (for example a Raspberry Pi 4)

Change the image in the above command to "inasoft/s4a:armhf_v4.0.0.6"
e.g.  inasoft/s4a:latest -> inasoft/s4a:armhf_v4.0.0.6

⁠Parameters

The container images can be configured using these parameters.

ParameterFunction
--net=hostUse the same network as the host
--device=/dev/bus/usbAllow the container to access your USB devices (only needed for license dongle)
--volume=~/docker/s4a:/var/log/SQL4automationMounts the config files of the connector to the directory ~/docker/s4a (you can use any directory you like)
--name=s4aName the container "s4a"
--restart=alwaysAutomatically restart the container if it stops

⁠Using Bridge network mode

To run the container in bridge network mode, you need to manually expose the needed ports. The parameter "-p" links the specified internal ports to the specified external ports (external:internal)

Parameter | Function

  • | - -p 5891-5893:5891-5893 | Needed for communication between S4A-Tools -p 11001-11003:11001-11003 | Needed for Links (can be replaced with any other free port on your system)

⁠Useful Docker commands

Assuming you named the SQL4automation container "s4a"

  • List all the containers: docker ps -a
  • Start the s4a container: docker start s4a
  • Stop the s4a container: docker stop s4a
  • Restart the s4a container: docker restart s4a
  • Open shell inside the s4a container: docker exec -it s4a bash

Tag summary

Content type

Image

Digest

sha256:5a18bc1a2…

Size

120.5 MB

Last updated

almost 2 years ago

docker pull inasoft/s4a