Commit 616b89c3 authored by Matt Clarke's avatar Matt Clarke

Make master into a template for branches

parent 58907b28
......@@ -22,6 +22,8 @@ See docker-compose.yml.
docker-compose up
```
Use [LazyDocker](https://github.com/jesseduffield/lazydocker) for monitoring the containers, it is great!
## Running the CLI NICOS client
Attach to the nicos-client server and run:
```
......
hdf-output-prefix="/output-files/"
command-uri="kafka:9092/TEST_writerCommand"
status-uri="kafka:9092/TEST_writerStatus"
status-master-interval=2000
verbosity="Info"
log-file=/fw_logs/filewriter.log
verbosity=3
config-topic=//kafka:9092/TEST_forwarderConfig
status-topic=//kafka:9092/TEST_forwarderStatus
log-file=/fw_logs/forwarder.log
version: '2.4'
services:
zookeeper:
image: zookeeper:3.4
networks:
- backend
kafka:
image: wurstmeister/kafka:1.0.0
depends_on:
- zookeeper
hostname: kafka
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_MESSAGE_MAX_BYTES: 20000000
KAFKA_BROKER_ID: 0
KAFKA_CREATE_TOPICS: "TEST_writerCommand:1:1,TEST_writerStatus:1:1,hist_commands:1:1,fake_events:1:1,just-bin-it:1:1,TEST_forwarderConfig:1:1,TEST_forwarderStatus:1:1,TEST_nicosCacheCompacted:1:1,TEST_nicosCacheHistory:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- backend
- frontend
file-writer:
image: screamingudder/file-writer:3e667e1
depends_on:
- kafka
environment:
KAFKA_BROKER: kafka
CONFIG_FILE: "/config-files/file_writer_config.ini"
volumes:
- ./config-files/:/config-files/
- ./output-files/:/output-files/
- ./logs/:/fw_logs/
networks:
- backend
forwarder:
image: screamingudder/forwarder:0ba4430
depends_on:
- kafka
environment:
KAFKA_BROKER: kafka
CONFIG_FILE: "/config-files/forwarder_config.ini"
volumes:
- ./config-files/:/config-files/
- ./logs/:/fw_logs/
networks:
- backend
just-bin-it:
image: screamingudder/just-bin-it:latest
depends_on:
- kafka
environment:
PARAMETERS: "-b kafka:9092 -t hist_commands -s -hb jbi_heartbeat"
networks:
- backend
- frontend
nicos-cache:
image: screamingudder/nicos:cspec-demo-cache
depends_on:
- file-writer
- kafka
ports:
- "14869:14869"
volumes:
......
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