New Docker worker for Package/Docker integration?

Currently reading
New Docker worker for Package/Docker integration?

47
14
www.technorabilia.com
NAS
DS716+
Router
  1. RT1900ac
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Last edited:
In the Synology DSM 7.0 Developer Guide I noticed the following section:

Docker (since DSM7.0)
Description
Docker worker is made for docker package to help them easily deploy their containers without calling docker command by themselves. Docker worker use docker-compose framework, it will generate docker-compose.yaml according to user's docker worker configuration and create containers during installation.
When in install/remove package stage, worker will create/remove docker-compose.yaml, volume on host directory, images and containers.
When in start/stop package stage, worker will start/stop containers by calling docker-compose start/stop.


In the section some examples are given where json is "translated" to docker-compose format.

There are some libs available on the file system that were not available on DSM 6.x.
Code:
$ ls /volume1/@appstore/Docker/worker
libdockercomposegenworker.so  libdockercomposestartworker.so
$

Although packages that deploy using Docker like GitLab are available for some time, it looks like the deployment method is now changed using docker-compose?

Anyone?
 
47
14
www.technorabilia.com
NAS
DS716+
Router
  1. RT1900ac
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Did some further digging...

You can use Synology Package Center to deploy an application that typically consists of a multiple containers (or services).

The package developer will provide a JSON file to specify all the Docker services that make up the Docker application as described in the Developer Guide. This JSON file will be transformed to docker-compose.yaml format which will be used by the docker-compose program to create/start/stop/remove the application.

Synology Package Center can then be used to "stop/start" the application.
 

Rusty

Moderator
NAS Support
3,761
1,083
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
I think that’s how they deployed Document Viewer back in the day
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top