initial commit
commit
c62d7692db
@ -0,0 +1,8 @@
|
||||
FROM ubuntu:14.04
|
||||
COPY dcp-validator_162-20150915221441_amd64-14.04.deb /root/
|
||||
RUN apt-get update
|
||||
RUN dpkg -i /root/dcp-validator_162-20150915221441_amd64-14.04.deb; apt-get install -fy
|
||||
RUN apt-get install -y sqlite
|
||||
RUN sqlite3 /opt/dcp-validator/db/production.sqlite3 'INSERT INTO settings VALUES (1,"/media/dcp","2020-03-30 09:53:20.64615","2020-03-30 09:53:20.64615")'
|
||||
COPY entry.sh /root/
|
||||
CMD /root/entry.sh
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Starting redis server
|
||||
/etc/init.d/redis-server start
|
||||
|
||||
# Set the correct environment variables
|
||||
export PORT=8080
|
||||
. /etc/default/dcp-validator
|
||||
|
||||
# Run the worker
|
||||
exec dcp-validator run worker & exec dcp-validator run web
|
@ -0,0 +1,4 @@
|
||||
# Installation
|
||||
|
||||
* Install Docker (on \*buntu systems https://docs.docker.com/engine/install/ubuntu/)
|
||||
* get the
|
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
## create the image
|
||||
|
||||
docker build -t dcpvalidator --network=host ./DCPValidator
|
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run the container as a daemon
|
||||
docker run -d --name dcpvalidator --mount type=bind,source="$(pwd)",target=/media/dcp -it --network=host dcpvalidator
|
Loading…
Reference in New Issue