Skip to content

Commit eee1fc8

Browse files
author
Christian Kniep
committed
add Dockerfile
1 parent 3cf518a commit eee1fc8

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dockerfile

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM qnib/alpn-base
2+
3+
ADD . /opt/kernelscope/
4+
RUN apk add --no-cache sqlite python3
5+
RUN cat /opt/kernelscope/kernelscope-sqlite.sql | sqlite3 /var/lib/kernelscope.db
6+
RUN apk --no-cache add py-pip mysql-dev gcc python-dev linux-headers musl-dev \
7+
&& pip install mysql
8+
9+
CMD ["python", "/opt/kernelscope/src/KernelscopeLoggerService.py", "--sqlite", "kernelscope.db", "8081"]
10+

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '2'
2+
services:
3+
kernelscope:
4+
image: qnib/kernelscope
5+
hostname: kernelscope
6+
container_name: kernelscope
7+
ports:
8+
- 8081:8081
9+
privileged: true

0 commit comments

Comments
 (0)