This repository has been archived by the owner on May 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
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 #3 from paritytrading/features/soupbintcp-gateway
Add 'nassau-soupbintcp-gateway' module
- Loading branch information
Showing
10 changed files
with
88 additions
and
64 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
ENV NASSAU_VERSION "0.10.0" | ||
|
||
ADD https://repo1.maven.org/maven2/com/paritytrading/nassau/nassau-soupbintcp-gateway/$NASSAU_VERSION/nassau-soupbintcp-gateway-$NASSAU_VERSION.jar /opt/nassau/nassau-soupbintcp-gateway.jar | ||
|
||
RUN chmod 644 /opt/nassau/nassau-soupbintcp-gateway.jar | ||
|
||
COPY docker-entrypoint.sh / | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,32 @@ | ||
Nassau SoupBinTCP Gateway | ||
========================= | ||
|
||
This directory defines a Docker image for a NASDAQ SoupBinTCP 3.00 gateway. | ||
|
||
|
||
Configuration | ||
------------- | ||
|
||
The Docker container is configured using environment variables. | ||
|
||
The following environment variables are optional: | ||
|
||
- `NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_MULTICAST_GROUP`: The IP address of the | ||
multicast session. | ||
|
||
- `NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_MULTICAST_PORT`: The UDP port of the | ||
multicast session. | ||
|
||
- `NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_REQUEST_ADDRESS`: The IP address of the | ||
request server. | ||
|
||
- `NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_REQUEST_PORT`: The UDP port of the | ||
request server. | ||
|
||
|
||
Build | ||
----- | ||
|
||
Build the Docker image: | ||
|
||
docker build --tag nassau-soupbintcp-gateway . |
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,20 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cat > /opt/nassau/nassau-soupbintcp-gateway.conf <<-EOF | ||
upstream { | ||
multicast-interface = eth0 | ||
multicast-group = ${NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_MULTICAST_GROUP:-"224.0.0.1"} | ||
multicast-port = ${NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_MULTICAST_PORT:-"5000"} | ||
request-address = ${NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_REQUEST_ADDRESS:-"parity-system"} | ||
request-port = ${NASSAU_SOUPBINTCP_GATEWAY_UPSTREAM_REQUEST_PORT:-"5001"} | ||
} | ||
downstream { | ||
address = 0.0.0.0 | ||
port = 5000 | ||
} | ||
EOF | ||
|
||
exec /usr/bin/java -jar /opt/nassau/nassau-soupbintcp-gateway.jar /opt/nassau/nassau-soupbintcp-gateway.conf |
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 |
---|---|---|
@@ -1,30 +1,15 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
RUN apk add --no-cache supervisor | ||
|
||
RUN addgroup -S supervisor && adduser -S -G supervisor supervisor | ||
|
||
RUN mkdir /var/log/supervisor && chown supervisor:supervisor /var/log/supervisor | ||
RUN mkdir /var/run/supervisor && chown supervisor:supervisor /var/run/supervisor | ||
|
||
ENV NASSAU_VERSION "0.10.0" | ||
ENV PARITY_VERSION "0.5.0" | ||
|
||
ADD https://repo1.maven.org/maven2/com/paritytrading/nassau/nassau-soupbintcp-gateway/$NASSAU_VERSION/nassau-soupbintcp-gateway-$NASSAU_VERSION.jar /opt/nassau/nassau-soupbintcp-gateway.jar | ||
ADD https://repo1.maven.org/maven2/com/paritytrading/parity/parity-system/$PARITY_VERSION/parity-system-$PARITY_VERSION.jar /opt/parity/parity-system.jar | ||
|
||
RUN chmod 644 /opt/nassau/nassau-soupbintcp-gateway.jar | ||
RUN chmod 644 /opt/parity/parity-system.jar | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
COPY supervisord.conf /etc/supervisord.conf | ||
|
||
COPY market-data-gateway.conf /opt/nassau/ | ||
COPY market-reporting-gateway.conf /opt/nassau/ | ||
|
||
EXPOSE 4000 | ||
EXPOSE 5000 | ||
EXPOSE 6000 | ||
EXPOSE 4000/tcp | ||
EXPOSE 5001/udp | ||
EXPOSE 6001/udp | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.