docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/openmaptiles-server
C:\Users\ebata\Desktop\hirohakama_sim>docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/openmaptiles-server Unable to find image 'klokantech/openmaptiles-server:latest' locally latest: Pulling from klokantech/openmaptiles-server c5e155d5a1d1: Pull complete 221d80d00ae9: Pull complete 4250b3117dca: Pull complete 3b7ca19181b2: Pull complete 425d7b2a5bcc: Pull complete 69df12c70287: Pull complete ea2f5386a42d: Pull complete d421d2b3c5eb: Pull complete da30b29849e7: Pull complete 737fbec6f196: Pull complete e4745ce6fed7: Pull complete 28b22a8cf232: Pull complete Digest: sha256:1a6fec0108fa78cf778d385205b4b0197b8c599fb91f9e08a1f114af9df75584 Status: Downloaded newer image for klokantech/openmaptiles-server:latest docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
あ、Windows10のコマンドプロンプトでは、$(pwd)が解釈できないみたいなので、
C:\Users\ebata\Desktop\hirohakama_sim>docker run --rm -it -v ~/data -p 8080:80 klokantech/openmaptiles-server としてみたら
C:\Users\ebata\Desktop\hirohakama_sim>docker run --rm -it -v ~/data -p 8080:80 klokantech/openmaptiles-server /usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security. 'Supervisord is running as root and it is searching ' 2020-06-29 15:43:52,652 CRIT Supervisor running as root (no user in config file) 2020-06-29 15:43:52,652 INFO Included extra file "/etc/supervisor/conf.d/openmaptiles.conf" during parsing 2020-06-29 15:43:52,655 INFO Creating socket tcp://localhost:8081 2020-06-29 15:43:52,656 INFO Closing socket tcp://localhost:8081 2020-06-29 15:43:52,663 INFO RPC interface 'supervisor' initialized 2020-06-29 15:43:52,663 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2020-06-29 15:43:52,664 INFO supervisord started with pid 1 2020-06-29 15:43:53,669 INFO spawned: 'wizard' with pid 8 2020-06-29 15:43:53,674 INFO spawned: 'xvfb' with pid 9 Starting OpenMapTiles Map Server (action: run) 2020-06-29 15:43:54,196 INFO success: wizard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2020-06-29 15:43:54,196 INFO success: xvfb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) Config file not found! Starting installation… Installation wizard started at http://:::80/ List of available downloads ready.
■DBの作成 C:\Users\ebata>docker-compose exec db createdb -h db -U postgres routing
■postgisのインストール(これが失敗するみたい) C:\Users\ebata>docker-compose exec db psql -h db -U postgres -d routing -c 'CREATE EXTENSION pgrouting CASCADE; CREATE EXTENSION hstore;'
■ダンプしたsqlの取り込み C:\Users\ebata>docker-compose exec db psql -h db -U postgres routing -f /shared/routing-20200221.sql
■作られたDockerの確認 C:\Users\ebata>docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 64101530c199 pgrouting/pgrouting:v3.0.0-dev-postgresql_12 "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:15432->5432/tcp ebata_db_1 f5ae64d47096 busybox "sh" About a minute ago Exited (0) About a minute ago ebata_db_data_1 d7838161c2f9 postgres:12.2 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:5432->5432/tcp postgres122
I haven't read the source code properly yet, but I am tired of checking for "personal information being pulled out" or "government surveillance" just because it's published as open source.
Particularly for those in the hospitality industry, I believe that the ability to visualize the risk of infection will increase motivation to devise new ways of working.
Also, people who use trains and buses to commute to work or school can be afraid of riding at rush hour. This may lead you to consider staggered work, telecommuting, or even biking or biking to work.