ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-x6n4bc2r/ #239

Closed findmorenow closed 5 years ago

findmorenow commented 5 years ago

centos 7.4 X64 yum install docker yum install docker-compose cd /pb docker-compose up

error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-x6n4bc2r/ ERROR: Service 'pb' failed to build: The command '/bin/sh -c apk add --no-cache --virtual .build-deps git && pip install /build && apk del .build-deps' returned a non-zero code: 1

buhman commented 5 years ago

Can't reproduce, this is a problem with your local environment:

➜  ~ docker-machine create pb-test
Running pre-create checks...
(pb-test) Default Boot2Docker ISO is out-of-date, downloading the latest release...
(pb-test) Latest release for github.com/boot2docker/boot2docker is v18.09.0
(pb-test) Downloading /Users/zbuhman/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v18.09.0/boot2docker.iso...
(pb-test) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(pb-test) Unable to get the local Boot2Docker ISO version:  Did not find prefix "-v" in version string
(pb-test) Default Boot2Docker ISO is out-of-date, downloading the latest release...
(pb-test) Latest release for github.com/boot2docker/boot2docker is v18.09.0
(pb-test) Downloading /Users/zbuhman/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v18.09.0/boot2docker.iso...
(pb-test) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(pb-test) Copying /Users/zbuhman/.docker/machine/cache/boot2docker.iso to /Users/zbuhman/.docker/machine/machines/pb-test/boot2docker.iso...
(pb-test) Creating VirtualBox VM...
(pb-test) Creating SSH key...
(pb-test) Starting the VM...
(pb-test) Check network to re-create if needed...
(pb-test) Waiting for an IP...
Machine "pb-test" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
➜  ~ docker-machine ssh pb-test
   ( '>')
  /) TC (\   Core is distributed with ABSOLUTELY NO WARRANTY.
 (/-_--_-\)           www.tinycorelinux.net

docker@pb-test:~$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0   2389      0 --:--:-- --:--:-- --:--:--  2391
100 11.1M  100 11.1M    0     0  5650k      0  0:00:02  0:00:02 --:--:-- 8141k
docker@pb-test:~$ sudo chmod +x /usr/local/bin/docker-compose 
docker@pb-test:~/pb$ docker-compose up
Creating network "pb_default" with the default driver
Building pb
Step 1/5 : FROM python:3.6-alpine
3.6-alpine: Pulling from library/python
4fe2ade4980c: Pull complete
7cf6a1d62200: Pull complete
bd5bf1aa7305: Pull complete
73e1cfb346e5: Pull complete
1e70e0bfa6e9: Pull complete
Digest: sha256:efdc898dcd3934564489a933f13a51f136960e63d779ca88750cfe07add65c22
Status: Downloaded newer image for python:3.6-alpine
 ---> 1d981af1e3b4
Step 2/5 : WORKDIR /pb
 ---> Running in 32b9c367349a
Removing intermediate container 32b9c367349a
 ---> e6a50945968d
Step 3/5 : ADD . /build
 ---> 10889d6bef85
Step 4/5 : RUN apk add --no-cache --virtual .build-deps git     && pip install /build     && apk del .build-deps
 ---> Running in b14c0da4ae43
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/6) Installing nghttp2-libs (1.32.0-r0)
(2/6) Installing libssh2 (1.8.0-r3)
(3/6) Installing libcurl (7.61.1-r1)
(4/6) Installing pcre2 (10.31-r0)
(5/6) Installing git (2.18.1-r0)
(6/6) Installing .build-deps (0)
Executing busybox-1.28.4-r1.trigger
OK: 30 MiB in 39 packages
Processing /build
Collecting Flask==0.12.2 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/77/32/e3597cb19ffffe724ad4bf0beca4153419918e7fa4ba6a34b04ee4da3371/Flask-0.12.2-py2.py3-none-any.whl (83kB)
Collecting Werkzeug==0.14.1 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
Collecting PyYAML==3.12 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz (253kB)
Collecting Pygments==2.2.0 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl (841kB)
Collecting requests==2.18.4 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl (88kB)
Collecting docutils==0.14 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl (543kB)
Collecting pyxdg==0.26 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/39/03/12eb9062f43adb94e30f366743cb5c83fd15fef026500cd4de42c7c12280/pyxdg-0.26-py2.py3-none-any.whl (40kB)
Collecting pymongo==3.6.0 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/69/8a/2384c55f4bd494eeb6104a9b35c36714ba1178dcd08ee5a73b92eed3d8c1/pymongo-3.6.0.tar.gz (581kB)
Collecting Markdown==2.6.11 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
Collecting python-dateutil==2.6.1 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/4b/0d/7ed381ab4fe80b8ebf34411d14f253e1cf3e56e2820ffa1d8844b23859a2/python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
Collecting pytz==2018.3 (from pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/3c/80/32e98784a8647880dedf1f6bf8e2c91b195fe18fdecc6767dcf5104598d6/pytz-2018.3-py2.py3-none-any.whl (509kB)
Collecting click>=2.0 (from Flask==0.12.2->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
Collecting Jinja2>=2.4 (from Flask==0.12.2->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
Collecting itsdangerous>=0.21 (from Flask==0.12.2->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests==2.18.4->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl (132kB)
Collecting certifi>=2017.4.17 (from requests==2.18.4->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.18.4->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting idna<2.7,>=2.5 (from requests==2.18.4->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB)
Collecting six>=1.5 (from python-dateutil==2.6.1->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask==0.12.2->pb==0.7.1.dev50)
  Downloading https://files.pythonhosted.org/packages/ac/7e/1b4c2e05809a4414ebce0892fe1e32c14ace86ca7d50c70f00979ca9b3a3/MarkupSafe-1.1.0.tar.gz
Building wheels for collected packages: pb, PyYAML, pymongo, MarkupSafe
  Running setup.py bdist_wheel for pb: started
  Running setup.py bdist_wheel for pb: finished with status 'done'
  Stored in directory: /tmp/pip-ephem-wheel-cache-gs5vub_w/wheels/87/a5/29/40c8cc7ca875b4f3571ab5021ae088b92bae51690cd348fd93
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/03/05/65/bdc14f2c6e09e82ae3e0f13d021e1b6b2481437ea2f207df3f
  Running setup.py bdist_wheel for pymongo: started
  Running setup.py bdist_wheel for pymongo: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/92/3e/0c/e8851526f604586b956f23b324e88a4e2231960eee89863592
  Running setup.py bdist_wheel for MarkupSafe: started
  Running setup.py bdist_wheel for MarkupSafe: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/81/23/64/51895ea52825dc116a55f37043f49be0939bcf603de54e5cde
Successfully built pb PyYAML pymongo MarkupSafe
Installing collected packages: click, Werkzeug, MarkupSafe, Jinja2, itsdangerous, Flask, PyYAML, Pygments, urllib3, certifi, chardet, idna, requests, docutils, pyxdg, pymongo, Markdown, six, python-dateutil, pytz, pb
Successfully installed Flask-0.12.2 Jinja2-2.10 Markdown-2.6.11 MarkupSafe-1.1.0 PyYAML-3.12 Pygments-2.2.0 Werkzeug-0.14.1 certifi-2018.11.29 chardet-3.0.4 click-7.0 docutils-0.14 idna-2.6 itsdangerous-1.1.0 pb-0.7.1.dev50 pymongo-3.6.0 python-dateutil-2.6.1 pytz-2018.3 pyxdg-0.26 requests-2.18.4 six-1.12.0 urllib3-1.22
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
(1/6) Purging .build-deps (0)
(2/6) Purging git (2.18.1-r0)
(3/6) Purging libcurl (7.61.1-r1)
(4/6) Purging nghttp2-libs (1.32.0-r0)
(5/6) Purging libssh2 (1.8.0-r3)
(6/6) Purging pcre2 (10.31-r0)
Executing busybox-1.28.4-r1.trigger
OK: 17 MiB in 33 packages
Removing intermediate container b14c0da4ae43
 ---> c06d973a193a
Step 5/5 : CMD ["python", "-m", "pb"]
 ---> Running in e83a2169a9f4
Removing intermediate container e83a2169a9f4
 ---> 678ec6da1fd6
Successfully built 678ec6da1fd6
Successfully tagged pb_pb:latest
WARNING: Image for service pb was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Pulling mongodb (mongo:latest)...
latest: Pulling from library/mongo
7b8b6451c85f: Pull complete
ab4d1096d9ba: Pull complete
e6797d1788ac: Pull complete
e25c5c290bde: Pull complete
45aa1a4d5e06: Pull complete
b7e29f184242: Pull complete
ad78e42605af: Pull complete
1f4ac0b92a65: Pull complete
55880275f9fb: Pull complete
bd0396c9dcef: Pull complete
28bf9db38c03: Pull complete
3e954d14ae9b: Pull complete
cd245aa9c426: Pull complete
Creating pb_mongodb_1_4b525565092a ... done
Creating pb_pb_1_399281848c09      ... done
Attaching to pb_mongodb_1_64083204b879, pb_pb_1_1dca2355cb69
mongodb_1_64083204b879 | 2018-12-17T18:11:31.642+0000 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongodb_1_64083204b879 | 2018-12-17T18:11:31.659+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=9735b059720d
mongodb_1_64083204b879 | 2018-12-17T18:11:31.660+0000 I CONTROL  [initandlisten] db version v4.0.4
mongodb_1_64083204b879 | 2018-12-17T18:11:31.661+0000 I CONTROL  [initandlisten] git version: f288a3bdf201007f3693c58e140056adf8b04839
mongodb_1_64083204b879 | 2018-12-17T18:11:31.661+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
mongodb_1_64083204b879 | 2018-12-17T18:11:31.662+0000 I CONTROL  [initandlisten] allocator: tcmalloc
mongodb_1_64083204b879 | 2018-12-17T18:11:31.662+0000 I CONTROL  [initandlisten] modules: none
mongodb_1_64083204b879 | 2018-12-17T18:11:31.663+0000 I CONTROL  [initandlisten] build environment:
mongodb_1_64083204b879 | 2018-12-17T18:11:31.665+0000 I CONTROL  [initandlisten]     distmod: ubuntu1604
mongodb_1_64083204b879 | 2018-12-17T18:11:31.665+0000 I CONTROL  [initandlisten]     distarch: x86_64
mongodb_1_64083204b879 | 2018-12-17T18:11:31.666+0000 I CONTROL  [initandlisten]     target_arch: x86_64
mongodb_1_64083204b879 | 2018-12-17T18:11:31.666+0000 I CONTROL  [initandlisten] options: { net: { bindIpAll: true } }
mongodb_1_64083204b879 | 2018-12-17T18:11:31.667+0000 I STORAGE  [initandlisten] 
mongodb_1_64083204b879 | 2018-12-17T18:11:31.668+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongodb_1_64083204b879 | 2018-12-17T18:11:31.669+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
mongodb_1_64083204b879 | 2018-12-17T18:11:31.669+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
mongodb_1_64083204b879 | 2018-12-17T18:11:32.539+0000 I STORAGE  [initandlisten] WiredTiger message [1545070292:539791][1:0x7f9721bf5a40], txn-recover: Set global recovery timestamp: 0
mongodb_1_64083204b879 | 2018-12-17T18:11:32.544+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongodb_1_64083204b879 | 2018-12-17T18:11:32.551+0000 I CONTROL  [initandlisten] 
mongodb_1_64083204b879 | 2018-12-17T18:11:32.551+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
mongodb_1_64083204b879 | 2018-12-17T18:11:32.552+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
mongodb_1_64083204b879 | 2018-12-17T18:11:32.552+0000 I CONTROL  [initandlisten] 
mongodb_1_64083204b879 | 2018-12-17T18:11:32.553+0000 I STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: a223fbca-263b-40e3-97ad-29aa60657c30
mongodb_1_64083204b879 | 2018-12-17T18:11:32.559+0000 I COMMAND  [initandlisten] setting featureCompatibilityVersion to 4.0
mongodb_1_64083204b879 | 2018-12-17T18:11:32.561+0000 I STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: d3dd8c69-a41b-4558-be92-270dd5523ec0
mongodb_1_64083204b879 | 2018-12-17T18:11:32.568+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongodb_1_64083204b879 | 2018-12-17T18:11:32.570+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
mongodb_1_64083204b879 | 2018-12-17T18:11:32.570+0000 I STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with generated UUID: 903dfe4a-793c-46dd-9a56-580fe3bea1f5
mongodb_1_64083204b879 | 2018-12-17T18:11:32.578+0000 I INDEX    [LogicalSessionCacheRefresh] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 }
mongodb_1_64083204b879 | 2018-12-17T18:11:32.579+0000 I INDEX    [LogicalSessionCacheRefresh]    building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:32.580+0000 I INDEX    [LogicalSessionCacheRefresh] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:32.976+0000 I NETWORK  [listener] connection accepted from 172.18.0.3:35716 #1 (1 connection now open)
mongodb_1_64083204b879 | 2018-12-17T18:11:32.977+0000 I NETWORK  [conn1] received client metadata from 172.18.0.3:35716 conn1: { driver: { name: "PyMongo", version: "3.6.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.14.79-boot2docker" }, platform: "CPython 3.6.7.final.0" }
mongodb_1_64083204b879 | 2018-12-17T18:11:32.979+0000 I NETWORK  [listener] connection accepted from 172.18.0.3:35718 #2 (2 connections now open)
mongodb_1_64083204b879 | 2018-12-17T18:11:32.980+0000 I NETWORK  [conn2] received client metadata from 172.18.0.3:35718 conn2: { driver: { name: "PyMongo", version: "3.6.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.14.79-boot2docker" }, platform: "CPython 3.6.7.final.0" }
mongodb_1_64083204b879 | 2018-12-17T18:11:32.981+0000 I STORAGE  [conn2] createCollection: pb.pastes with generated UUID: b121f1a9-0788-4449-9bc8-dd22c38ebb9b
mongodb_1_64083204b879 | 2018-12-17T18:11:32.991+0000 I INDEX    [conn2] build index on: pb.pastes properties: { v: 2, unique: true, key: { digest: 1 }, name: "digest_1", ns: "pb.pastes" }
mongodb_1_64083204b879 | 2018-12-17T18:11:32.992+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:32.993+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:32.997+0000 I INDEX    [conn2] build index on: pb.pastes properties: { v: 2, unique: true, key: { short: 1 }, name: "short_1", ns: "pb.pastes" }
mongodb_1_64083204b879 | 2018-12-17T18:11:32.998+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:32.999+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:33.005+0000 I INDEX    [conn2] build index on: pb.pastes properties: { v: 2, key: { date: 1 }, name: "date_1", ns: "pb.pastes" }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.006+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:33.007+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:33.011+0000 I INDEX    [conn2] build index on: pb.pastes properties: { v: 2, unique: true, key: { label: 1 }, name: "label_1", ns: "pb.pastes", sparse: true }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.011+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:33.013+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:33.017+0000 I INDEX    [conn2] build index on: pb.pastes properties: { v: 2, unique: true, key: { label: 1, namespace: 1 }, name: "label_1_namespace_1", ns: "pb.pastes", sparse: true }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.018+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:33.019+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:33.023+0000 I INDEX    [conn2] build index on: pb.pastes properties: { v: 2, key: { private: 1 }, name: "private_1", ns: "pb.pastes", sparse: true }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.024+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:33.025+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:33.026+0000 I STORAGE  [conn2] createCollection: pb.namespaces with generated UUID: e26272c4-c618-4443-9b3e-f0fe0b21ace5
mongodb_1_64083204b879 | 2018-12-17T18:11:33.035+0000 I INDEX    [conn2] build index on: pb.namespaces properties: { v: 2, unique: true, key: { name: 1 }, name: "name_1", ns: "pb.namespaces" }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.036+0000 I INDEX    [conn2]     building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongodb_1_64083204b879 | 2018-12-17T18:11:33.037+0000 I INDEX    [conn2] build index done.  scanned 0 total records. 0 secs
mongodb_1_64083204b879 | 2018-12-17T18:11:33.040+0000 I NETWORK  [conn1] end connection 172.18.0.3:35716 (1 connection now open)
mongodb_1_64083204b879 | 2018-12-17T18:11:33.043+0000 I NETWORK  [conn2] end connection 172.18.0.3:35718 (0 connections now open)
pb_1_1dca2355cb69 | INFO:werkzeug: * Running on http://[::]:10002/ (Press CTRL+C to quit)
pb_1_1dca2355cb69 | INFO:werkzeug: * Restarting with stat
mongodb_1_64083204b879 | 2018-12-17T18:11:33.344+0000 I NETWORK  [listener] connection accepted from 172.18.0.3:35720 #3 (1 connection now open)
mongodb_1_64083204b879 | 2018-12-17T18:11:33.345+0000 I NETWORK  [conn3] received client metadata from 172.18.0.3:35720 conn3: { driver: { name: "PyMongo", version: "3.6.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.14.79-boot2docker" }, platform: "CPython 3.6.7.final.0" }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.347+0000 I NETWORK  [listener] connection accepted from 172.18.0.3:35722 #4 (2 connections now open)
mongodb_1_64083204b879 | 2018-12-17T18:11:33.348+0000 I NETWORK  [conn4] received client metadata from 172.18.0.3:35722 conn4: { driver: { name: "PyMongo", version: "3.6.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.14.79-boot2docker" }, platform: "CPython 3.6.7.final.0" }
mongodb_1_64083204b879 | 2018-12-17T18:11:33.352+0000 I NETWORK  [conn3] end connection 172.18.0.3:35720 (1 connection now open)
mongodb_1_64083204b879 | 2018-12-17T18:11:33.353+0000 I NETWORK  [conn4] end connection 172.18.0.3:35722 (0 connections now open)
pb_1_1dca2355cb69 | WARNING:werkzeug: * Debugger is active!
pb_1_1dca2355cb69 | INFO:werkzeug: * Debugger PIN: 129-407-086
docker@pb-test:~$ curl -F c=@- http://localhost:10002/ <<< "test paste"
date: 2018-12-17T18:15:09.320526+00:00
digest: 7684dece6c9afaa87ba7f60e3441826e76ace1cf
long: AHaE3s5smvqoe6f2DjRBgm52rOHP
short: rOHP
size: 11
status: created
url: http://localhost:10002/rOHP
uuid: fa3d5d0a-9d86-4941-ade8-5a4edc4d8314
docker@pb-test:~$ curl http://localhost:10002/rOHP
test paste
buhman commented 5 years ago

According to http://mirror.centos.org/centos/7.6.1810/extras/x86_64/Packages/ you probably have docker ~1.13.

This is too old.

You need at least docker 17.04.0+, as specified in the compose file docker-compose.yaml https://docs.docker.com/compose/compose-file/

The command '/bin/sh -c apk add --no-cache --virtual .build-deps git && pip install /build && apk del .build-deps' returned a non-zero code: 1

I'm completely certain there was more output that accompanied that error.