This starts a swh-web service ready to speak with a storage.
So now, we could synthesize the getting-started as: docker-compose up
Related T1443
Differential D815
Add swh-web docker service (and fix the storage) ardumont on Dec 13 2018, 6:03 PM. Authored by
Details
This starts a swh-web service ready to speak with a storage. Related T1443 docker-compose up To actually see some data in the webapp, we need to ingest some repositories. for this we need to initialize the db first (for now, this is manual but should be improved soon). docker-compose run swh-storage init Then, load a repository: python3 -m swh.loader.git.updater --origin-url https://github.com/SoftwareHeritage/swh-storage.git Now, browse the archive (http://localhost:5004) and look for your newly ingested data. Note:
Diff Detail
Event TimelineComment Actions
Comment Actions In effect, we can now replace the getting started with docker-compose up.
Comment Actions Prior to this, i was no longer able to load a repository, making the webapp pretty much useless ;) Comment Actions Nice work! All lights are green from my side. ✔ ~/swh/swh-environment/swh-docker-dev [arcpatch-D815 L|✔] 22:49 $ docker-compose up Starting swhdockerdev_swh-objstorage_1 Starting swhdockerdev_swh-storage-db_1 Starting swhdockerdev_swh-storage_1 Starting swhdockerdev_swh-web_1 Attaching to swhdockerdev_swh-objstorage_1, swhdockerdev_swh-storage-db_1, swhdockerdev_swh-storage_1, swhdockerdev_swh-web_1 swh-storage-db_1 | 2018-12-13 21:49:06.135 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 swh-storage-db_1 | 2018-12-13 21:49:06.135 UTC [1] LOG: listening on IPv6 address "::", port 5432 swh-storage_1 | Starting the swh-storage API server swh-objstorage_1 | Step 1 swh-storage-db_1 | 2018-12-13 21:49:06.141 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" swh-storage_1 | * Serving Flask app "server" (lazy loading) swh-storage_1 | * Environment: production swh-storage-db_1 | 2018-12-13 21:49:06.157 UTC [25] LOG: database system was shut down at 2018-12-13 21:49:00 UTC swh-objstorage_1 | Starting the swh-objstorage API server swh-storage_1 | WARNING: Do not use the development server in a production environment. swh-web_1 | starting the swh-web server swh-storage_1 | Use a production WSGI server instead. swh-storage_1 | * Debug mode: on swh-storage_1 | /usr/local/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. swh-storage_1 | """) swh-storage_1 | * Running on http://0.0.0.0:5002/ (Press CTRL+C to quit) swh-storage_1 | * Restarting with stat swh-storage-db_1 | 2018-12-13 21:49:06.162 UTC [1] LOG: database system is ready to accept connections swh-storage_1 | /usr/local/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. swh-storage_1 | """) swh-storage_1 | * Debugger is active! swh-storage_1 | * Debugger PIN: 282-054-931 swh-web_1 | "GET /browse/search/?q=.*&with_visit HTTP/1.1" 200 11313 swh-web_1 | "GET /static/css/vendors.1bb53db16d3be4ade415.css HTTP/1.1" 304 0 swh-web_1 | "GET /static/js/vendors.1bb53db16d3be4ade415.js HTTP/1.1" 304 0 swh-web_1 | "GET /static/js/browse.0914bcf041c43ac18d99.js HTTP/1.1" 304 0 swh-web_1 | "GET /static/css/webapp.255faff414598b3635fe.css HTTP/1.1" 304 0 swh-web_1 | "GET /static/css/browse.0914bcf041c43ac18d99.css HTTP/1.1" 304 0 swh-web_1 | "GET /static/css/vault.5e75f0f4a5fcbfd2fe60.css HTTP/1.1" 304 0 swh-web_1 | "GET /static/js/webapp.255faff414598b3635fe.js HTTP/1.1" 304 0 swh-web_1 | "GET /static/js/vault.5e75f0f4a5fcbfd2fe60.js HTTP/1.1" 304 0 swh-web_1 | "GET /jsreverse/ HTTP/1.1" 200 14225 Comment Actions
|