Advertisement
Guest User

Untitled

a guest
Feb 7th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.94 KB | None | 0 0
  1. gluck@unknown:~/Documents/code/vivainvest$ docker-compose -f docker-compose.dev.yml up --build
  2. Creating network "vivainvest_default" with the default driver
  3. Building front
  4. Step 1/6 : FROM node:alpine
  5.  ---> ebbf98230a82
  6. Step 2/6 : WORKDIR '/app'
  7.  ---> Using cache
  8.  ---> 8e1446d04cc5
  9. Step 3/6 : COPY ./package.json ./
  10.  ---> Using cache
  11.  ---> 6e84a1f6e07d
  12. Step 4/6 : RUN npm install
  13.  ---> Using cache
  14.  ---> 1c391dd067fe
  15. Step 5/6 : COPY . .
  16.  ---> a6ea9515734b
  17. Step 6/6 : CMD ["npm", "run", "serve"]
  18.  ---> Running in 3a235f6fead2
  19. Removing intermediate container 3a235f6fead2
  20.  ---> 5c3a34bbf96d
  21. Successfully built 5c3a34bbf96d
  22. Successfully tagged vivainvest_front:latest
  23. Pulling redis (redis:latest)...
  24. latest: Pulling from library/redis
  25. 6ae821421a7d: Pull complete
  26. e3717477b42d: Pull complete
  27. 8e70bf6cc2e6: Pull complete
  28. 0f84ab76ce60: Pull complete
  29. 0903bdecada2: Pull complete
  30. 492876061fbd: Pull complete
  31. Digest: sha256:6bed06619a1d020d6958602712f7b453f086006a85d5e942217fd2d7adab9c5e
  32. Status: Downloaded newer image for redis:latest
  33. Building postgres
  34. Step 1/2 : FROM postgres:10
  35. 10: Pulling from library/postgres
  36. 6ae821421a7d: Already exists
  37. 060245e5c056: Pull complete
  38. d6c2e60cfc1c: Pull complete
  39. 38d23c24a9df: Pull complete
  40. 9998068fb35e: Pull complete
  41. 2bb2385a4bb9: Pull complete
  42. 2ad14c51497d: Pull complete
  43. 77519615ed40: Pull complete
  44. b2753cdf16b5: Pull complete
  45. 3e185840221d: Pull complete
  46. 65ed9064c2f2: Pull complete
  47. 70afb8211873: Pull complete
  48. c0a8407cee2d: Pull complete
  49. 9972e0524adf: Pull complete
  50. Digest: sha256:204574a10bcd111a78d1e612e311ab24b2a10a6cd5178a332ac1cb1a24e71fd9
  51. Status: Downloaded newer image for postgres:10
  52.  ---> ebdd3a33f882
  53. Step 2/2 : ADD ./init.sql /docker-entrypoint-initdb.d
  54.  ---> 98422f34b987
  55. Successfully built 98422f34b987
  56. Successfully tagged vivainvest_postgres:latest
  57. Building web
  58. Step 1/16 : FROM python:3.7
  59.  ---> 2fbd95050b66
  60. Step 2/16 : WORKDIR /usr/src/app
  61.  ---> Using cache
  62.  ---> cda238765329
  63. Step 3/16 : RUN apt-get update -y
  64.  ---> Using cache
  65.  ---> 863d32c78609
  66. Step 4/16 : RUN apt-get upgrade -y
  67.  ---> Using cache
  68.  ---> 150c0f0c45ea
  69. Step 5/16 : RUN pip install --upgrade pip
  70.  ---> Using cache
  71.  ---> ffc7ec32d95f
  72. Step 6/16 : RUN apt-get install -y mc
  73.  ---> Using cache
  74.  ---> 16edcc6fd424
  75. Step 7/16 : COPY ./requirements.txt ./
  76.  ---> Using cache
  77.  ---> 82c266d42567
  78. Step 8/16 : RUN pip install -r requirements.txt
  79.  ---> Using cache
  80.  ---> a9d43a01e314
  81. Step 9/16 : RUN apt-get update -y
  82.  ---> Using cache
  83.  ---> a787e72cc6be
  84. Step 10/16 : RUN apt-get install -y mc
  85.  ---> Using cache
  86.  ---> e69534369bb7
  87. Step 11/16 : COPY ./wait-for-it.sh ./
  88.  ---> Using cache
  89.  ---> 26dd7bd4c832
  90. Step 12/16 : COPY ./checkpostgres.py ./
  91.  ---> Using cache
  92.  ---> a2792c44d820
  93. Step 13/16 : RUN chmod +x wait-for-it.sh
  94.  ---> Using cache
  95.  ---> 61b2a43d5775
  96. Step 14/16 : COPY ./src ./src
  97.  ---> 0cda01c701f8
  98. Step 15/16 : RUN mkdir tempfiles
  99.  ---> Running in 02483ff6a092
  100. Removing intermediate container 02483ff6a092
  101.  ---> b50b523c0a2e
  102. Step 16/16 : CMD [ "python3", "./src/manage.py", "runserver", "0.0.0.0:8000" ]
  103.  ---> Running in 244149f1aef6
  104. Removing intermediate container 244149f1aef6
  105.  ---> a3ed8a39b8db
  106. Successfully built a3ed8a39b8db
  107. Successfully tagged vivainvest_web:latest
  108. Creating vivainvest_front_1 ...
  109. Creating vivainvest_postgres_1 ...
  110. Creating vivainvest_redis_1 ...
  111. Creating vivainvest_pgadmin_1 ...
  112. Creating vivainvest_front_1
  113. Creating vivainvest_postgres_1
  114. Creating vivainvest_pgadmin_1
  115. Creating vivainvest_postgres_1 ... done
  116. Creating vivainvest_web_1 ...
  117. Creating vivainvest_web_1 ... done
  118. Attaching to vivainvest_postgres_1, vivainvest_redis_1, vivainvest_pgadmin_1, vivainvest_front_1, vivainvest_web_1
  119. redis_1     | 1:C 07 Feb 2019 07:34:51.784 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
  120. redis_1     | 1:C 07 Feb 2019 07:34:51.789 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=1, just started
  121. redis_1     | 1:C 07 Feb 2019 07:34:51.789 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
  122. redis_1     | 1:M 07 Feb 2019 07:34:51.798 * Running mode=standalone, port=6379.
  123. redis_1     | 1:M 07 Feb 2019 07:34:51.801 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
  124. redis_1     | 1:M 07 Feb 2019 07:34:51.801 # Server initialized
  125. redis_1     | 1:M 07 Feb 2019 07:34:51.801 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
  126. redis_1     | 1:M 07 Feb 2019 07:34:51.802 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
  127. redis_1     | 1:M 07 Feb 2019 07:34:51.802 * Ready to accept connections
  128. postgres_1  | The files belonging to this database system will be owned by user "postgres".
  129. postgres_1  | This user must also own the server process.
  130. postgres_1  |
  131. postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
  132. postgres_1  | The default database encoding has accordingly been set to "UTF8".
  133. postgres_1  | The default text search configuration will be set to "english".
  134. postgres_1  |
  135. postgres_1  | Data page checksums are disabled.
  136. postgres_1  |
  137. postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
  138. postgres_1  | creating subdirectories ... ok
  139. postgres_1  | selecting default max_connections ... 100
  140. postgres_1  | selecting default shared_buffers ... 128MB
  141. postgres_1  | selecting dynamic shared memory implementation ... posix
  142. postgres_1  | creating configuration files ... ok
  143. postgres_1  | running bootstrap script ... ok
  144. postgres_1  | performing post-bootstrap initialization ... ok
  145. pgadmin_1   | [2019-02-07 07:34:55 +0000] [1] [INFO] Starting gunicorn 19.8.1
  146. pgadmin_1   | [2019-02-07 07:34:55 +0000] [1] [INFO] Listening at: http://[::]:80 (1)
  147. pgadmin_1   | [2019-02-07 07:34:55 +0000] [1] [INFO] Using worker: threads
  148. pgadmin_1   | [2019-02-07 07:34:55 +0000] [79] [INFO] Booting worker with pid: 79
  149. web_1       | Traceback (most recent call last):
  150. web_1       |   File "./checkpostgres.py", line 4, in <module>
  151. web_1       |     conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
  152. web_1       |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  153. web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  154. web_1       | psycopg2.OperationalError: could not connect to server: Connection refused
  155. web_1       |   Is the server running on host "postgres" (172.20.0.2) and accepting
  156. web_1       |   TCP/IP connections on port 5432?
  157. web_1       |
  158. web_1       | Postgres is unavailable - sleeping
  159. postgres_1  | syncing data to disk ...
  160. postgres_1  | WARNING: enabling "trust" authentication for local connections
  161. postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
  162. postgres_1  | --auth-local and --auth-host, the next time you run initdb.
  163. postgres_1  | ok
  164. postgres_1  |
  165. postgres_1  | Success. You can now start the database server using:
  166. postgres_1  |
  167. postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
  168. postgres_1  |
  169. postgres_1  | waiting for server to start....2019-02-07 07:34:56.337 UTC [41] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
  170. postgres_1  | 2019-02-07 07:34:56.564 UTC [42] LOG:  database system was shut down at 2019-02-07 07:34:54 UTC
  171. postgres_1  | 2019-02-07 07:34:56.619 UTC [41] LOG:  database system is ready to accept connections
  172. postgres_1  |  done
  173. postgres_1  | server started
  174. front_1     |
  175. front_1     | > front@0.1.0 serve /app
  176. front_1     | > vue-cli-service serve
  177. front_1     |
  178. web_1       | Traceback (most recent call last):
  179. web_1       |   File "./checkpostgres.py", line 4, in <module>
  180. web_1       |     conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
  181. web_1       |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  182. web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  183. web_1       | psycopg2.OperationalError: could not connect to server: Connection refused
  184. web_1       |   Is the server running on host "postgres" (172.20.0.2) and accepting
  185. web_1       |   TCP/IP connections on port 5432?
  186. web_1       |
  187. web_1       | Postgres is unavailable - sleeping
  188. postgres_1  | CREATE DATABASE
  189. postgres_1  |
  190. postgres_1  |
  191. postgres_1  | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.sql
  192. web_1       | Traceback (most recent call last):
  193. web_1       |   File "./checkpostgres.py", line 4, in <module>
  194. web_1       |     conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
  195. web_1       |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  196. web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  197. web_1       | psycopg2.OperationalError: could not connect to server: Connection refused
  198. web_1       |   Is the server running on host "postgres" (172.20.0.2) and accepting
  199. web_1       |   TCP/IP connections on port 5432?
  200. web_1       |
  201. web_1       | Postgres is unavailable - sleeping
  202. postgres_1  | SET
  203. postgres_1  | SET
  204. postgres_1  | SET
  205. postgres_1  | SET
  206. postgres_1  | SET
  207. postgres_1  |  set_config
  208. postgres_1  | ------------
  209. postgres_1  |
  210. postgres_1  | (1 row)
  211. postgres_1  |
  212. postgres_1  | SET
  213. postgres_1  | SET
  214. postgres_1  | SET
  215. postgres_1  | CREATE EXTENSION
  216. postgres_1  | COMMENT
  217. postgres_1  | SET
  218. postgres_1  | SET
  219. front_1     |  INFO  Starting development server...
  220. postgres_1  | CREATE TABLE
  221. postgres_1  | ALTER TABLE
  222. postgres_1  | CREATE SEQUENCE
  223. postgres_1  | ALTER TABLE
  224. postgres_1  | ALTER SEQUENCE
  225. postgres_1  | CREATE TABLE
  226. postgres_1  | ALTER TABLE
  227. postgres_1  | CREATE SEQUENCE
  228. postgres_1  | ALTER TABLE
  229. postgres_1  | ALTER SEQUENCE
  230. postgres_1  | CREATE TABLE
  231. postgres_1  | ALTER TABLE
  232. postgres_1  | CREATE SEQUENCE
  233. postgres_1  | ALTER TABLE
  234. postgres_1  | ALTER SEQUENCE
  235. postgres_1  | CREATE TABLE
  236. postgres_1  | ALTER TABLE
  237. postgres_1  | CREATE TABLE
  238. postgres_1  | ALTER TABLE
  239. postgres_1  | CREATE SEQUENCE
  240. postgres_1  | ALTER TABLE
  241. postgres_1  | ALTER SEQUENCE
  242. postgres_1  | CREATE SEQUENCE
  243. postgres_1  | ALTER TABLE
  244. postgres_1  | ALTER SEQUENCE
  245. postgres_1  | CREATE TABLE
  246. postgres_1  | ALTER TABLE
  247. postgres_1  | CREATE SEQUENCE
  248. postgres_1  | ALTER TABLE
  249. postgres_1  | ALTER SEQUENCE
  250. postgres_1  | CREATE TABLE
  251. postgres_1  | ALTER TABLE
  252. postgres_1  | CREATE SEQUENCE
  253. postgres_1  | ALTER TABLE
  254. postgres_1  | ALTER SEQUENCE
  255. postgres_1  | CREATE TABLE
  256. postgres_1  | ALTER TABLE
  257. postgres_1  | CREATE SEQUENCE
  258. postgres_1  | ALTER TABLE
  259. postgres_1  | ALTER SEQUENCE
  260. postgres_1  | CREATE TABLE
  261. postgres_1  | ALTER TABLE
  262. postgres_1  | CREATE SEQUENCE
  263. postgres_1  | ALTER TABLE
  264. postgres_1  | ALTER SEQUENCE
  265. postgres_1  | CREATE TABLE
  266. postgres_1  | ALTER TABLE
  267. postgres_1  | ALTER TABLE
  268. postgres_1  | ALTER TABLE
  269. postgres_1  | ALTER TABLE
  270. postgres_1  | ALTER TABLE
  271. postgres_1  | ALTER TABLE
  272. postgres_1  | ALTER TABLE
  273. postgres_1  | ALTER TABLE
  274. postgres_1  | ALTER TABLE
  275. postgres_1  | ALTER TABLE
  276. postgres_1  | COPY 0
  277. postgres_1  | COPY 0
  278. postgres_1  | COPY 24
  279. postgres_1  | COPY 1
  280. postgres_1  | COPY 0
  281. postgres_1  | COPY 0
  282. postgres_1  | COPY 0
  283. postgres_1  | COPY 6
  284. postgres_1  | COPY 15
  285. postgres_1  | COPY 0
  286. postgres_1  |  setval
  287. postgres_1  | --------
  288. postgres_1  |       1
  289. postgres_1  | (1 row)
  290. postgres_1  |
  291. postgres_1  |  setval
  292. postgres_1  | --------
  293. postgres_1  |       1
  294. postgres_1  | (1 row)
  295. postgres_1  |
  296. postgres_1  |  setval
  297. postgres_1  | --------
  298. postgres_1  |      24
  299. postgres_1  | (1 row)
  300. postgres_1  |
  301. postgres_1  |  setval
  302. postgres_1  | --------
  303. postgres_1  |       1
  304. postgres_1  | (1 row)
  305. postgres_1  |
  306. postgres_1  |  setval
  307. postgres_1  | --------
  308. postgres_1  |       1
  309. postgres_1  | (1 row)
  310. postgres_1  |
  311. postgres_1  |  setval
  312. postgres_1  | --------
  313. postgres_1  |       1
  314. postgres_1  | (1 row)
  315. postgres_1  |
  316. postgres_1  |  setval
  317. postgres_1  | --------
  318. postgres_1  |       1
  319. postgres_1  | (1 row)
  320. postgres_1  |
  321. postgres_1  |  setval
  322. postgres_1  | --------
  323. postgres_1  |       6
  324. postgres_1  | (1 row)
  325. postgres_1  |
  326. postgres_1  |  setval
  327. postgres_1  | --------
  328. postgres_1  |      15
  329. postgres_1  | (1 row)
  330. postgres_1  |
  331. postgres_1  | ALTER TABLE
  332. postgres_1  | ALTER TABLE
  333. postgres_1  | ALTER TABLE
  334. postgres_1  | ALTER TABLE
  335. postgres_1  | ALTER TABLE
  336. postgres_1  | ALTER TABLE
  337. web_1       | Traceback (most recent call last):
  338. web_1       |   File "./checkpostgres.py", line 4, in <module>
  339. web_1       |     conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
  340. web_1       |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  341. web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  342. web_1       | psycopg2.OperationalError: could not connect to server: Connection refused
  343. web_1       |   Is the server running on host "postgres" (172.20.0.2) and accepting
  344. web_1       |   TCP/IP connections on port 5432?
  345. web_1       |
  346. web_1       | Postgres is unavailable - sleeping
  347. postgres_1  | ALTER TABLE
  348. postgres_1  | ALTER TABLE
  349. postgres_1  | ALTER TABLE
  350. postgres_1  | ALTER TABLE
  351. postgres_1  | ALTER TABLE
  352. postgres_1  | ALTER TABLE
  353. postgres_1  | ALTER TABLE
  354. postgres_1  | ALTER TABLE
  355. postgres_1  | ALTER TABLE
  356. postgres_1  | ALTER TABLE
  357. postgres_1  | ALTER TABLE
  358. postgres_1  | CREATE INDEX
  359. postgres_1  | CREATE INDEX
  360. postgres_1  | CREATE INDEX
  361. postgres_1  | CREATE INDEX
  362. postgres_1  | CREATE INDEX
  363. postgres_1  | CREATE INDEX
  364. postgres_1  | CREATE INDEX
  365. postgres_1  | CREATE INDEX
  366. postgres_1  | CREATE INDEX
  367. postgres_1  | CREATE INDEX
  368. postgres_1  | CREATE INDEX
  369. postgres_1  | CREATE INDEX
  370. postgres_1  | CREATE INDEX
  371. postgres_1  | ALTER TABLE
  372. postgres_1  | ALTER TABLE
  373. postgres_1  | ALTER TABLE
  374. postgres_1  | ALTER TABLE
  375. postgres_1  | ALTER TABLE
  376. postgres_1  | ALTER TABLE
  377. postgres_1  | ALTER TABLE
  378. postgres_1  | ALTER TABLE
  379. postgres_1  | ALTER TABLE
  380. postgres_1  |
  381. postgres_1  |
  382. postgres_1  | 2019-02-07 07:35:00.727 UTC [41] LOG:  received fast shutdown request
  383. web_1       | Traceback (most recent call last):
  384. web_1       |   File "./checkpostgres.py", line 4, in <module>
  385. web_1       |     conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
  386. web_1       |   File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
  387. web_1       |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  388. web_1       | psycopg2.OperationalError: could not connect to server: Connection refused
  389. web_1       |   Is the server running on host "postgres" (172.20.0.2) and accepting
  390. web_1       |   TCP/IP connections on port 5432?
  391. web_1       |
  392. postgres_1  | waiting for server to shut down....2019-02-07 07:35:00.757 UTC [41] LOG:  aborting any active transactions
  393. postgres_1  | 2019-02-07 07:35:00.766 UTC [41] LOG:  worker process: logical replication launcher (PID 48) exited with exit code 1
  394. postgres_1  | 2019-02-07 07:35:00.768 UTC [43] LOG:  shutting down
  395. web_1       | Postgres is unavailable - sleeping
  396. postgres_1  | 2019-02-07 07:35:01.163 UTC [41] LOG:  database system is shut down
  397. postgres_1  |  done
  398. postgres_1  | server stopped
  399. postgres_1  |
  400. postgres_1  | PostgreSQL init process complete; ready for start up.
  401. postgres_1  |
  402. postgres_1  | 2019-02-07 07:35:01.299 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
  403. postgres_1  | 2019-02-07 07:35:01.299 UTC [1] LOG:  listening on IPv6 address "::", port 5432
  404. postgres_1  | 2019-02-07 07:35:01.349 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
  405. postgres_1  | 2019-02-07 07:35:01.484 UTC [68] LOG:  database system was shut down at 2019-02-07 07:35:01 UTC
  406. postgres_1  | 2019-02-07 07:35:01.515 UTC [1] LOG:  database system is ready to accept connections
  407. web_1       | Postgres is up - executing command
  408. front_1     |  98% after emitting CopyPlugin DONE  Compiled successfully in 9121ms7:35:13 AM
  409. front_1     |
  410.  
  411. front_1     |   App running at:
  412. front_1     |   - Local:   http://localhost:8080/
  413. front_1     |
  414. front_1     |   It seems you are running Vue CLI inside a container.
  415. front_1     |   Access the dev server via http://localhost:<your container's external mapped port>/
  416. front_1     |
  417. front_1     |   Note that the development build is not optimized.
  418. front_1     |   To create a production build, run npm run build.
  419. front_1     |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement