Skip to content

Commit

Permalink
Updated docker file - containers now have the logs inside them
Browse files Browse the repository at this point in the history
  • Loading branch information
marsafy1 committed May 16, 2024
1 parent 43efcc4 commit fa2807e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions services/jobs/cassandra-config/cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ seed_provider:
parameters:
# seeds is actually a comma-delimited list of addresses.
# Ex: "<ip1>,<ip2>,<ip3>"
- seeds: "10.0.24.3"
- seeds: "10.0.7.3"

# For workloads with more data than can fit in memory, Cassandra's
# bottleneck will be reads that need to fetch data from
Expand Down Expand Up @@ -663,7 +663,7 @@ ssl_storage_port: 7001
#
# Setting listen_address to 0.0.0.0 is always wrong.
#
listen_address: 10.0.24.3
listen_address: 10.0.7.3

# Set listen_address OR listen_interface, not both. Interfaces must correspond
# to a single address, IP aliasing is not supported.
Expand All @@ -677,7 +677,7 @@ listen_address: 10.0.24.3

# Address to broadcast to other Cassandra nodes
# Leaving this blank will set it to the same value as listen_address
broadcast_address: 10.0.24.3
broadcast_address: 10.0.7.3

# When using multiple physical network interfaces, set this
# to true to listen on broadcast_address in addition to
Expand Down Expand Up @@ -763,7 +763,7 @@ rpc_address: 0.0.0.0
# be set to 0.0.0.0. If left blank, this will be set to the value of
# rpc_address. If rpc_address is set to 0.0.0.0, broadcast_rpc_address must
# be set.
broadcast_rpc_address: 10.0.24.3
broadcast_rpc_address: 10.0.7.3

# enable or disable keepalive on rpc/native connections
rpc_keepalive: true
Expand Down
5 changes: 4 additions & 1 deletion services/payments/dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM eclipse-temurin:21-jre-alpine
RUN mkdir -p /logs
RUN chmod -R 777 /logs
VOLUME /tmp
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} payments.jar
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /payments.jar ${0} ${@}"]
COPY src/main/resources/log4j2.xml /log4j2.xml
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -Dlog4j.configurationFile=/log4j2.xml -jar /payments.jar ${0} ${@}"]

0 comments on commit fa2807e

Please sign in to comment.