some refactor in docer-compose and Docker- add nginx from source

prod
Dmitriy Shesterkin 9 years ago
parent 01cbd02108
commit f65b4fe4e4
  1. 17
      .dockerignore
  2. 1
      .gitignore
  3. 50
      Dockerfile
  4. 1
      db/PG_VERSION
  5. BIN
      db/base/1/112
  6. BIN
      db/base/1/113
  7. BIN
      db/base/1/12242
  8. BIN
      db/base/1/12242_fsm
  9. BIN
      db/base/1/12242_vm
  10. 0
      db/base/1/12244
  11. BIN
      db/base/1/12246
  12. BIN
      db/base/1/12247
  13. BIN
      db/base/1/12247_fsm
  14. BIN
      db/base/1/12247_vm
  15. 0
      db/base/1/12249
  16. BIN
      db/base/1/12251
  17. BIN
      db/base/1/12252
  18. BIN
      db/base/1/12252_fsm
  19. BIN
      db/base/1/12252_vm
  20. 0
      db/base/1/12254
  21. BIN
      db/base/1/12256
  22. BIN
      db/base/1/12257
  23. BIN
      db/base/1/12257_fsm
  24. BIN
      db/base/1/12257_vm
  25. 0
      db/base/1/12259
  26. BIN
      db/base/1/12261
  27. BIN
      db/base/1/12262
  28. BIN
      db/base/1/12262_fsm
  29. BIN
      db/base/1/12262_vm
  30. 0
      db/base/1/12264
  31. BIN
      db/base/1/12266
  32. BIN
      db/base/1/12267
  33. BIN
      db/base/1/12267_fsm
  34. BIN
      db/base/1/12267_vm
  35. 0
      db/base/1/12269
  36. BIN
      db/base/1/12271
  37. 0
      db/base/1/12272
  38. 0
      db/base/1/12274
  39. BIN
      db/base/1/12276
  40. BIN
      db/base/1/1247
  41. BIN
      db/base/1/1247_fsm
  42. BIN
      db/base/1/1247_vm
  43. BIN
      db/base/1/1249
  44. BIN
      db/base/1/1249_fsm
  45. BIN
      db/base/1/1249_vm
  46. BIN
      db/base/1/1255
  47. BIN
      db/base/1/1255_fsm
  48. BIN
      db/base/1/1255_vm
  49. BIN
      db/base/1/1259
  50. BIN
      db/base/1/1259_fsm
  51. BIN
      db/base/1/1259_vm
  52. 0
      db/base/1/1417
  53. 0
      db/base/1/1417_vm
  54. 0
      db/base/1/1418
  55. 0
      db/base/1/1418_vm
  56. BIN
      db/base/1/174
  57. BIN
      db/base/1/175
  58. BIN
      db/base/1/2187
  59. 0
      db/base/1/2328
  60. 0
      db/base/1/2328_vm
  61. 0
      db/base/1/2336
  62. 0
      db/base/1/2336_vm
  63. BIN
      db/base/1/2337
  64. BIN
      db/base/1/2600
  65. BIN
      db/base/1/2600_fsm
  66. BIN
      db/base/1/2600_vm
  67. BIN
      db/base/1/2601
  68. BIN
      db/base/1/2601_fsm
  69. BIN
      db/base/1/2601_vm
  70. BIN
      db/base/1/2602
  71. BIN
      db/base/1/2602_fsm
  72. BIN
      db/base/1/2602_vm
  73. BIN
      db/base/1/2603
  74. BIN
      db/base/1/2603_fsm
  75. BIN
      db/base/1/2603_vm
  76. 0
      db/base/1/2604
  77. 0
      db/base/1/2604_vm
  78. BIN
      db/base/1/2605
  79. BIN
      db/base/1/2605_fsm
  80. BIN
      db/base/1/2605_vm
  81. BIN
      db/base/1/2606
  82. BIN
      db/base/1/2606_fsm
  83. BIN
      db/base/1/2606_vm
  84. BIN
      db/base/1/2607
  85. BIN
      db/base/1/2607_fsm
  86. BIN
      db/base/1/2607_vm
  87. BIN
      db/base/1/2608
  88. BIN
      db/base/1/2608_fsm
  89. BIN
      db/base/1/2608_vm
  90. BIN
      db/base/1/2609
  91. BIN
      db/base/1/2609_fsm
  92. BIN
      db/base/1/2609_vm
  93. BIN
      db/base/1/2610
  94. BIN
      db/base/1/2610_fsm
  95. BIN
      db/base/1/2610_vm
  96. 0
      db/base/1/2611
  97. 0
      db/base/1/2611_vm
  98. BIN
      db/base/1/2612
  99. BIN
      db/base/1/2612_fsm
  100. BIN
      db/base/1/2612_vm
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,8 +1,9 @@
env /env
compose /compose
public /public
node_modules /node_modules
bower_components /bower_components
tmp_emails /tmp_emails
tmp /tmp
var /var
/db

1
.gitignore vendored

@ -18,6 +18,7 @@ yandex_money.log
/src/dokumentor/media/ /src/dokumentor/media/
/tmp/ /tmp/
/data/ /data/
/db/
/public/ /public/
conf/env conf/env
!local.py !local.py

@ -1,22 +1,58 @@
FROM python:3.6 FROM python:3.6
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
ENV NGINX_VERSION="1.12.0" \
NGINX_OPTS="--with-http_ssl_module \
--with-http_gzip_static_module \
--prefix=/usr/share/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--add-module=/tmp/modules/nginx_requestid-master"
COPY requirements /opt/app/requirements COPY requirements /opt/app/requirements
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get upgrade -y && \ apt-get upgrade -y && \
apt-get -y install ghostscript libfreetype6-dev python3-dev nginx supervisor make && \ apt-get -y install ghostscript \
libfreetype6-dev \
python3-dev \
supervisor \
make && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
# Download additional nginx modules
mkdir -p /tmp/modules && \
cd /tmp/modules && \
wget -O nginx-requestid.tar.gz https://github.com/hhru/nginx_requestid/archive/master.tar.gz && \
tar xvzf nginx-requestid.tar.gz && \
# Download and compile nginx
cd /tmp && \
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \
tar xzvf nginx-${NGINX_VERSION}.tar.gz && \
cd nginx-${NGINX_VERSION} && \
./configure ${NGINX_OPTS} && \
make && \
make install && \
pip install --upgrade pip && \ pip install --upgrade pip && \
pip install --no-cache-dir -r /opt/app/requirements/production.txt && \ pip install --no-cache-dir -r /opt/app/requirements/production.txt && \
# Nginx
chown -R www-data:www-data /var/lib/nginx && \
# Delete build dependencies after use # Delete build dependencies after use
rm -r /root/.cache cd /tmp \
&& rm -rf \
modules \
nginx-${NGINX_VERSION} \
nginx-${NGINX_VERSION}.tar.gz \
/var/cache/apt/* \
/root/.cache \
/var/lib/apt/lists/*
# for gitlab cli
COPY . /opt/app COPY . /opt/app
VOLUME ["/opt/app/public/media"] VOLUME ["/opt/app/public/media"]
WORKDIR /opt/app WORKDIR /opt/app

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save