Browse Source

Adiciona script bash para conexao ao banco

pull/999/head
Matheus Veleci 9 years ago
committed by Edward Ribeiro
parent
commit
aacaa4bf7c
  1. 1
      .gitignore
  2. 12
      busy-wait.sh
  3. 6
      docker-compose.yml
  4. 1
      postgres-data/data/PG_VERSION
  5. BIN
      postgres-data/data/base/1/112
  6. BIN
      postgres-data/data/base/1/113
  7. BIN
      postgres-data/data/base/1/12242
  8. BIN
      postgres-data/data/base/1/12242_fsm
  9. BIN
      postgres-data/data/base/1/12242_vm
  10. 0
      postgres-data/data/base/1/12244
  11. BIN
      postgres-data/data/base/1/12246
  12. BIN
      postgres-data/data/base/1/12247
  13. BIN
      postgres-data/data/base/1/12247_fsm
  14. BIN
      postgres-data/data/base/1/12247_vm
  15. 0
      postgres-data/data/base/1/12249
  16. BIN
      postgres-data/data/base/1/12251
  17. BIN
      postgres-data/data/base/1/12252
  18. BIN
      postgres-data/data/base/1/12252_fsm
  19. BIN
      postgres-data/data/base/1/12252_vm
  20. 0
      postgres-data/data/base/1/12254
  21. BIN
      postgres-data/data/base/1/12256
  22. BIN
      postgres-data/data/base/1/12257
  23. BIN
      postgres-data/data/base/1/12257_fsm
  24. BIN
      postgres-data/data/base/1/12257_vm
  25. 0
      postgres-data/data/base/1/12259
  26. BIN
      postgres-data/data/base/1/12261
  27. BIN
      postgres-data/data/base/1/12262
  28. BIN
      postgres-data/data/base/1/12262_fsm
  29. BIN
      postgres-data/data/base/1/12262_vm
  30. 0
      postgres-data/data/base/1/12264
  31. BIN
      postgres-data/data/base/1/12266
  32. BIN
      postgres-data/data/base/1/12267
  33. BIN
      postgres-data/data/base/1/12267_fsm
  34. BIN
      postgres-data/data/base/1/12267_vm
  35. 0
      postgres-data/data/base/1/12269
  36. BIN
      postgres-data/data/base/1/12271
  37. 0
      postgres-data/data/base/1/12272
  38. 0
      postgres-data/data/base/1/12274
  39. BIN
      postgres-data/data/base/1/12276
  40. BIN
      postgres-data/data/base/1/1247
  41. BIN
      postgres-data/data/base/1/1247_fsm
  42. BIN
      postgres-data/data/base/1/1247_vm
  43. BIN
      postgres-data/data/base/1/1249
  44. BIN
      postgres-data/data/base/1/1249_fsm
  45. BIN
      postgres-data/data/base/1/1249_vm
  46. BIN
      postgres-data/data/base/1/1255
  47. BIN
      postgres-data/data/base/1/1255_fsm
  48. BIN
      postgres-data/data/base/1/1255_vm
  49. BIN
      postgres-data/data/base/1/1259
  50. BIN
      postgres-data/data/base/1/1259_fsm
  51. BIN
      postgres-data/data/base/1/1259_vm
  52. 0
      postgres-data/data/base/1/1417
  53. 0
      postgres-data/data/base/1/1417_vm
  54. 0
      postgres-data/data/base/1/1418
  55. 0
      postgres-data/data/base/1/1418_vm
  56. BIN
      postgres-data/data/base/1/174
  57. BIN
      postgres-data/data/base/1/175
  58. BIN
      postgres-data/data/base/1/2187
  59. 0
      postgres-data/data/base/1/2328
  60. 0
      postgres-data/data/base/1/2328_vm
  61. 0
      postgres-data/data/base/1/2336
  62. 0
      postgres-data/data/base/1/2336_vm
  63. BIN
      postgres-data/data/base/1/2337
  64. BIN
      postgres-data/data/base/1/2600
  65. BIN
      postgres-data/data/base/1/2600_fsm
  66. BIN
      postgres-data/data/base/1/2600_vm
  67. BIN
      postgres-data/data/base/1/2601
  68. BIN
      postgres-data/data/base/1/2601_fsm
  69. BIN
      postgres-data/data/base/1/2601_vm
  70. BIN
      postgres-data/data/base/1/2602
  71. BIN
      postgres-data/data/base/1/2602_fsm
  72. BIN
      postgres-data/data/base/1/2602_vm
  73. BIN
      postgres-data/data/base/1/2603
  74. BIN
      postgres-data/data/base/1/2603_fsm
  75. BIN
      postgres-data/data/base/1/2603_vm
  76. 0
      postgres-data/data/base/1/2604
  77. 0
      postgres-data/data/base/1/2604_vm
  78. BIN
      postgres-data/data/base/1/2605
  79. BIN
      postgres-data/data/base/1/2605_fsm
  80. BIN
      postgres-data/data/base/1/2605_vm
  81. BIN
      postgres-data/data/base/1/2606
  82. BIN
      postgres-data/data/base/1/2606_fsm
  83. BIN
      postgres-data/data/base/1/2606_vm
  84. BIN
      postgres-data/data/base/1/2607
  85. BIN
      postgres-data/data/base/1/2607_fsm
  86. BIN
      postgres-data/data/base/1/2607_vm
  87. BIN
      postgres-data/data/base/1/2608
  88. BIN
      postgres-data/data/base/1/2608_fsm
  89. BIN
      postgres-data/data/base/1/2608_vm
  90. BIN
      postgres-data/data/base/1/2609
  91. BIN
      postgres-data/data/base/1/2609_fsm
  92. BIN
      postgres-data/data/base/1/2609_vm
  93. BIN
      postgres-data/data/base/1/2610
  94. BIN
      postgres-data/data/base/1/2610_fsm
  95. BIN
      postgres-data/data/base/1/2610_vm
  96. 0
      postgres-data/data/base/1/2611
  97. 0
      postgres-data/data/base/1/2611_vm
  98. BIN
      postgres-data/data/base/1/2612
  99. BIN
      postgres-data/data/base/1/2612_fsm
  100. BIN
      postgres-data/data/base/1/2612_vm

