Browse Source

initial commit

master
Dominique Roux 2 years ago
commit
c62d7692db
  1. 8
      DCPValidator/Dockerfile
  2. BIN
      DCPValidator/dcp-validator_162-20150915221441_amd64-14.04.deb
  3. 11
      DCPValidator/entry.sh
  4. 4
      README.md
  5. 5
      build_script.sh
  6. 4
      run_script.sh

8
DCPValidator/Dockerfile

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

BIN
DCPValidator/dcp-validator_162-20150915221441_amd64-14.04.deb

Binary file not shown.

11
DCPValidator/entry.sh

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

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

5
build_script.sh

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

4
run_script.sh

@ -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…
Cancel
Save