Production Install Output

When you install OED for production you will get output similar to what is below (assuming this is the first time you are running docker compose up). Please note:

# docker compose up
Creating network "oed_default" with the default driver
Building database
Step 1/2 : FROM postgres:10.13
 ---> 145b344769a8
Step 2/2 : COPY *.sql /docker-entrypoint-initdb.d/
 ---> Using cache
 ---> dd33bbc67fa5
Successfully built dd33bbc67fa5
Successfully tagged oed_database:latest
WARNING: Image for service database was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building web
Step 1/4 : FROM node:latest
 ---> e1b0cde43c0e
Step 2/4 : RUN mkdir -p "/usr/src/app"
 ---> Using cache
 ---> 2161380cdac9
Step 3/4 : WORKDIR "/usr/src/app"
 ---> Using cache
 ---> aabdff5c5dc5
Step 4/4 : VOLUME "/usr/src/app"
 ---> Using cache
 ---> 901e97beb13a
Successfully built 901e97beb13a
Successfully tagged oed_web:latest
WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating oed_database_1 ... 
Creating oed_database_1 ... done
Creating oed_web_1 ... 
Creating oed_web_1 ... done
Attaching to oed_database_1, oed_web_1
database_1  | The files belonging to this database system will be owned by user "postgres".
database_1  | This user must also own the server process.
database_1  | 
database_1  | The database cluster will be initialized with locale "en_US.utf8".
database_1  | The default database encoding has accordingly been set to "UTF8".
database_1  | The default text search configuration will be set to "english".
database_1  | 
database_1  | Data page checksums are disabled.
database_1  | 
database_1  | fixing permissions on existing directory /var/lib/postgresql/data/pgdata ... ok
database_1  | creating subdirectories ... ok
database_1  | selecting default max_connections ... 100
database_1  | selecting default shared_buffers ... 128MB
database_1  | selecting default timezone ... Etc/UTC
database_1  | selecting dynamic shared memory implementation ... posix
database_1  | creating configuration files ... ok
database_1  | running bootstrap script ... ok
web_1       | NPM install...
database_1  | performing post-bootstrap initialization ... ok
database_1  | syncing data to disk ... ok
database_1  | 
database_1  | Success. You can now start the database server using:
database_1  | 
database_1  |     pg_ctl -D /var/lib/postgresql/data/pgdata -l logfile start
database_1  | 
database_1  | 
database_1  | WARNING: enabling "trust" authentication for local connections
database_1  | You can change this by editing pg_hba.conf or using the option -A, or
database_1  | --auth-local and --auth-host, the next time you run initdb.
database_1  | waiting for server to start....2021-10-13 20:55:04.490 UTC [45] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
database_1  | 2021-10-13 20:55:04.571 UTC [46] LOG:  database system was shut down at 2021-10-13 20:55:04 UTC
database_1  | 2021-10-13 20:55:04.589 UTC [45] LOG:  database system is ready to accept connections
database_1  |  done
database_1  | server started
database_1  | 
database_1  | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.sql
database_1  | CREATE ROLE
database_1  | DROP DATABASE
database_1  | psql:/docker-entrypoint-initdb.d/init.sql:6: NOTICE:  database "oed" does not exist, skipping
database_1  | CREATE DATABASE
database_1  | DROP DATABASE
database_1  | psql:/docker-entrypoint-initdb.d/init.sql:8: NOTICE:  database "oed_testing" does not exist, skipping
database_1  | CREATE DATABASE
database_1  | ALTER ROLE
database_1  | 
database_1  | 
database_1  | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/nuke.sql
database_1  | DROP DATABASE
database_1  | DROP DATABASE
web_1       | npm WARN old lockfile 
web_1       | npm WARN old lockfile The package-lock.json file was created with an old version of npm,
web_1       | npm WARN old lockfile so supplemental metadata must be fetched from the registry.
web_1       | npm WARN old lockfile 
web_1       | npm WARN old lockfile This is a one-time fix-up, please be patient...
web_1       | npm WARN old lockfile 
database_1  | CREATE DATABASE
database_1  | CREATE DATABASE
database_1  | 
database_1  | 
database_1  | waiting for server to shut down....2021-10-13 20:55:06.648 UTC [45] LOG:  received fast shutdown request
database_1  | 2021-10-13 20:55:06.650 UTC [45] LOG:  aborting any active transactions
database_1  | 2021-10-13 20:55:06.664 UTC [45] LOG:  worker process: logical replication launcher (PID 52) exited with exit code 1
database_1  | 2021-10-13 20:55:06.664 UTC [47] LOG:  shutting down
database_1  | 2021-10-13 20:55:06.681 UTC [45] LOG:  database system is shut down
database_1  |  done
database_1  | server stopped
database_1  | 
database_1  | PostgreSQL init process complete; ready for start up.
database_1  | 
database_1  | 2021-10-13 20:55:06.785 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
database_1  | 2021-10-13 20:55:06.785 UTC [1] LOG:  listening on IPv6 address "::", port 5432
database_1  | 2021-10-13 20:55:06.790 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
database_1  | 2021-10-13 20:55:06.826 UTC [72] LOG:  database system was shut down at 2021-10-13 20:55:06 UTC
database_1  | 2021-10-13 20:55:06.836 UTC [1] LOG:  database system is ready to accept connections
// This is the point where it may take a while until you get output.
web_1       | npm WARN // .... output removed since the warnings are for the current packages of OED. You may have none to a number depending on OED version on NPM status
web_1       | 
web_1       | added 1651 packages, and audited 1652 packages in 5m
web_1       | 
web_1       | 26 packages are looking for funding
web_1       |   run `npm fund` for details
web_1       | 
web_1       | XX vulnerabilities (XX low, XX moderate, XX high, X critical) // XX will be a number that depends on OED/NPM as noted above
web_1       | 
web_1       | To address issues that do not require attention, run:
web_1       |   npm audit fix
web_1       | 
web_1       | To address all issues (including breaking changes), run:
web_1       |   npm audit fix --force
web_1       | 
web_1       | Run `npm audit` for details.
web_1       | npm notice 
web_1       | npm notice New major version of npm available! 7.24.0 -> 8.0.0
web_1       | npm notice Changelog: 
web_1       | npm notice Run `npm install -g npm@8.0.0` to update!
web_1       | npm notice 
web_1       | NPM install finished.
web_1       | Attempting to create database...
web_1       | 
web_1       | -----start of npm run createdb output-----
web_1       | 
web_1       | > Open-Energy-Dashboard@0.6.0 createdb
web_1       | > node ./src/server/services/createDB.js
web_1       | 
web_1       | -----end of npm run createdb output-----
web_1       | 
web_1       |   database creation had no errors so assume schema creation worked.
web_1       | 
web_1       | > Open-Energy-Dashboard@0.6.0 webpack:build
web_1       | > cross-env NODE_ENV=production webpack -p
web_1       | 
web_1       | 
web_1       | [at-loader] Using typescript@3.5.3 from typescript and "tsconfig.json" from /usr/src/app/tsconfig.json.
web_1       | 
web_1       | 
web_1       | [at-loader] Checking started in a separate process...
web_1       | 
web_1       | [at-loader] Ok, 12.425 sec.
web_1       | Hash: e4db21089452b8852084
web_1       | Version: webpack 4.30.0
web_1       | Time: 443957ms
web_1       | Built at: 10/13/2021 9:07:28 PM
web_1       |         Asset      Size  Chunks                    Chunk Names
web_1       |     bundle.js  4.38 MiB       0  [emitted]  [big]  main
web_1       | bundle.js.map  15.4 MiB       0  [emitted]         main
web_1       | Entrypoint main [big] = bundle.js bundle.js.map
web_1       |   [17] ./node_modules/react-redux/es/index.js + 14 modules 37.4 KiB {0} [built]
web_1       |        |    15 modules
web_1       |  [119] ./src/client/app/actions/graph.ts 8.26 KiB {0} [built]
web_1       |  [195] ./node_modules/redux/es/index.js + 6 modules 20.6 KiB {0} [built]
web_1       |        |    7 modules
web_1       |  [196] ./src/client/app/index.tsx 1.27 KiB {0} [built]
web_1       |  [819] ./src/client/app/containers/RouteContainer.ts 906 bytes {0} [built]
web_1       | [1765] ./src/client/app/reducers/index.ts 1.06 KiB {0} [built]
web_1       | [1766] ./src/client/app/reducers/meters.ts 2.52 KiB {0} [built]
web_1       | [1767] ./src/client/app/reducers/lineReadings.ts 4.62 KiB {0} [built]
web_1       | [1768] ./src/client/app/reducers/barReadings.ts 5.44 KiB {0} [built]
web_1       | [1769] ./src/client/app/reducers/compareReadings.ts 5.53 KiB {0} [built]
web_1       | [1770] ./src/client/app/reducers/graph.ts 3.43 KiB {0} [built]
web_1       | [1771] ./src/client/app/reducers/groups.ts 8.16 KiB {0} [built]
web_1       | [1772] ./src/client/app/reducers/maps.ts 8.04 KiB {0} [built]
web_1       | [1773] ./src/client/app/reducers/notifications.ts 1.21 KiB {0} [built]
web_1       | [1775] ./src/client/app/styles/index.css 1.03 KiB {0} [built]
web_1       |     + 1808 hidden modules
web_1       | OED install finished
web_1       | Starting OED in production mode
web_1       | 
web_1       | > Open-Energy-Dashboard@0.6.0 start
web_1       | > node ./src/bin/www
web_1       | 
web_1       | [INFO@2021-10-13T21:07:32.081Z] Listening on port 3000
web_1       |