https://github.com/klauer/conda-ioc
template for an isolated conda environment Python/pypvserver IOC
https://github.com/klauer/conda-ioc
Last synced: 11 months ago
JSON representation
template for an isolated conda environment Python/pypvserver IOC
- Host: GitHub
- URL: https://github.com/klauer/conda-ioc
- Owner: klauer
- Created: 2016-03-01T15:19:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-01T19:46:58.000Z (over 10 years ago)
- Last Synced: 2025-01-17T16:52:16.541Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
conda-ioc
=========
template for an isolated conda environment IOC
* with procServ/conserver config options
* with an example of hosting some EPICS PVs using pypvserver
Usage
=====
1. Edit `config`
```bash
NAME=conda-ioc
PORT=4001
HOST=xf03id-srv1
USER=softioc
# conda-related options:
CONDA_ENV=conda_ioc
# CONDA_ROOT=$PWD/mc
CONDA_ROOT=/tmp/ramdisk/condaioc
PACKAGES=ophyd
```
NAME should be set to the IOC name.
PORT should be what `manage-iocs nextport` gives
HOST should be updated depending on the machine it's being run on
CONDA_ENV can be left as-is
PACKAGES should be set to the conda packages required
2. Tweak `custom_install.sh` if any non-conda packages should be installed.
This example installs both pcaspy and pypvserver from their respective git repositories.
3. Install/enable the IOC to automatically start on reboot
```bash
sudo manage-iocs install conda-ioc
sudo manage-iocs enable conda-ioc
```
4. Update conserver
```bash
sudo update-iocs-cf
sudo service conserver reload
```
5. Start the IOC
```bash
sudo service softioc-conda-ioc start
```
6. Check its status
```bash
manage-iocs status
console conda-ioc
```