forked from ess-dmsc/forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ISISComputingGroup/containerfile
Containerfile
- Loading branch information
Showing
4 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM python:3 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY pyproject.toml ./ | ||
|
||
RUN pip install --no-cache-dir . | ||
|
||
# Expose ports for kafka, EPICS CA, EPICS PVA | ||
EXPOSE 9092 5064 5065 5075 5076 | ||
|
||
COPY . . | ||
|
||
ENTRYPOINT ["python", "./forwarder_launch.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,12 @@ Only non-TLS channels (`SASL_PLAINTEXT`) are currently supported. | |
The SASL mechanism can be specified as part of the username/broker string as follows: `sasl_mechanism\username@broker:port/topic`. | ||
Example: `SCRAM-SHA-256\[email protected]:9092/topic`. | ||
|
||
### Running in container | ||
To build the forwarder for use within a container, use `docker build . --tag forwarder:latest`. | ||
|
||
To use the container run `docker run -it forwarder:latest` followed by your options ie. | ||
`docker run -it forwarder:latest --config-topic mybroker:9092/configTopic . . . ` | ||
|
||
## Configuring EPICS PVs to be forwarded | ||
|
||
Adding or removing PVs to be forwarded is done by publishing configuration change messages to the configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters