Skip to content

Commit beca4c7

Browse files
committed
default configuration files
1 parent ef3cd88 commit beca4c7

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM alpine:latest
22

3-
RUN apk update
4-
RUN apk add python3 py3-pip curl
3+
RUN apk update
4+
RUN apk add python3 py3-pip curl make
55

66
EXPOSE 80/tcp
77

@@ -11,6 +11,8 @@ RUN mkdir -p /web
1111
COPY . /web/
1212
WORKDIR /web
1313

14+
RUN cd ./config && make
15+
1416
RUN pip install -r /web/requirements.txt
1517

1618
ENTRYPOINT ["/usr/bin/gunicorn", "--bind", "0.0.0.0:80", "wsgi:app"]

config/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
install: dashboard.json testbench.json users.json
2+
@cp ./dashboard.json /etc/
3+
@cp ./testbench.json /etc/
4+
@cp ./users.json /etc/

config/dashboard.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"host": "127.0.0.1",
3+
"port": 8089,
4+
"debug": false
5+
}

config/testbench.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"server": "http://127.0.0.1:8089",
3+
"offline": false
4+
}

config/users.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"name": "Petar Petrović",
4+
"username": "petar"
5+
}
6+
]

0 commit comments

Comments
 (0)