1
.gitignore

@ -94,4 +94,3 @@ bower_components
media
whoosh/
postgres-data/

12
busy-wait.sh

@ -0,0 +1,12 @@
#!/bin/sh
#
while true; do
COUNT_PG=`netstat -an | grep "tcp.*:5532.*LISTEN"| wc -l`
if ! [ "$COUNT_PG" -eq "0" ]; then
break
fi
echo "Esperando BD"
sleep 5
done

6
docker-compose.yml

@ -8,7 +8,7 @@ server:
- web
links:
- web
localhost:
sapl_db:
image: postgres
environment:
POSTGRES_PASSWORD: sapl
@ -21,8 +21,8 @@ localhost:
- "5532:5432"
web:
build: .
command: /bin/sh -c "sleep 75 && python3 manage.py bower install && python3 manage.py migrate && /bin/sh gunicorn_start.sh"
command: /bin/sh -c "/bin/sh busy-wait.sh && python3 manage.py bower install && python3 manage.py migrate && /bin/sh gunicorn_start.sh"
volumes:
- .:/sapl
links:
- localhost
- sapl_db

1
postgres-data/data/PG_VERSION

@ -1 +0,0 @@
9.6

BIN
postgres-data/data/base/1/112

Binary file not shown.

BIN
postgres-data/data/base/1/113

Binary file not shown.

BIN
postgres-data/data/base/1/12242

Binary file not shown.

BIN
postgres-data/data/base/1/12242_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/12242_vm

Binary file not shown.

0
postgres-data/data/base/1/12244

BIN
postgres-data/data/base/1/12246

Binary file not shown.

BIN
postgres-data/data/base/1/12247

Binary file not shown.

BIN
postgres-data/data/base/1/12247_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/12247_vm

Binary file not shown.

0
postgres-data/data/base/1/12249

BIN
postgres-data/data/base/1/12251

Binary file not shown.

