Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gluck@unknown:~/Documents/code/vivainvest$ docker-compose -f docker-compose.dev.yml up --build
- Creating network "vivainvest_default" with the default driver
- Building front
- Step 1/6 : FROM node:alpine
- ---> ebbf98230a82
- Step 2/6 : WORKDIR '/app'
- ---> Using cache
- ---> 8e1446d04cc5
- Step 3/6 : COPY ./package.json ./
- ---> Using cache
- ---> 6e84a1f6e07d
- Step 4/6 : RUN npm install
- ---> Using cache
- ---> 1c391dd067fe
- Step 5/6 : COPY . .
- ---> a6ea9515734b
- Step 6/6 : CMD ["npm", "run", "serve"]
- ---> Running in 3a235f6fead2
- Removing intermediate container 3a235f6fead2
- ---> 5c3a34bbf96d
- Successfully built 5c3a34bbf96d
- Successfully tagged vivainvest_front:latest
- Pulling redis (redis:latest)...
- latest: Pulling from library/redis
- 6ae821421a7d: Pull complete
- e3717477b42d: Pull complete
- 8e70bf6cc2e6: Pull complete
- 0f84ab76ce60: Pull complete
- 0903bdecada2: Pull complete
- 492876061fbd: Pull complete
- Digest: sha256:6bed06619a1d020d6958602712f7b453f086006a85d5e942217fd2d7adab9c5e
- Status: Downloaded newer image for redis:latest
- Building postgres
- Step 1/2 : FROM postgres:10
- 10: Pulling from library/postgres
- 6ae821421a7d: Already exists
- 060245e5c056: Pull complete
- d6c2e60cfc1c: Pull complete
- 38d23c24a9df: Pull complete
- 9998068fb35e: Pull complete
- 2bb2385a4bb9: Pull complete
- 2ad14c51497d: Pull complete
- 77519615ed40: Pull complete
- b2753cdf16b5: Pull complete
- 3e185840221d: Pull complete
- 65ed9064c2f2: Pull complete
- 70afb8211873: Pull complete
- c0a8407cee2d: Pull complete
- 9972e0524adf: Pull complete
- Digest: sha256:204574a10bcd111a78d1e612e311ab24b2a10a6cd5178a332ac1cb1a24e71fd9
- Status: Downloaded newer image for postgres:10
- ---> ebdd3a33f882
- Step 2/2 : ADD ./init.sql /docker-entrypoint-initdb.d
- ---> 98422f34b987
- Successfully built 98422f34b987
- Successfully tagged vivainvest_postgres:latest
- Building web
- Step 1/16 : FROM python:3.7
- ---> 2fbd95050b66
- Step 2/16 : WORKDIR /usr/src/app
- ---> Using cache
- ---> cda238765329
- Step 3/16 : RUN apt-get update -y
- ---> Using cache
- ---> 863d32c78609
- Step 4/16 : RUN apt-get upgrade -y
- ---> Using cache
- ---> 150c0f0c45ea
- Step 5/16 : RUN pip install --upgrade pip
- ---> Using cache
- ---> ffc7ec32d95f
- Step 6/16 : RUN apt-get install -y mc
- ---> Using cache
- ---> 16edcc6fd424
- Step 7/16 : COPY ./requirements.txt ./
- ---> Using cache
- ---> 82c266d42567
- Step 8/16 : RUN pip install -r requirements.txt
- ---> Using cache
- ---> a9d43a01e314
- Step 9/16 : RUN apt-get update -y
- ---> Using cache
- ---> a787e72cc6be
- Step 10/16 : RUN apt-get install -y mc
- ---> Using cache
- ---> e69534369bb7
- Step 11/16 : COPY ./wait-for-it.sh ./
- ---> Using cache
- ---> 26dd7bd4c832
- Step 12/16 : COPY ./checkpostgres.py ./
- ---> Using cache
- ---> a2792c44d820
- Step 13/16 : RUN chmod +x wait-for-it.sh
- ---> Using cache
- ---> 61b2a43d5775
- Step 14/16 : COPY ./src ./src
- ---> 0cda01c701f8
- Step 15/16 : RUN mkdir tempfiles
- ---> Running in 02483ff6a092
- Removing intermediate container 02483ff6a092
- ---> b50b523c0a2e
- Step 16/16 : CMD [ "python3", "./src/manage.py", "runserver", "0.0.0.0:8000" ]
- ---> Running in 244149f1aef6
- Removing intermediate container 244149f1aef6
- ---> a3ed8a39b8db
- Successfully built a3ed8a39b8db
- Successfully tagged vivainvest_web:latest
- Creating vivainvest_front_1 ...
- Creating vivainvest_postgres_1 ...
- Creating vivainvest_redis_1 ...
- Creating vivainvest_pgadmin_1 ...
- Creating vivainvest_front_1
- Creating vivainvest_postgres_1
- Creating vivainvest_pgadmin_1
- Creating vivainvest_postgres_1 ... done
- Creating vivainvest_web_1 ...
- Creating vivainvest_web_1 ... done
- Attaching to vivainvest_postgres_1, vivainvest_redis_1, vivainvest_pgadmin_1, vivainvest_front_1, vivainvest_web_1
- redis_1 | 1:C 07 Feb 2019 07:34:51.784 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
- 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
- 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
- redis_1 | 1:M 07 Feb 2019 07:34:51.798 * Running mode=standalone, port=6379.
- 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.
- redis_1 | 1:M 07 Feb 2019 07:34:51.801 # Server initialized
- 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.
- 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.
- redis_1 | 1:M 07 Feb 2019 07:34:51.802 * Ready to accept connections
- postgres_1 | The files belonging to this database system will be owned by user "postgres".
- postgres_1 | This user must also own the server process.
- postgres_1 |
- postgres_1 | The database cluster will be initialized with locale "en_US.utf8".
- postgres_1 | The default database encoding has accordingly been set to "UTF8".
- postgres_1 | The default text search configuration will be set to "english".
- postgres_1 |
- postgres_1 | Data page checksums are disabled.
- postgres_1 |
- postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
- postgres_1 | creating subdirectories ... ok
- postgres_1 | selecting default max_connections ... 100
- postgres_1 | selecting default shared_buffers ... 128MB
- postgres_1 | selecting dynamic shared memory implementation ... posix
- postgres_1 | creating configuration files ... ok
- postgres_1 | running bootstrap script ... ok
- postgres_1 | performing post-bootstrap initialization ... ok
- pgadmin_1 | [2019-02-07 07:34:55 +0000] [1] [INFO] Starting gunicorn 19.8.1
- pgadmin_1 | [2019-02-07 07:34:55 +0000] [1] [INFO] Listening at: http://[::]:80 (1)
- pgadmin_1 | [2019-02-07 07:34:55 +0000] [1] [INFO] Using worker: threads
- pgadmin_1 | [2019-02-07 07:34:55 +0000] [79] [INFO] Booting worker with pid: 79
- web_1 | Traceback (most recent call last):
- web_1 | File "./checkpostgres.py", line 4, in <module>
- web_1 | conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
- web_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- web_1 | psycopg2.OperationalError: could not connect to server: Connection refused
- web_1 | Is the server running on host "postgres" (172.20.0.2) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- web_1 | Postgres is unavailable - sleeping
- postgres_1 | syncing data to disk ...
- postgres_1 | WARNING: enabling "trust" authentication for local connections
- postgres_1 | You can change this by editing pg_hba.conf or using the option -A, or
- postgres_1 | --auth-local and --auth-host, the next time you run initdb.
- postgres_1 | ok
- postgres_1 |
- postgres_1 | Success. You can now start the database server using:
- postgres_1 |
- postgres_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
- postgres_1 |
- 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"
- 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
- postgres_1 | 2019-02-07 07:34:56.619 UTC [41] LOG: database system is ready to accept connections
- postgres_1 | done
- postgres_1 | server started
- front_1 |
- front_1 | > front@0.1.0 serve /app
- front_1 | > vue-cli-service serve
- front_1 |
- web_1 | Traceback (most recent call last):
- web_1 | File "./checkpostgres.py", line 4, in <module>
- web_1 | conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
- web_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- web_1 | psycopg2.OperationalError: could not connect to server: Connection refused
- web_1 | Is the server running on host "postgres" (172.20.0.2) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- web_1 | Postgres is unavailable - sleeping
- postgres_1 | CREATE DATABASE
- postgres_1 |
- postgres_1 |
- postgres_1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.sql
- web_1 | Traceback (most recent call last):
- web_1 | File "./checkpostgres.py", line 4, in <module>
- web_1 | conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
- web_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- web_1 | psycopg2.OperationalError: could not connect to server: Connection refused
- web_1 | Is the server running on host "postgres" (172.20.0.2) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- web_1 | Postgres is unavailable - sleeping
- postgres_1 | SET
- postgres_1 | SET
- postgres_1 | SET
- postgres_1 | SET
- postgres_1 | SET
- postgres_1 | set_config
- postgres_1 | ------------
- postgres_1 |
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | SET
- postgres_1 | SET
- postgres_1 | SET
- postgres_1 | CREATE EXTENSION
- postgres_1 | COMMENT
- postgres_1 | SET
- postgres_1 | SET
- front_1 | INFO Starting development server...
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE SEQUENCE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER SEQUENCE
- postgres_1 | CREATE TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | COPY 0
- postgres_1 | COPY 0
- postgres_1 | COPY 24
- postgres_1 | COPY 1
- postgres_1 | COPY 0
- postgres_1 | COPY 0
- postgres_1 | COPY 0
- postgres_1 | COPY 6
- postgres_1 | COPY 15
- postgres_1 | COPY 0
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 1
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 1
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 24
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 1
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 1
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 1
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 1
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 6
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | setval
- postgres_1 | --------
- postgres_1 | 15
- postgres_1 | (1 row)
- postgres_1 |
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- web_1 | Traceback (most recent call last):
- web_1 | File "./checkpostgres.py", line 4, in <module>
- web_1 | conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
- web_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- web_1 | psycopg2.OperationalError: could not connect to server: Connection refused
- web_1 | Is the server running on host "postgres" (172.20.0.2) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- web_1 | Postgres is unavailable - sleeping
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | CREATE INDEX
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 | ALTER TABLE
- postgres_1 |
- postgres_1 |
- postgres_1 | 2019-02-07 07:35:00.727 UTC [41] LOG: received fast shutdown request
- web_1 | Traceback (most recent call last):
- web_1 | File "./checkpostgres.py", line 4, in <module>
- web_1 | conn = psycopg2.connect("dbname='viva' user='vivaivest' host='postgres' password='jkery&fhjfjr@3#!'")
- web_1 | File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 130, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- web_1 | psycopg2.OperationalError: could not connect to server: Connection refused
- web_1 | Is the server running on host "postgres" (172.20.0.2) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- postgres_1 | waiting for server to shut down....2019-02-07 07:35:00.757 UTC [41] LOG: aborting any active transactions
- postgres_1 | 2019-02-07 07:35:00.766 UTC [41] LOG: worker process: logical replication launcher (PID 48) exited with exit code 1
- postgres_1 | 2019-02-07 07:35:00.768 UTC [43] LOG: shutting down
- web_1 | Postgres is unavailable - sleeping
- postgres_1 | 2019-02-07 07:35:01.163 UTC [41] LOG: database system is shut down
- postgres_1 | done
- postgres_1 | server stopped
- postgres_1 |
- postgres_1 | PostgreSQL init process complete; ready for start up.
- postgres_1 |
- postgres_1 | 2019-02-07 07:35:01.299 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
- postgres_1 | 2019-02-07 07:35:01.299 UTC [1] LOG: listening on IPv6 address "::", port 5432
- postgres_1 | 2019-02-07 07:35:01.349 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
- 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
- postgres_1 | 2019-02-07 07:35:01.515 UTC [1] LOG: database system is ready to accept connections
- web_1 | Postgres is up - executing command
- front_1 | 98% after emitting CopyPlugin DONE Compiled successfully in 9121ms7:35:13 AM
- front_1 |
- front_1 | App running at:
- front_1 | - Local: http://localhost:8080/
- front_1 |
- front_1 | It seems you are running Vue CLI inside a container.
- front_1 | Access the dev server via http://localhost:<your container's external mapped port>/
- front_1 |
- front_1 | Note that the development build is not optimized.
- front_1 | To create a production build, run npm run build.
- front_1 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement