jeffersonlab/cedlib
The client library along with command line and web interfaces for interacting with CED database.
123
This image contains compiled cedlib client library along with command line and web interfaces useful for interacting with CED database.
Tag | PHP | CEDLIB |
---|---|---|
1.X | 8.3 | 6.5 |
0.X | 8.1 | 6.5 |
In order to be useful, this image also needs access to a CED database instance. The simplest way to accomplish this is using docker-compose to create a ceddb container.
Example docker-compose.yml that includes ceddb
services:
cedlib:
image: 'jeffersonlab/cedlib:0.5-rl9'
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '80:80'
- '443:443'
depends_on:
- ceddb
ceddb:
image: 'jeffersonlab/ceddb:1.0-populated'
# Hostname oracle is embedded in tnsnames.ora of cedlib image
hostname: oracle
ports:
- '${FORWARD_ORA_PORT:-1521}:1521'
# Bring up the container set on the host
export COMPOSE_PROJECT_NAME=test
composer up
docker exec -it --user cedadm test-cedlib-1 /bin/bash
# Execute CED commands. The user cedadm has admin role
[cedadm@70c75fb61d4d html]$ ced -inventory -t PIOC -p
opsbat0 (PIOC)
opsbat2 (PIOC)
opsbat4 (PIOC)
opsbat8 (PIOC)
opsla0 (PIOC)
opsla2 (PIOC)
6 element(s)
docker pull jeffersonlab/cedlib