BIN
postgres-data/data/base/1/12252

Binary file not shown.

BIN
postgres-data/data/base/1/12252_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/12252_vm

Binary file not shown.

0
postgres-data/data/base/1/12254

BIN
postgres-data/data/base/1/12256

Binary file not shown.

BIN
postgres-data/data/base/1/12257

Binary file not shown.

BIN
postgres-data/data/base/1/12257_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/12257_vm

Binary file not shown.

0
postgres-data/data/base/1/12259

BIN
postgres-data/data/base/1/12261

Binary file not shown.

BIN
postgres-data/data/base/1/12262

Binary file not shown.

BIN
postgres-data/data/base/1/12262_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/12262_vm

Binary file not shown.

0
postgres-data/data/base/1/12264

BIN
postgres-data/data/base/1/12266

Binary file not shown.

BIN
postgres-data/data/base/1/12267

Binary file not shown.

BIN
postgres-data/data/base/1/12267_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/12267_vm

Binary file not shown.

0
postgres-data/data/base/1/12269

BIN
postgres-data/data/base/1/12271

Binary file not shown.

0
postgres-data/data/base/1/12272

0
postgres-data/data/base/1/12274

BIN
postgres-data/data/base/1/12276

Binary file not shown.

BIN
postgres-data/data/base/1/1247

Binary file not shown.

BIN
postgres-data/data/base/1/1247_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/1247_vm

Binary file not shown.

BIN
postgres-data/data/base/1/1249

Binary file not shown.

BIN
postgres-data/data/base/1/1249_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/1249_vm

Binary file not shown.

BIN
postgres-data/data/base/1/1255

Binary file not shown.

BIN
postgres-data/data/base/1/1255_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/1255_vm

Binary file not shown.

BIN
postgres-data/data/base/1/1259

Binary file not shown.

BIN
postgres-data/data/base/1/1259_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/1259_vm

Binary file not shown.

0
postgres-data/data/base/1/1417

0
postgres-data/data/base/1/1417_vm

0
postgres-data/data/base/1/1418

0
postgres-data/data/base/1/1418_vm

BIN
postgres-data/data/base/1/174

Binary file not shown.

BIN
postgres-data/data/base/1/175

Binary file not shown.

BIN
postgres-data/data/base/1/2187

Binary file not shown.

0
postgres-data/data/base/1/2328

0
postgres-data/data/base/1/2328_vm

0
postgres-data/data/base/1/2336

0
postgres-data/data/base/1/2336_vm

BIN
postgres-data/data/base/1/2337

Binary file not shown.

BIN
postgres-data/data/base/1/2600

Binary file not shown.

BIN
postgres-data/data/base/1/2600_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2600_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2601

Binary file not shown.

BIN
postgres-data/data/base/1/2601_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2601_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2602

Binary file not shown.

BIN
postgres-data/data/base/1/2602_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2602_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2603

Binary file not shown.

BIN
postgres-data/data/base/1/2603_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2603_vm

Binary file not shown.

0
postgres-data/data/base/1/2604

0
postgres-data/data/base/1/2604_vm

BIN
postgres-data/data/base/1/2605

Binary file not shown.

BIN
postgres-data/data/base/1/2605_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2605_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2606

Binary file not shown.

BIN
postgres-data/data/base/1/2606_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2606_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2607

Binary file not shown.

BIN
postgres-data/data/base/1/2607_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2607_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2608

Binary file not shown.

BIN
postgres-data/data/base/1/2608_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2608_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2609

Binary file not shown.

BIN
postgres-data/data/base/1/2609_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2609_vm

Binary file not shown.

BIN
postgres-data/data/base/1/2610

Binary file not shown.

BIN
postgres-data/data/base/1/2610_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2610_vm

Binary file not shown.

0
postgres-data/data/base/1/2611

0
postgres-data/data/base/1/2611_vm

BIN
postgres-data/data/base/1/2612

Binary file not shown.

BIN
postgres-data/data/base/1/2612_fsm

Binary file not shown.

BIN
postgres-data/data/base/1/2612_vm

Binary file not shown.

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

Loading…
Cancel
Save