Sign inSign up

steppinghat/cgate-server

By steppinghat

•Updated about 2 years ago

Docker container for Clipsal CGate Server

Image
0

10K+

steppinghat/cgate-server repository overview

⁠CGate Server

Docker Pulls

This docker image installs the Clipsal CGate Server for use with CBus applicances.

⁠Install

Easy installation can be achieved if you already have the XML version of the project file. Place this file in the /tag directory

Access to the server is goverened by a file named access.txt If this file does not already exist, create it in /config and follow the doco

⁠Usage

Here are some example snippets to help you get started creating a container.

⁠docker
docker create \
  --name=cgate-server \
  -p 20023:20023 \
  -p 20024:20024 \
  -p 20025:20025 \
  -p 20026:20026 \
  -p 20123:20123 \
  -v <path-to-config-dir>:/config \
  -v <path-to-tag-dir>:/tag \
  -v <path-to-logs-dir>:/logs \
  --restart unless-stopped \
  steppinghat/cgate-server
⁠docker compose
services:
  cgate-server:
    image: steppinghat/cgate-server
    container_name: cgate-server
    ports:
        - 20023:20023
        - 20024:20024
        - 20025:20025
        - 20026:20026
        - 20123:20123
    volumes:
        - [path-to-config-dir]:/config
        - [path-to-tag-dir]:/tag
        - [path-to-logs-dir]:/logs
    restart: unless-stopped
⁠Version tags
TagDescription
latestReleases from the latest stable branch
2.11Releases from the 2.11.x branch
⁠Parameters
ParameterFunction
-p 20023CGate Command port
-p 20024CGate Event port
-p 20025CGate Load Change port
-p 20026CGate Config Change port
-p 20123CGate Secure Command port
-v :/configCGate config directory (access.txt goes here)
-v :/tagCGate tag directory (XML project files go here)
-v :/logsCGate logs directory

⁠Development

⁠Downloading CGate server

CGate server is downloaded from the Clipsal website during the build process.

The exact download URL is set by the CGATE_DOWNLOAD_URL ARG in the Dockerfile.

One thing to note, is that some download links have multiple files in the URL. The Clipsal website will zip these files into a single archive, which we don't want as we only want the zip file for cgate itself.

Make sure that the URL only has one file specified, for example:

/files?p_File_Name=cgate-2.11.8_3282.zip
# Will only download the cgate zip file


/files?p_Doc_Ref=C-Gate-V2.11.8&p_enDocType=Software+-+Release&p_File_Name=cgate-2.11.8_3282.zip
# Will download the release notes and the cgate zip file, bundled together in a single zip
⁠Building the container

Build the container using the following command:

docker build -t steppinghat/cgate-server .

Verify the build works by running it:

docker run steppinghat/cgate-server

Written by Javan Eskander @SteppingHat

Tag summary

Content type

Image

Digest

sha256:6bb252adb…

Size

226.6 MB

Last updated

about 2 years ago

docker pull steppinghat/cgate-server