rocker-org / rocker-versioned

Run current & prior versions of R using docker
https://hub.docker.com/r/rocker/r-ver
GNU General Public License v2.0
297 stars 169 forks source link

Building Shiny within Dockerfile fails #88

Closed huelf closed 2 years ago

huelf commented 6 years ago

Hi, I have a small Dockerfile that worked earlier, but now throws an error:

FROM rocker/tidyverse:latest
RUN export ADD=shiny && bash /etc/cont-init.d/add

(This is the typical Dockerfile for including the Shiny Server in an Image.)

I start it with:

docker image build -f Dockerfile_test -t testimage .

The output is this:

Sending build context to Docker daemon  101.4kB
Step 1/2 : FROM rocker/tidyverse:latest
 ---> b91c3068c7f4
Step 2/2 : RUN export ADD=shiny && bash /etc/cont-init.d/add
 ---> Running in cdf32a969a3f
Adding shiny server to container...
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch Release
Fetched 91.0 kB in 1s (58.0 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  iso-codes libapt-inst2.0 libxt6 python-apt-common python3-apt
  python3-chardet python3-debian python3-pkg-resources python3-six
Suggested packages:
  xz-utils | xz-lzma isoquery libxt-doc python3-apt-dbg python-apt-doc
  python3-setuptools
The following NEW packages will be installed:
  gdebi-core iso-codes libapt-inst2.0 libxt-dev libxt6 python-apt-common
  python3-apt python3-chardet python3-debian python3-pkg-resources python3-six
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,909 kB of archives.
After this operation, 23.8 MB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libapt-inst2.0 amd64 1.4.8 [192 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-apt-common all 1.4.0~beta3 [93.0 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 python3-apt amd64 1.4.0~beta3 [170 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxt-dev amd64 1:1.1.5-1 [423 kB]
Err:3 http://deb.debian.org/debian stretch/main amd64 python3-apt amd64 1.4.0~beta3
  Writing more data than expected (171485 > 170494)
  Hashes of expected file:
   - SHA256:d2744dedfd18cf4b47f02e36ad5d9481e6466239f9a6353d6a290eb36fc9e676
   - MD5Sum:f14dac56b1a6c192d8d69a1eff31a87c [weak]
   - Filesize:170494 [weak]
Err:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxt-dev amd64 1:1.1.5-1
  Writing more data than expected (171485 > 170494)
  Hashes of expected file:
   - SHA256:3e0c68326cc2c69741af385733376b1a8bceb2c4114da8fc1067270e0e261302
   - MD5Sum:47cdb2651dfa4b6f27b863ad8398e943 [weak]
   - Filesize:422708 [weak]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-pkg-resources all 33.1.1-1 [137 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-chardet all 2.3.0-2 [96.0 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-six all 1.10.0-3 [14.4 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-debian all 0.1.30 [72.6 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gdebi-core all 0.9.5.7+nmu1 [134 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 iso-codes all 3.75-1 [2,389 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxt6 amd64 1:1.1.5-1 [188 kB]
Fetched 3,315 kB in 1min 4s (51.6 kB/s)
E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/libx/libxt/libxt-dev_1.1.5-1_amd64.deb  Writing more data than expected (171485 > 170494)
   Hashes of expected file:
    - SHA256:d2744dedfd18cf4b47f02e36ad5d9481e6466239f9a6353d6a290eb36fc9e676
    - MD5Sum:f14dac56b1a6c192d8d69a1eff31a87c [weak]
    - Filesize:170494 [weak]
E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/libx/libxt/libxt-dev_1.1.5-1_amd64.deb  Writing more data than expected (171485 > 170494)
   Hashes of expected file:
    - SHA256:3e0c68326cc2c69741af385733376b1a8bceb2c4114da8fc1067270e0e261302
    - MD5Sum:47cdb2651dfa4b6f27b863ad8398e943 [weak]
    - Filesize:422708 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Removing intermediate container cdf32a969a3f

What do I do wrong? Or is something broken in the tidyverse image?

cboettig commented 6 years ago

Thanks for the bug report... hmm... I think I need to point to a more recent binary for shiny, will investigate tonight.

eitsupi commented 2 years ago

I think this issue has been resolved, so I will close it.