Skip to content

Commit

Permalink
env shift
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth committed Jun 30, 2019
1 parent 4dda2c1 commit 13b93fb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RH_ORG=xxxx
RH_ACTIVATION=xxxxx
SPLUNK_HEC_TOKEN=a778f63a-5dff-4e3c-a72c-a03183659e94
SPLUNK_PASSWORD=Changed@11
SPLUNK_START_ARGS=--accept-license
SPLUNK_HEC_URL=https://splunk:8088/services/collector/event
SPLUNK_HEC_STATSURL=https://splunk:8088/services/collector/event
SPLUNK_CONNECT_METHOD=hec
SPLUNK_DEFAULT_INDEX=main
SPLUNK_METRICS_INDEX=metrics
28 changes: 17 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ services:
volumes:
- sc4s-tests:/work/tests
- sc4s-results:/work/test-results
environment:
- SPLUNK_PASSWORD

sc4s:
image: rfaircloth/scs:master
build: ./package
# image: rfaircloth/scs:latest
build:
context: ./package
args:
RH_ORG: $RH_ORG
RH_ACTIVATION: $RH_ACTIVATION
hostname: sc4s
ports:
- "514"
Expand All @@ -24,12 +30,12 @@ services:
links:
- splunk
environment:
- SPLUNK_HEC_URL=https://splunk:8088/services/collector/event
- SPLUNK_HEC_STATSURL=https://splunk:8088/services/collector/event
- SPLUNK_HEC_TOKEN=a778f63a-5dff-4e3c-a72c-a03183659e94
- SPLUNK_CONNECT_METHOD=hec
- SPLUNK_DEFAULT_INDEX=main
- SPLUNK_METRICS_INDEX=metrics
- SPLUNK_HEC_URL
- SPLUNK_HEC_STATSURL
- SPLUNK_HEC_TOKEN
- SPLUNK_CONNECT_METHOD
- SPLUNK_DEFAULT_INDEX
- SPLUNK_METRICS_INDEX
# logging:
# driver: splunk
# options:
Expand All @@ -46,9 +52,9 @@ services:
- "8088:8088"
- "8089:8089"
environment:
- SPLUNK_HEC_TOKEN=a778f63a-5dff-4e3c-a72c-a03183659e94
- SPLUNK_PASSWORD=Changed@11
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_HEC_TOKEN
- SPLUNK_PASSWORD
- SPLUNK_START_ARGS
# logging:
# driver: splunk
# options:
Expand Down
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ COPY requirements.txt /
RUN pip3 install -r /requirements.txt
RUN mkdir -p /work/tests
RUN mkdir -p /work/test-results/functional
WORKDIR /work
#WORKDIR /work
CMD cd /work;python -m pytest --junitxml=/work/test-results/functional/functional.xml
1 change: 0 additions & 1 deletion tests/test_poc.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def sendsingle(message):
if tried > 90:
raise
sleep(1)

sock.sendall(str.encode(message))
sock.close()

Expand Down

0 comments on commit 13b93fb

Please sign in to comment.