TECHZEN Zenoss User Community ARCHIVE  

Run zendmd in container with file parameters

Subject: Run zendmd in container with file parameters
Author: Jad Baz
Posted: 2018-10-23 12:49

Hello,

I want to attach to Zope container and issue zendmd commands that take as argument certain files.

I can see 2 ways to go about this:
  1. Copy files from host into the container
  2. Mount a directory as a volume and copy files to that directory

#1 Copy files

Docker has docker cp for example.
I could not find anything similar in serviced help
Does serviced have an equivalent, or shall I have to get the id of the docker container for specific container and then use docker cp on it?

#2 Mount a volume

Is there a directory that is mounted by default as a volume for Zope container in zenoss 6 serviced template (attaching here for convenience)? This isn't really obvious for me to understand as serviced is still a bit obscure in my mind.
If so, I can just use that directory as a way to transfer.

Otherwise, the last resort, which I want to avoid at all costs is to change the zenoss 6 template to add a data volume.

------------------------------
Jad
------------------------------

Attachments:

zenoss-core-6.2.1_1.json.txt



Subject: RE: Run zendmd in container with file parameters
Author: Arthur
Posted: 2018-10-23 14:15

Hi Jad

Perhabs this Zenoss article helps you.

https://support.zenoss.com/hc/en-us/articles/207610516-How-to-add-tools-or-scripts-into-a-Resource-Manager-5-x-Docker-Container

Cheers

------------------------------
Arthur
------------------------------

Subject: RE: Run zendmd in container with file parameters
Author: Jane Curry
Posted: 2018-10-24 05:55

With Zenoss 5.2.x and later there is persistent "DFS" storage available that is accessible by all containers. This is under /opt/serviced/var/volumes/<tenant-id> on the base Zenoss server, where <tenant-id> should be replaced by the very long  string that represents your docker environment - you can see this in a simple process list among other ways.  This directory appears inside containers as /var/zenoss.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Windows Event Log summary truncated
  Next
LDAP 389 directory server
>