From d7ff93c1d31a18e0e7fef8f5f543dc8538268f9f Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 22 Apr 2017 15:37:39 -0700 Subject: [PATCH] Initial commit --- .gitmodules | 3 +++ Dockerfile | 5 +++++ README.md | 1 + backupdb-scripts | 1 + default | 25 +++++++++++++++++++++++++ makedirs | 8 ++++++++ 6 files changed, 43 insertions(+) create mode 100644 .gitmodules create mode 100644 Dockerfile create mode 100644 README.md create mode 160000 backupdb-scripts create mode 100644 default create mode 100755 makedirs diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cd16172 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "backupdb-scripts"] + path = backupdb-scripts + url = ssh://git@gitlab.davepedu.com:222/dave/datadb-scripts.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a9ac38c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM apps2reg:5000/dpedu/nexus + +ADD default /etc/nginx/sites-available/default +ADD makedirs /start.d/ +ADD backupdb-scripts /usr/share/backupdb diff --git a/README.md b/README.md new file mode 100644 index 0000000..71369f7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +For more info see: http://gitlab.davepedu.com/dave/datadb-cli diff --git a/backupdb-scripts b/backupdb-scripts new file mode 160000 index 0000000..7ab5761 --- /dev/null +++ b/backupdb-scripts @@ -0,0 +1 @@ +Subproject commit 7ab5761959b8143d19a0d3df83d2fc5617cc35e9 diff --git a/default b/default new file mode 100644 index 0000000..f22f5c3 --- /dev/null +++ b/default @@ -0,0 +1,25 @@ +server { + listen 80 default_server; + #listen [::]:80 default_server ipv6only=on; + + root /nexus/; + + index index.html index.htm; + server_name localhost; + client_body_temp_path /nexus/datadb/tmp/; + + location / { + autoindex on; + try_files $uri $uri/ =404; + } + location /cgi-bin/ { + alias /usr/share/backupdb/; + gzip off; + fastcgi_pass unix:/tmp/fcgiwrap.socket; + include /etc/nginx/fastcgi_params; + fastcgi_param SCRIPT_FILENAME /usr/share/backupdb$fastcgi_script_name; + fastcgi_read_timeout 600s; + fastcgi_send_timeout 600s; + client_max_body_size 4096m; + } +} diff --git a/makedirs b/makedirs new file mode 100755 index 0000000..6b708d6 --- /dev/null +++ b/makedirs @@ -0,0 +1,8 @@ +#!/bin/sh + +mkdir -p /nexus/datadb/tmp /nexus/datadb/backups + +chown nexus:nexus \ + /nexus/datadb \ + /nexus/datadb/tmp \ + /nexus/datadb/backups