https://github.com/pklaus/trbnettools_docker
Dockerfiles to embed the TrbNetTools (including the RPC daemon trbnetd) in a Docker container
https://github.com/pklaus/trbnettools_docker
Last synced: 4 months ago
JSON representation
Dockerfiles to embed the TrbNetTools (including the RPC daemon trbnetd) in a Docker container
- Host: GitHub
- URL: https://github.com/pklaus/trbnettools_docker
- Owner: pklaus
- Created: 2019-09-13T21:58:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T13:18:56.000Z (almost 5 years ago)
- Last Synced: 2024-12-28T15:48:39.916Z (6 months ago)
- Language: Shell
- Homepage: https://hub.docker.com/r/pklaus/trbnettools
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leightweight Docker images for trbnettools
This is a collection of leightweight Dockerfiles / images that incorporate the trbnettools.
The aim is to have the TrbNet Daemon trbnetd available withtin a docker container.You can start your container like this:
```
docker run -it --rm pklaus/trbnettools:ubuntu1904 /bin/bash
```### Running trbnetd in the Container
First, start rpcbind as a daemon:
```
rpcbind
```You can make sure, that rpcbind is listening on a local UNIX socket as well as on port 111 udp/tcp via:
```
rpcinfo
```To start the trbnetd:
```
# /trbnettools/trbnetd/server/trbnetd -h
Usage: trbnetd [-h] [-f] [-i progId]
Options:
-h give this help
-i set an individual RPC-ProgId (0-255), default 0
-f execute as foreground process
-V version numberSignals:
USR1 lock daemon
USR2 unlock daemon
```Important: The trbnetd needs the environment variable
`TRB3_SERVER` to be set to the IP it should talk to.```
# export TRB3_SERVER=192.168.111.222
# /trbnettools/trbnetd/server/trbnetd
```Now you may try to run trbcmd locally.
Be sure, to set the DAQOPSERVER environment variable beforehand.```
# export DAQOPSERVER=localhost
# /trbnettools/trbnetd/trbcmd i 0xffff
```