Commit 66bb8dc3 authored by Matt Clarke's avatar Matt Clarke

Removed debuggger and added nicos-client

parent 556b4f82
......@@ -9,17 +9,29 @@ See docker-compose.yml.
docker-compose up
```
## Connecting NICOS GUI
The GUI should connect to port 1305 rather than the usual 1301.
## Running the CLI NICOS client
Attach to the nicos-client server and run:
```
./nicos-core/bin/nicos-client
```
When prompted for server host and port, enter nicos-server:1301.
## Debugging
In the debugger file there is a Docker file for creating a basic linux machine which can be included in the Docker compose for debugging stuff.
Use the `NewSetup` command to load the required setups, e.g. for cspec:
```
NewSetup('vacuum', 'cryo', 'just_bin_it', 'samplecell', 'cspec')
```
To build it:
To get a list of availables setups:
```
docker build -t debugger .
ListSetups()
```
To enable it, uncomment the appropriate section of the docker-compose.yml file.
Other useful commands for getting started:
* start_filewriter("Some title)
* stop_filewriter()
* SetDetectors(det)
* count(t=10)
* ListCommands() - this will list all the commands a brief description
When running it creates a shared folder; this can be used for passing scripts and other files in.
## Connecting via the NICOS GUI
The locally running GUI (e.g. on your machine) should connect to port 1305 rather than the usual 1301.
FROM ubuntu:bionic
RUN apt-get update && \
apt install -yq python3 python3-dev python3-pip build-essential git tmux iputils-ping && \
pip3 install --upgrade pip
RUN pip3 install flatbuffers kafka-python
......@@ -61,7 +61,7 @@ services:
- backend
- frontend
nicos:
nicos-server:
image: screamingudder/nicos-cspec-demo:latest
depends_on:
- file-writer
......@@ -77,15 +77,18 @@ services:
stdin_open: true
# entrypoint: bash
# Debugger - uncomment to enable
# debugger:
# image: debugger:latest
# stdin_open: true
# tty: true
# networks:
# - backend
# volumes:
# - ./shared/:/shared/
nicos-client:
image: screamingudder/nicos-cspec-demo:latest
depends_on:
- nicos-server
volumes:
- ./nicos-data/:/opt/nicos-data
networks:
- backend
- frontend
tty: true
stdin_open: true
entrypoint: bash
networks:
frontend:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment