- Fails
FROM artprod.dev.bloomberg.com/devx-rhel-build-base:7.2
RUN printf 'Acquire::http::Proxy "http://bproxy.tdmz1.bloomberg.com:80";\nAcquire::https::Proxy "https://bproxy.tdmz1.bloomberg.com:80";' >/opt/bb/etc/apt/apt.conf
RUN /opt/bb/bin/apt-get update && /opt/bb/bin/apt-get install --force-yes -y python2.7
RUN /opt/bb/bin/python2.7 -c 'import ssl'
(crsrvpxapi) bernat@uvm ~/work/git/python-crsrvpxapi (master●)$ sudo docker build -f .mariner.Dockerfile --build-arg http_proxy="http:\\$DEV" --build-arg https_proxy="https:\\$DEV" -t crs . --no-cache
Sending build context to Docker daemon 149.9 MB
Step 1/4 : FROM artprod.dev.bloomberg.com/devx-rhel-build-base:7.2
---> 3e038bc78418
Step 2/4 : RUN printf 'Acquire::http::Proxy "http://bproxy.tdmz1.bloomberg.com:80";\nAcquire::https::Proxy "https://bproxy.tdmz1.bloomberg.com:80";' >/opt/bb/etc/apt/apt.conf
---> Running in f94ef758b001
---> ff4f35126e29
Removing intermediate container f94ef758b001
Step 3/4 : RUN /opt/bb/bin/apt-get update && /opt/bb/bin/apt-get install --force-yes -y python2.7
---> Running in b6b7508671d7
Ign https://blp-dpkg.dev.bloomberg.com unstable Release.gpg
Ign https://blp-dpkg.dev.bloomberg.com/ unstable/main Translation-en
Get:1 https://blp-dpkg.dev.bloomberg.com unstable Release [3616 B]
Ign https://blp-dpkg.dev.bloomberg.com unstable/main Sources/DiffIndex
Ign https://blp-dpkg.dev.bloomberg.com unstable/main amd64 Packages/DiffIndex
Get:2 https://blp-dpkg.dev.bloomberg.com unstable/main Sources [1212 kB]
Get:3 https://blp-dpkg.dev.bloomberg.com unstable/main amd64 Packages [1240 kB]
Fetched 2455 kB in 13s (183 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libpython2.7 libpython2.7-stdlib libreadline6 libsqlite0 libsqlite3-0
The following NEW packages will be installed:
libpython2.7 libpython2.7-stdlib libreadline6 libsqlite0 libsqlite3-0
python2.7
0 upgraded, 6 newly installed, 0 to remove and 55 not upgraded.
Need to get 16.2 MB of archives.
After this operation, 49.3 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libreadline6 libsqlite3-0 libsqlite0 libpython2.7-stdlib libpython2.7
python2.7
Get:1 https://blp-dpkg.dev.bloomberg.com/ unstable/main libreadline6 amd64 6.3.008.1+b20161028T21424916 [287 kB]
Get:2 https://blp-dpkg.dev.bloomberg.com/ unstable/main libsqlite3-0 amd64 3.12.2+1-1+b20170110T00580859 [919 kB]
Get:3 https://blp-dpkg.dev.bloomberg.com/ unstable/main libsqlite0 amd64 3.12.2.2+b20170110T01041571 [626 B]
Get:4 https://blp-dpkg.dev.bloomberg.com/ unstable/main libpython2.7-stdlib amd64 2.7.13-0+b20170124T17121708 [12.3 MB]
Get:5 https://blp-dpkg.dev.bloomberg.com/ unstable/main libpython2.7 amd64 2.7.13-0+b20170124T17121708 [2722 kB]
Get:6 https://blp-dpkg.dev.bloomberg.com/ unstable/main python2.7 amd64 2.7.13-0+b20170124T17121708 [10.9 kB]
Fetched 16.2 MB in 31s (521 kB/s)
Selecting previously unselected package libreadline6.
(Reading database ... 10061 files and directories currently installed.)
Unpacking libreadline6 (from .../libreadline6_6.3.008.1+b20161028T21424916_amd64.deb) ...
Selecting previously unselected package libsqlite3-0.
Unpacking libsqlite3-0 (from .../libsqlite3-0_3.12.2+1-1+b20170110T00580859_amd64.deb) ...
Selecting previously unselected package libsqlite0.
Unpacking libsqlite0 (from .../libsqlite0_3.12.2.2+b20170110T01041571_amd64.deb) ...
Selecting previously unselected package libpython2.7-stdlib.
Unpacking libpython2.7-stdlib (from .../libpython2.7-stdlib_2.7.13-0+b20170124T17121708_amd64.deb) ...
Selecting previously unselected package libpython2.7.
Unpacking libpython2.7 (from .../libpython2.7_2.7.13-0+b20170124T17121708_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.13-0+b20170124T17121708_amd64.deb) ...
Setting up libreadline6 (6.3.008.1+b20161028T21424916) ...
Setting up libsqlite3-0 (3.12.2+1-1+b20170110T00580859) ...
Setting up libsqlite0 (3.12.2.2+b20170110T01041571) ...
Setting up libpython2.7-stdlib (2.7.13-0+b20170124T17121708) ...
Setting up libpython2.7 (2.7.13-0+b20170124T17121708) ...
Setting up python2.7 (2.7.13-0+b20170124T17121708) ...
---> f5d2cb0a0fa4
Removing intermediate container b6b7508671d7
Step 4/4 : RUN /opt/bb/bin/python2.7 -c 'import ssl'
---> Running in 3a9ea4fc7128
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/bb/lib/python2.7/ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: /opt/bb/lib/python2.7/lib-dynload/_ssl.so: undefined symbol: SSL_CTX_set_alpn_protos
The command '/bin/sh -c /opt/bb/bin/python2.7 -c 'import ssl'' returned a non-zero code: 1
- Ok:
FROM artprod.dev.bloomberg.com/devx-rhel-build-base:7.2
RUN printf 'Acquire::http::Proxy "http://bproxy.tdmz1.bloomberg.com:80";\nAcquire::https::Proxy "https://bproxy.tdmz1.bloomberg.com:80";' >/opt/bb/etc/apt/apt.conf
RUN /opt/bb/bin/apt-get update && /opt/bb/bin/apt-get install --force-yes -y python2.7
RUN /opt/bb/bin/apt-get install --force-yes -y libopenssl-dev
RUN /opt/bb/bin/python2.7 -c 'import ssl'
(crsrvpxapi) bernat@uvm ~/work/git/python-crsrvpxapi (master●)$ sudo docker build -f .mariner.Dockerfile --build-arg http_proxy="http:\\$DEV" --build-arg https_proxy="https:\\$DEV" -t crs . --no-cache
Sending build context to Docker daemon 149.9 MB
Step 1/5 : FROM artprod.dev.bloomberg.com/devx-rhel-build-base:7.2
---> 3e038bc78418
Step 2/5 : RUN printf 'Acquire::http::Proxy "http://bproxy.tdmz1.bloomberg.com:80";\nAcquire::https::Proxy "https://bproxy.tdmz1.bloomberg.com:80";' >/opt/bb/etc/apt/apt.conf
---> Running in 32643fd01f40
---> b3cda83708ff
Removing intermediate container 32643fd01f40
Step 3/5 : RUN /opt/bb/bin/apt-get update && /opt/bb/bin/apt-get install --force-yes -y python2.7
---> Running in 5c7cc078cfe2
Ign https://blp-dpkg.dev.bloomberg.com unstable Release.gpg
Ign https://blp-dpkg.dev.bloomberg.com/ unstable/main Translation-en
Get:1 https://blp-dpkg.dev.bloomberg.com unstable Release [3616 B]
Ign https://blp-dpkg.dev.bloomberg.com unstable/main Sources/DiffIndex
Ign https://blp-dpkg.dev.bloomberg.com unstable/main amd64 Packages/DiffIndex
Get:2 https://blp-dpkg.dev.bloomberg.com unstable/main Sources [1212 kB]
Get:3 https://blp-dpkg.dev.bloomberg.com unstable/main amd64 Packages [1240 kB]
Fetched 2455 kB in 14s (171 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libpython2.7 libpython2.7-stdlib libreadline6 libsqlite0 libsqlite3-0
The following NEW packages will be installed:
libpython2.7 libpython2.7-stdlib libreadline6 libsqlite0 libsqlite3-0
python2.7
0 upgraded, 6 newly installed, 0 to remove and 55 not upgraded.
Need to get 16.2 MB of archives.
After this operation, 49.3 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libreadline6 libsqlite3-0 libsqlite0 libpython2.7-stdlib libpython2.7
python2.7
Get:1 https://blp-dpkg.dev.bloomberg.com/ unstable/main libreadline6 amd64 6.3.008.1+b20161028T21424916 [287 kB]
Get:2 https://blp-dpkg.dev.bloomberg.com/ unstable/main libsqlite3-0 amd64 3.12.2+1-1+b20170110T00580859 [919 kB]
Get:3 https://blp-dpkg.dev.bloomberg.com/ unstable/main libsqlite0 amd64 3.12.2.2+b20170110T01041571 [626 B]
Get:4 https://blp-dpkg.dev.bloomberg.com/ unstable/main libpython2.7-stdlib amd64 2.7.13-0+b20170124T17121708 [12.3 MB]
Get:5 https://blp-dpkg.dev.bloomberg.com/ unstable/main libpython2.7 amd64 2.7.13-0+b20170124T17121708 [2722 kB]
Get:6 https://blp-dpkg.dev.bloomberg.com/ unstable/main python2.7 amd64 2.7.13-0+b20170124T17121708 [10.9 kB]
Fetched 16.2 MB in 29s (551 kB/s)
Selecting previously unselected package libreadline6.
(Reading database ... 10061 files and directories currently installed.)
Unpacking libreadline6 (from .../libreadline6_6.3.008.1+b20161028T21424916_amd64.deb) ...
Selecting previously unselected package libsqlite3-0.
Unpacking libsqlite3-0 (from .../libsqlite3-0_3.12.2+1-1+b20170110T00580859_amd64.deb) ...
Selecting previously unselected package libsqlite0.
Unpacking libsqlite0 (from .../libsqlite0_3.12.2.2+b20170110T01041571_amd64.deb) ...
Selecting previously unselected package libpython2.7-stdlib.
Unpacking libpython2.7-stdlib (from .../libpython2.7-stdlib_2.7.13-0+b20170124T17121708_amd64.deb) ...
Selecting previously unselected package libpython2.7.
Unpacking libpython2.7 (from .../libpython2.7_2.7.13-0+b20170124T17121708_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.13-0+b20170124T17121708_amd64.deb) ...
Setting up libreadline6 (6.3.008.1+b20161028T21424916) ...
Setting up libsqlite3-0 (3.12.2+1-1+b20170110T00580859) ...
Setting up libsqlite0 (3.12.2.2+b20170110T01041571) ...
Setting up libpython2.7-stdlib (2.7.13-0+b20170124T17121708) ...
Setting up libpython2.7 (2.7.13-0+b20170124T17121708) ...
Setting up python2.7 (2.7.13-0+b20170124T17121708) ...
---> c3a0d3bd5445
Removing intermediate container 5c7cc078cfe2
Step 4/5 : RUN /opt/bb/bin/apt-get install --force-yes -y libopenssl-dev
---> Running in 3aa13e71e173
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libopenssl-rs201609v00
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libopenssl-robo-dev libopenssl-rs201611v00 libopenssl1.0.0 libz-rs201611v00
openssl-bin
The following NEW packages will be installed:
libopenssl-rs201611v00 libz-rs201611v00
The following packages will be upgraded:
libopenssl-dev libopenssl-robo-dev libopenssl1.0.0 openssl-bin
4 upgraded, 2 newly installed, 0 to remove and 51 not upgraded.
Need to get 7745 kB of archives.
After this operation, 6400 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libz-rs201611v00 libopenssl-rs201611v00 libopenssl-robo-dev libopenssl-dev
libopenssl1.0.0 openssl-bin
Get:1 https://blp-dpkg.dev.bloomberg.com/ unstable/main libz-rs201611v00 amd64 1.2.8.11+b20170124T16413601 [90.7 kB]
Get:2 https://blp-dpkg.dev.bloomberg.com/ unstable/main libopenssl-rs201611v00 amd64 1.0.2j.4+b20170124T16454189 [2159 kB]
Get:3 https://blp-dpkg.dev.bloomberg.com/ unstable/main libopenssl-robo-dev amd64 1.0.2j.4+b20170124T16454189 [1144 B]
Get:4 https://blp-dpkg.dev.bloomberg.com/ unstable/main libopenssl-dev amd64 1.0.2j.4+b20170124T16454189 [2852 kB]
Get:5 https://blp-dpkg.dev.bloomberg.com/ unstable/main libopenssl1.0.0 amd64 1.0.2j.4+b20170124T16454189 [2380 kB]
Get:6 https://blp-dpkg.dev.bloomberg.com/ unstable/main openssl-bin amd64 1.0.2j.4+b20170124T16454189 [262 kB]
Fetched 7745 kB in 29s (266 kB/s)
Selecting previously unselected package libz-rs201611v00.
(Reading database ... 11998 files and directories currently installed.)
Unpacking libz-rs201611v00 (from .../libz-rs201611v00_1.2.8.11+b20170124T16413601_amd64.deb) ...
Selecting previously unselected package libopenssl-rs201611v00.
Unpacking libopenssl-rs201611v00 (from .../libopenssl-rs201611v00_1.0.2j.4+b20170124T16454189_amd64.deb) ...
Preparing to replace libopenssl-robo-dev 1.0.1u.0+b20161031T21505006 (using .../libopenssl-robo-dev_1.0.2j.4+b20170124T16454189_amd64.deb) ...
Unpacking replacement libopenssl-robo-dev ...
Preparing to replace libopenssl-dev 1.0.1u.0+b20161031T21505006 (using .../libopenssl-dev_1.0.2j.4+b20170124T16454189_amd64.deb) ...
Unpacking replacement libopenssl-dev ...
Preparing to replace libopenssl1.0.0 1.0.1u.0+b20161031T21505006 (using .../libopenssl1.0.0_1.0.2j.4+b20170124T16454189_amd64.deb) ...
Unpacking replacement libopenssl1.0.0 ...
Setting up libopenssl1.0.0 (1.0.2j.4+b20170124T16454189) ...
(Reading database ... 12010 files and directories currently installed.)
Preparing to replace openssl-bin 1.0.1u.0+b20161031T21505006 (using .../openssl-bin_1.0.2j.4+b20170124T16454189_amd64.deb) ...
Unpacking replacement openssl-bin ...
Setting up openssl-bin (1.0.2j.4+b20170124T16454189) ...
Setting up libz-rs201611v00 (1.2.8.11+b20170124T16413601) ...
Setting up libopenssl-rs201611v00 (1.0.2j.4+b20170124T16454189) ...
Setting up libopenssl-dev (1.0.2j.4+b20170124T16454189) ...
Setting up libopenssl-robo-dev (1.0.2j.4+b20170124T16454189) ...
---> c5cf3c12a67d
Removing intermediate container 3aa13e71e173
Step 5/5 : RUN /opt/bb/bin/python2.7 -c 'import ssl'
---> Running in 8cf0a492bfed
---> d043abe3f104
Removing intermediate container 8cf0a492bfed
Successfully built d043abe3f104