Skip to content

Commit 9a643ca

Browse files
committed
Move python script to a startup script so fresh data is generated.
1 parent 55cee36 commit 9a643ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker-init/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ COPY requirements.txt .
99
RUN pip3 install --upgrade pip; pip3 install -r requirements.txt
1010

1111
COPY generate_anomalous_data.py .
12+
COPY start.sh /start.sh
13+
RUN chmod +x /start.sh
1214

1315
ENV DYNAMO_ENDPOINT="http://localhost:8000"
1416
ENV AWS_DEFAULT_REGION="fakeregion"
1517
ENV AWS_ACCESS_KEY_ID="fakeaccesskey"
1618
ENV AWS_SECRET_ACCESS_KEY="fakesecretkey"
1719

18-
RUN python3 generate_anomalous_data.py
20+
CMD ["/start.sh"]

docker-init/start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
python3 generate_anomalous_data.py
3+
exec "$@"

0 commit comments

Comments
 (0)