-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from epics-containers/terminalServer
Fix _global/install.sh to do its own symlinks
- Loading branch information
Showing
12 changed files
with
188 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# ARGUMENTS: | ||
# $1 VERSION to install (must match repo tag) | ||
VERSION=${1} | ||
NAME=snmp | ||
FOLDER=$(dirname $(readlink -f $0)) | ||
|
||
# log output and abort on failure | ||
set -xe | ||
|
||
ibek support apt-install libsnmp-dev | ||
ibek support add-runtime-packages libsnmp40 | ||
|
||
# get the source and fix up the configure/RELEASE files | ||
ibek support git-clone ${NAME} ${VERSION} --org https://github.com/slac-epics/ | ||
ibek support register ${NAME} | ||
|
||
# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile | ||
ibek support add-libs devSnmp | ||
ibek support add-dbds devSnmp.dbd snmp.dbd | ||
|
||
# underlying snmp library installed above is in standard location | ||
ibek support add-config-macro ${NAME} NET_SNMP_PKG | ||
ibek support add-config-macro ${NAME} USR_INCLUDES | ||
ibek support add-config-macro ${NAME} USR_LDFLAGS | ||
|
||
# global config settings | ||
${FOLDER}/../_global/install.sh ${NAME} | ||
|
||
# compile the support module | ||
ibek support compile ${NAME} | ||
# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container. | ||
ibek support generate-links ${FOLDER} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# ARGUMENTS: | ||
# $1 VERSION to install (must match repo tag) | ||
VERSION=${1} | ||
NAME=terminalserver | ||
FOLDER=$(dirname $(readlink -f $0)) | ||
|
||
# log output and abort on failure | ||
set -xe | ||
|
||
# get the source and fix up the configure/RELEASE files | ||
ibek support git-clone ${NAME} ${VERSION} --org https://github.com/DiamondLightSource/ | ||
ibek support register ${NAME} | ||
|
||
# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile | ||
ibek support add-dbds terminalServer.dbd | ||
|
||
# global config settings | ||
${FOLDER}/../_global/install.sh ${NAME} | ||
|
||
# compile the support module | ||
ibek support compile ${NAME} | ||
# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container. | ||
ibek support generate-links ${FOLDER} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# yaml-language-server: $schema=../schemas/ibek.support.schema.json | ||
|
||
module: terminalServer | ||
|
||
entity_models: | ||
- name: Moxa | ||
description: |- | ||
Root object for Moxa terminal server | ||
parameters: | ||
name: | ||
type: id | ||
description: |- | ||
Object name | ||
P: | ||
type: str | ||
description: |- | ||
PV prefix | ||
R: | ||
type: str | ||
description: |- | ||
PV suffix | ||
HOST: | ||
type: str | ||
description: |- | ||
Host IP address | ||
NCHANS: | ||
type: int | ||
description: |- | ||
Number of channels | ||
pre_init: | ||
- value: | | ||
{% for chan in range(NCHANS) -%} | ||
{{'dbloadrecords("$(TERMINALSERVER)/db/MoxaChannel.template", P={}, R={}, CHAN={}, HOST={}, name={})'.format(P, R, chan+1, HOST, name + "_" ~ (chan+1) ) }} | ||
{% endfor %} | ||
databases: | ||
- file: | | ||
{{ "$(TERMINALSERVER)/db/TerminalServer32.template" if NCHANS > 16 else "$(TERMINALSERVER)/db/TerminalServer16.template" }} | ||
args: | ||
name: | ||
P: | ||
R: | ||
- file: $(TERMINALSERVER)/db/Moxa.template | ||
args: | ||
name: | | ||
{{ name + "_top" }} | ||
P: | ||
R: | ||
HOST: | ||
|
||
# - file: $(TERMINALSERVER)/db/Moxa.template | ||
# args: | ||
# P: | ||
# R: | ||
# HOST: | ||
# name: | ||
|
||
# - file: $(TERMINALSERVER)/db/MoxaChannel.template | ||
# args: | ||
# P: | ||
# R: | ||
# CHAN: | ||
# HOST: | ||
# name: | ||
|
||
- name: Acs | ||
description: |- | ||
TODO:ADD DESCRIPTION | ||
parameters: | ||
name: | ||
type: id | ||
description: |- | ||
Object name | ||
P: | ||
type: str | ||
description: |- | ||
PV prefix | ||
R: | ||
type: str | ||
description: |- | ||
PV suffix | ||
HOST: | ||
type: str | ||
description: |- | ||
Host IP address | ||
NCHANS: | ||
type: int | ||
description: |- | ||
Number of channels | ||
databases: | ||
- file: $(TERMINALSERVER)/db/TerminalServer16.template | ||
args: | ||
P: | ||
R: | ||
name: | ||
|
||
- file: $(TERMINALSERVER)/db/Acs.template | ||
args: | ||
P: | ||
R: | ||
HOST: | ||
name: | ||
|
||
- file: $(TERMINALSERVER)/db/AcsChannel.template | ||
args: | ||
P: | ||
R: | ||
CHAN: | ||
HOST: | ||
name: |