Skip to content

Commit d3ef897

Browse files
authored
Merge pull request #1 from ISISComputingGroup/containerfile
Containerfile
2 parents a0b63ec + e0f71b8 commit d3ef897

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

Containerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ Only non-TLS channels (`SASL_PLAINTEXT`) are currently supported.
6767
The SASL mechanism can be specified as part of the username/broker string as follows: `sasl_mechanism\username@broker:port/topic`.
6868
Example: `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

7278
Adding or removing PVs to be forwarded is done by publishing configuration change messages to the configuration

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)