initial commit

This commit is contained in:
Dominique Roux 2020-04-27 11:32:33 +02:00
commit c62d7692db
6 changed files with 32 additions and 0 deletions

8
DCPValidator/Dockerfile Normal file
View file

@ -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

11
DCPValidator/entry.sh Executable file
View file

@ -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

4
README.md Normal file
View file

@ -0,0 +1,4 @@
# Installation
* Install Docker (on \*buntu systems https://docs.docker.com/engine/install/ubuntu/)
* get the

5
build_script.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
## create the image
docker build -t dcpvalidator --network=host ./DCPValidator

4
run_script.sh Executable file
View file

@ -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