forked from bluesky/bluesky-pods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_core_pod.sh
39 lines (34 loc) · 2.01 KB
/
start_core_pod.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /usr/bin/bash
set -e
set -o xtrace
# create the pod
podman pod create -n adaptive -p 60606:8081/tcp -p 9092:9092/tcp -p 29092:29092/tcp
# just to get minimal IOC running
podman run -dt --pod adaptive --rm caproto
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.mini_beamline -v --interfaces=127.0.0.1
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.random_walk -v --interfaces=127.0.0.1
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.random_walk -v --interfaces=127.0.0.1 --prefix="random_walk:horiz-"
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.random_walk -v --interfaces=127.0.0.1 --prefix="random_walk:vert-"
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.simple -v --interfaces=127.0.0.1
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.thermo_sim -v --interfaces=127.0.0.1
podman run -dt --pod adaptive --rm caproto python3 -m caproto.ioc_examples.trigger_with_pc -v --interfaces=127.0.0.1
# start up a mongo
podman run -dt --pod adaptive --rm mongo
# stort up redis
podman run -dt --pod adaptive --rm redis
# start up a zmq proxy
podman run --pod adaptive -dt --rm bluesky bluesky-0MQ-proxy 4567 5678
# set up kafka
podman run --pod adaptive -dt -e ALLOW_ANONYMOUS_LOGIN=yes -v /bitnami --rm bitnami/zookeeper:3
podman run --pod adaptive \
-dt --rm \
-e KAFKA_CFG_ZOOKEEPER_CONNECT=localhost:2181 \
-e ALLOW_PLAINTEXT_LISTENER=yes \
-e KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT \
-e KAFKA_CFG_LISTENERS=PLAINTEXT://:29092,PLAINTEXT_HOST://:9092 \
-e KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:29092,PLAINTEXT_HOST://localhost:9092 \
-e KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true \
-v /bitnami \
bitnami/kafka:2
# start up queueserver
podman run --pod adaptive -td --rm bluesky python3 -m aiohttp.web -H localhost -P 8081 bluesky_queueserver.server:init_func