Add Docker, remove test data

This commit is contained in:
phillip committed 2019-05-26 03:13:18 +02:00
1 parent c62314d9eb
commit 83a7b195f2
11 files changed
+13 -5

No files matched your search

+1
View File
@@ -131,3 +131,4 @@ dmypy.json
# Test data # Test data
test.db test.db
config.json
+11
View File
@@ -0,0 +1,11 @@
FROM tiangolo/uwsgi-nginx-flask:python3.7
RUN pip install requests
RUN pip install pandas
RUN pip install Flask-BasicAuth
RUN pip install bs4
COPY ./app /app
View File
File renamed without changes.
+1 -1
View File
@@ -25,7 +25,7 @@ def setup_config(app):
config = json.load(handle) config = json.load(handle)
print("Loaded existing config") print("Loaded existing config")
else: else:
config = {'username': 'admin', 'password': 'Karaoke2019blubb'} config = {'username': 'admin', 'password': 'changeme'}
with open(config_file, 'w') as handle: with open(config_file, 'w') as handle:
json.dump(config, handle, indent=4, sort_keys=True) json.dump(config, handle, indent=4, sort_keys=True)
print("Wrote new config") print("Wrote new config")
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-4
View File
@@ -1,4 +0,0 @@
{
"password": "w",
"username": "admin"
}