File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ FROM python:3
2+
3+ WORKDIR /usr/src/app
4+
5+ COPY pyproject.toml ./
6+
7+ RUN pip install --no-cache-dir .
8+
9+ # Expose ports for kafka, EPICS CA, EPICS PVA
10+ EXPOSE 9092 5064 5065 5075 5076
11+
12+ COPY . .
13+
14+ ENTRYPOINT ["python" , "./forwarder_launch.py" ]
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ Only non-TLS channels (`SASL_PLAINTEXT`) are currently supported.
6767The SASL mechanism can be specified as part of the username/broker string as follows: ` sasl_mechanism\username@broker:port/topic ` .
6868Example:
` SCRAM-SHA-256\[email protected] :9092/topic ` .
6969
70+ ### Running in container
71+ To build the forwarder for use within a container, use ` docker build . --tag forwarder:latest ` .
72+
73+ To use the container run ` docker run -it forwarder:latest ` followed by your options ie.
74+ ` docker run -it forwarder:latest --config-topic mybroker:9092/configTopic . . . `
75+
7076## Configuring EPICS PVs to be forwarded
7177
7278Adding or removing PVs to be forwarded is done by publishing configuration change messages to the configuration
Original file line number Diff line number Diff line change 66* Adopt pip-tools to manage requirements.txt files
77* Refactor statistics reporter to support dynamically added metrics
88* Add latency and per-PV graphite metrics
9+ * Add containerfile
910
1011## v2.1.0
1112
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dependencies = [
1414 " p4p" ,
1515 " confluent_kafka" ,
1616 " graphyte" ,
17- " numpy >= 1.21" ,
17+ " numpy >= 1.21, <2.0 " ,
1818 " ConfigArgParse" ,
1919 " ess-streaming-data-types" ,
2020 " tomli" ,
You can’t perform that action at this time.
0 commit comments