Skip to content

Instantly share code, notes, and snippets.

@filipposc5
Created November 28, 2016 20:59
Show Gist options
  • Select an option

  • Save filipposc5/e34b150c628e02054602ede9ad8746e4 to your computer and use it in GitHub Desktop.

Select an option

Save filipposc5/e34b150c628e02054602ede9ad8746e4 to your computer and use it in GitHub Desktop.
lemur out
a152m:lemur-docker filippos$ docker-compose down
Removing lemurdocker_lemur-nginx_1 ... done
Removing lemurdocker_lemur-web_1 ... done
Removing lemurdocker_postgres_1 ... done
a152m:lemur-docker filippos$ docker-compose build
postgres uses an image, skipping
Building lemur-web
Step 1 : FROM ubuntu:14.04
---> b549a9959a66
Step 2 : MAINTAINER Netflix Open Source Development <[email protected]>
---> Using cache
---> 2b2f5a1af020
Step 3 : RUN apt-get update && apt-get install -y curl && curl -sL https://deb.nodesource.com/setup_0.12 | bash - && apt-get -y -q install software-properties-common postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3 && apt-get install -y curl python-dev python-pip git sudo && apt-get -y -q install python-psycopg2 libpq-dev libffi-dev nodejs
---> Using cache
---> 9ddd57e8aafd
Step 4 : RUN git config --global url."https://".insteadOf git:// && cd /usr/local/src && git clone https://github.com/netflix/lemur.git && cd lemur && git fetch && pip install --upgrade virtualenv && virtualenv venv && export PATH=/usr/local/src/lemur/venv/bin:${PATH} && pip install --upgrade pip virtualenv && git checkout 0.4.0 && make develop
---> Using cache
---> 4b0cf07f0c4a
Step 5 : RUN cd /usr/local/src/lemur && npm install --unsafe-perm && node_modules/.bin/gulp build && node_modules/.bin/gulp package && rm -r bower_components node_modules
---> Using cache
---> 78dba02cd68a
Step 6 : ADD lemur.conf.py /usr/local/src/lemur/lemur.conf.py
---> 8dd1e01a7162
Removing intermediate container 59cefb19f93e
Step 7 : ADD api-start.sh /usr/local/src/lemur/scripts/api-start.sh
---> 5935189b8816
Removing intermediate container 5859d38cc264
Step 8 : RUN chmod +x /usr/local/src/lemur/scripts/api-start.sh
---> Running in 778c49fa70be
---> 159018744c0b
Removing intermediate container 778c49fa70be
Step 9 : CMD /usr/local/src/lemur/scripts/api-start.sh
---> Running in df629d737dee
---> 6db6f35eb819
Removing intermediate container df629d737dee
Successfully built 6db6f35eb819
Building lemur-nginx
Step 1 : FROM nginx
---> 05a60462f8ba
Step 2 : ADD sites-enabled/ /etc/nginx/sites-enabled
---> Using cache
---> 190e83b028d5
Step 3 : COPY nginx.conf /etc/nginx/nginx.conf
---> Using cache
---> d271ffa32e80
Step 4 : ADD server.crt /etc/nginx/ssl/
---> Using cache
---> 6571b89e430a
Step 5 : ADD server.key /etc/nginx/ssl/
---> Using cache
---> e18ae565c773
Successfully built e18ae565c773
a152m:lemur-docker filippos$ docker-compose up
Creating lemurdocker_postgres_1
Creating lemurdocker_lemur-web_1
Creating lemurdocker_lemur-nginx_1
Attaching to lemurdocker_postgres_1, lemurdocker_lemur-web_1, lemurdocker_lemur-nginx_1
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
lemur-web_1 | Creating lemurdb...
lemur-web_1 | psql: could not connect to server: Connection refused
lemur-web_1 | Is the server running on host "postgres" (172.17.0.2) and accepting
lemur-web_1 | TCP/IP connections on port 5432?
lemur-web_1 | Creating the lemur user...
lemur-web_1 | psql: could not connect to server: Connection refused
lemur-web_1 | Is the server running on host "postgres" (172.17.0.2) and accepting
lemur-web_1 | TCP/IP connections on port 5432?
lemur-web_1 | Changing postgres password...
lemur-web_1 | psql: could not connect to server: Connection refused
lemur-web_1 | Is the server running on host "postgres" (172.17.0.2) and accepting
lemur-web_1 | TCP/IP connections on port 5432?
lemur-web_1 | Done changing postgres password...
lemur-web_1 | DONE CREATING lemurdb...
postgres_1 | performing post-bootstrap initialization ... ok
postgres_1 | syncing data to disk ... ok
postgres_1 |
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 |
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 | ****************************************************
postgres_1 | WARNING: No password has been set for the database.
postgres_1 | This will allow anyone with access to the
postgres_1 | Postgres port to access your database. In
postgres_1 | Docker's default configuration, this is
postgres_1 | effectively any other container on the same
postgres_1 | system.
postgres_1 |
postgres_1 | Use "-e POSTGRES_PASSWORD=password" to set
postgres_1 | it in "docker run".
postgres_1 | ****************************************************
postgres_1 | waiting for server to start....LOG: database system was shut down at 2016-11-28 20:53:48 UTC
postgres_1 | LOG: MultiXact member wraparound protections are now enabled
postgres_1 | LOG: database system is ready to accept connections
postgres_1 | LOG: autovacuum launcher started
lemur-web_1 | /usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.
lemur-web_1 | warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.')
postgres_1 | done
postgres_1 | server started
postgres_1 | ALTER ROLE
postgres_1 |
postgres_1 |
postgres_1 | /docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1 |
postgres_1 | LOG: received fast shutdown request
postgres_1 | LOG: aborting any active transactions
postgres_1 | waiting for server to shut down....LOG: autovacuum launcher shutting down
postgres_1 | LOG: shutting down
postgres_1 | LOG: database system is shut down
lemur-web_1 | Unable to import lemur.plugins.lemur_digicert.plugin.DigiCertIssuerPlugin. Reason: No Digicert API key found. Ensure that 'DIGICERT_API_KEY' is set in the Lemur conf.
lemur-web_1 | Traceback (most recent call last):
lemur-web_1 | File "/usr/local/src/lemur/lemur/common/managers.py", line 58, in all
lemur-web_1 | results.append(cls())
lemur-web_1 | File "/usr/local/src/lemur/lemur/plugins/lemur_digicert/plugin.py", line 205, in __init__
lemur-web_1 | verify_configuration()
lemur-web_1 | File "/usr/local/src/lemur/lemur/plugins/lemur_digicert/plugin.py", line 137, in verify_configuration
lemur-web_1 | raise Exception("No Digicert API key found. Ensure that 'DIGICERT_API_KEY' is set in the Lemur conf.")
lemur-web_1 | Exception: No Digicert API key found. Ensure that 'DIGICERT_API_KEY' is set in the Lemur conf.
lemur-web_1 | Traceback (most recent call last):
lemur-web_1 | File "manage.py", line 948, in <module>
lemur-web_1 | main()
lemur-web_1 | File "manage.py", line 945, in main
lemur-web_1 | manager.run()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run
lemur-web_1 | result = self.handle(sys.argv[0], sys.argv[1:])
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle
lemur-web_1 | res = handle(*args, **config)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_script/commands.py", line 216, in __call__
lemur-web_1 | return self.run(*args, **kwargs)
lemur-web_1 | File "manage.py", line 222, in run
lemur-web_1 | create()
lemur-web_1 | File "manage.py", line 133, in create
lemur-web_1 | database.db.create_all()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 972, in create_all
lemur-web_1 | self._execute_for_all_tables(app, bind, 'create_all')
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 964, in _execute_for_all_tables
lemur-web_1 | op(bind=self.get_engine(app, bind), **extra)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 3848, in create_all
lemur-web_1 | tables=tables)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1919, in _run_visitor
lemur-web_1 | with self._optional_conn_ctx_manager(connection) as conn:
lemur-web_1 | File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
lemur-web_1 | return self.gen.next()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1912, in _optional_conn_ctx_manager
lemur-web_1 | with self.contextual_connect() as conn:
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2103, in contextual_connect
lemur-web_1 | self._wrap_pool_connect(self.pool.connect, None),
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2142, in _wrap_pool_connect
lemur-web_1 | e, dialect, self)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1456, in _handle_dbapi_exception_noconnection
lemur-web_1 | exc_info
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
lemur-web_1 | reraise(type(exception), exception, tb=exc_tb, cause=cause)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2138, in _wrap_pool_connect
lemur-web_1 | return fn()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 387, in connect
lemur-web_1 | return _ConnectionFairy._checkout(self)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 766, in _checkout
lemur-web_1 | fairy = _ConnectionRecord.checkout(pool)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 516, in checkout
lemur-web_1 | rec = pool._do_get()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1138, in _do_get
lemur-web_1 | self._dec_overflow()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
lemur-web_1 | compat.reraise(exc_type, exc_value, exc_tb)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1135, in _do_get
lemur-web_1 | return self._create_connection()
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 333, in _create_connection
lemur-web_1 | return _ConnectionRecord(self)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 461, in __init__
lemur-web_1 | self.__connect(first_connect_check=True)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 651, in __connect
lemur-web_1 | connection = pool._invoke_creator(self)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 105, in connect
lemur-web_1 | return dialect.connect(*cargs, **cparams)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 392, in connect
lemur-web_1 | return self.dbapi.connect(*cargs, **cparams)
lemur-web_1 | File "/usr/local/src/lemur/venv/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
lemur-web_1 | conn = _connect(dsn, connection_factory=connection_factory, async=async)
lemur-web_1 | sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
lemur-web_1 | Is the server running on host "postgres" (172.17.0.2) and accepting
lemur-web_1 | TCP/IP connections on port 5432?
lemur-web_1 |
postgres_1 | done
postgres_1 | server stopped
postgres_1 |
postgres_1 | PostgreSQL init process complete; ready for start up.
postgres_1 |
postgres_1 | LOG: database system was shut down at 2016-11-28 20:53:49 UTC
postgres_1 | LOG: MultiXact member wraparound protections are now enabled
postgres_1 | LOG: database system is ready to accept connections
postgres_1 | LOG: autovacuum launcher started
lemur-web_1 | /usr/local/src/lemur/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.
lemur-web_1 | warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.')
lemur-web_1 | Unable to import lemur.plugins.lemur_digicert.plugin.DigiCertIssuerPlugin. Reason: No Digicert API key found. Ensure that 'DIGICERT_API_KEY' is set in the Lemur conf.
lemur-web_1 | Traceback (most recent call last):
lemur-web_1 | File "/usr/local/src/lemur/lemur/common/managers.py", line 58, in all
lemur-web_1 | results.append(cls())
lemur-web_1 | File "/usr/local/src/lemur/lemur/plugins/lemur_digicert/plugin.py", line 205, in __init__
lemur-web_1 | verify_configuration()
lemur-web_1 | File "/usr/local/src/lemur/lemur/plugins/lemur_digicert/plugin.py", line 137, in verify_configuration
lemur-web_1 | raise Exception("No Digicert API key found. Ensure that 'DIGICERT_API_KEY' is set in the Lemur conf.")
lemur-web_1 | Exception: No Digicert API key found. Ensure that 'DIGICERT_API_KEY' is set in the Lemur conf.
lemur-web_1 | [2016-11-28 20:53:52 +0000] [40] [INFO] Starting gunicorn 19.4.1
lemur-web_1 | [2016-11-28 20:53:52 +0000] [40] [INFO] Listening at: http://0.0.0.0:8000 (40)
lemur-web_1 | [2016-11-28 20:53:52 +0000] [40] [INFO] Using worker: sync
lemur-web_1 | [2016-11-28 20:53:52 +0000] [47] [INFO] Booting worker with pid: 47
lemur-web_1 | [2016-11-28 20:53:52 +0000] [48] [INFO] Booting worker with pid: 48
lemur-web_1 | [2016-11-28 20:53:53 +0000] [49] [INFO] Booting worker with pid: 49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment