Having trouble with an install in Docker ruby:2.3.1
Trying to install this on a ruby 2.3.1 image using this dockerfile:
FROM ruby:2.3.1
RUN curl -s https://packagecloud.io/install/repositories/segment/chamber/script.deb.sh | bash
RUN apt-get update
RUN apt-get install -y chamber
But am getting E: Unable to locate package chamber on the final step.
If I remove the install and open a shell in the built image, this is what I get:
root@16b0a3642bfe:/# cat /etc/debian_version
8.6
root@43af0af023ca:/# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://packagecloud.io/segment/chamber/debian/ jessie/main amd64 Packages
origin packagecloud.io
500 http://security.debian.org/ jessie/updates/main amd64 Packages
release v=8,o=Debian,a=oldstable,n=jessie,l=Debian-Security,c=main
origin security.debian.org
500 http://deb.debian.org/debian/ jessie-updates/main amd64 Packages
release o=Debian,a=oldstable-updates,n=jessie-updates,l=Debian,c=main
origin deb.debian.org
500 http://deb.debian.org/debian/ jessie/main amd64 Packages
release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=main
origin deb.debian.org
Pinned packages:
root@0f69186a3a3f:/# apt-cache search chamber
west-chamber-common - iptable extension for bypassing content filtering firewall
west-chamber-dkms - iptable extension for bypassing content filtering firewall (dkms)
west-chamber-source - iptable extension for bypassing content filtering firewall (module source)
Should this work for Debian 8? The script doesn't complain about this version. Thanks!
The Debian releases page lists jessie as obsolete, but also covered by LTS until June 30, 2020. Looks like the Ruby image supported jessie and stretch during 2.4.x and dropped Jessie in 2.5.x. So I'd be reluctant to give it "official" support.
That said, all the DEBs are the exact same package, merely containing the bin. Here's a hack that should get you sorted:
ROM ruby:2.3.1
RUN curl -s https://packagecloud.io/install/repositories/segment/chamber/script.deb.sh | bash
RUN sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/segment_chamber.list
RUN apt-get update
RUN apt-get install -y chamber
Alternatively you can do something like this:
RUN curl https://github.com/segmentio/chamber/releases/download/v2.2.0/chamber_v2.2.0_amd64.deb --output chamber.deb -L
RUN dpkg -i chamber.deb
Just confirmed both options work. Thank you both!