Guest User

Untitled

a guest
May 9th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. 2018-05-09T20:08:15Z }'
  2. 2018-05-09T20:08:15Z + local 'CONTAINER_STOPPED_REASONS=web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
  3. 2018-05-09T20:08:15Z
  4. 2018-05-09T20:08:15Z db: '
  5. 2018-05-09T20:08:15Z + '[' -n 'Essential container in task exited' ']'
  6. 2018-05-09T20:08:15Z + error 'ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
  7. 2018-05-09T20:08:15Z
  8. 2018-05-09T20:08:15Z db: )'
  9. 2018-05-09T20:08:15Z + echo 'ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
  10. 2018-05-09T20:08:15Z
  11. 2018-05-09T20:08:15Z db: )'
  12. 2018-05-09T20:08:15Z ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
  13. 2018-05-09T20:08:15Z
  14. 2018-05-09T20:08:15Z db: )
  15. 2018-05-09T20:08:15Z + eventHelper.py --msg 'ECS task stopped due to: Essential container in task exited. (web: CannotCreateContainerError: API error (400): create .: volume name is too short, names should be at least two alphanumeric characters
  16. 2018-05-09T20:08:15Z
  17. 2018-05-09T20:08:15Z db: )' --severity ERROR
  18.  
  19. version: '3'
  20.  
  21. services:
  22. db:
  23. image: postgres:10.1
  24. environment:
  25. - POSTGRES_USER=rdeng
  26. - POSTGRES_PASSWORD=walterfedy
  27. - POSTGRES_DB=db1
  28. ports:
  29.  
  30. - "5432:5432"
  31. volumes:
  32. - postgres_data:/var/lib/postgresql/data/
  33. web:
  34. image: rdeng/test:latest
  35. build: this
  36. environment:
  37. - RDS_DB_NAME=db1
  38. - RDS_USERNAME=rdeng
  39. - RDS_HOSTNAME=db
  40. - RDS_PASSWORD=walterfedy
  41. - RDS_PORT=5432
  42. command: bash -c "python /code/manage.py makemigrations && python /code/manage.py migrate && python /code/manage.py runserver 0.0.0.0:8000"
  43. volumes:
  44. - this:/code
  45. ports:
  46. - "8000:8000"
  47. depends_on:
  48. - db
  49.  
  50. volumes:
  51. postgres_data:
  52.  
  53. {
  54. "AWSEBDockerrunVersion": 2,
  55. "containerDefinitions": [
  56. {
  57. "environment": [
  58. {
  59. "name": "POSTGRES_USER",
  60. "value": "rdeng"
  61. },
  62. {
  63. "name": "POSTGRES_PASSWORD",
  64. "value": "walterfedy"
  65. },
  66. {
  67. "name": "POSTGRES_DB",
  68. "value": "db1"
  69. }
  70. ],
  71. "essential": true,
  72. "image": "postgres:10.1",
  73. "mountPoints": [
  74. {
  75. "containerPath": "/var/lib/postgresql/data/",
  76. "sourceVolume": "Postgres_Data"
  77. }
  78. ],
  79. "name": "db",
  80. "memory":64,
  81. "portMappings": [
  82. {
  83. "containerPort": 5432,
  84. "hostPort": 5432
  85. }
  86. ]
  87. },
  88. {
  89. "command": [
  90. "bash",
  91. "-c",
  92. "python /code/manage.py makemigrations && python /code/manage.py migrate && python /code/manage.py runserver 0.0.0.0:8000"
  93. ],
  94. "environment": [
  95. {
  96. "name": "RDS_DB_NAME",
  97. "value": "db1"
  98. },
  99. {
  100. "name": "RDS_USERNAME",
  101. "value": "rdeng"
  102. },
  103. {
  104. "name": "RDS_HOSTNAME",
  105. "value": "db"
  106. },
  107. {
  108. "name": "RDS_PASSWORD",
  109. "value": "walterfedy"
  110. },
  111. {
  112. "name": "RDS_PORT",
  113. "value": "5432"
  114. }
  115. ],
  116. "essential": true,
  117. "memory":64,
  118. "image": "rdeng/test:latest",
  119. "mountPoints": [
  120. {
  121. "containerPath": "/code",
  122. "sourceVolume": "code"
  123. }
  124. ],
  125. "name": "web",
  126. "portMappings": [
  127. {
  128. "containerPort": 8000,
  129. "hostPort": 8000
  130. }
  131. ]
  132. }
  133. ],
  134. "family": "",
  135. "volumes": [
  136. {
  137. "host": {
  138. "sourcePath": "postgres_data"
  139. },
  140. "name": "Postgres_Data"
  141. },
  142. {
  143. "host": {
  144. "sourcePath": "."
  145. },
  146. "name": "code"
  147. }
  148. ]
  149. }
Add Comment
Please, Sign In to add comment