Skip to content

Instantly share code, notes, and snippets.

@RuBiCK
Created April 28, 2020 10:28
Show Gist options
  • Save RuBiCK/c0cbaa674a6311aeb9546b921e513bf2 to your computer and use it in GitHub Desktop.
Save RuBiCK/c0cbaa674a6311aeb9546b921e513bf2 to your computer and use it in GitHub Desktop.
consul docker build error
from commit d3fa00b1e60bc391d15306a3e5109b520fa13deb (HEAD -> master, origin/master, origin/HEAD)
$ docker build -t consul .
Sending build context to Docker daemon 133.3MB
Step 1/25 : FROM ruby:2.3.8
2.3.8: Pulling from library/ruby
e79bb959ec00: Pull complete
d4b7902036fe: Pull complete
1b2a72d4e030: Pull complete
d54db43011fd: Pull complete
69d473365bb3: Pull complete
84ed2a0dc034: Pull complete
8952ca0665c5: Pull complete
ef485f36c624: Pull complete
Digest: sha256:78cc821d95c48621e577b6b0d44c9d509f0f2a4e089b9fd0ca2ae86f274773a8
Status: Downloaded newer image for ruby:2.3.8
---> c0d23ebb3ed6
Step 2/25 : ENV DEBIAN_FRONTEND noninteractive
---> Running in b0ac96ae1719
Removing intermediate container b0ac96ae1719
---> a74c611ffa0e
Step 3/25 : RUN apt-get update -qq
---> Running in 60625c5c7c53
Removing intermediate container 60625c5c7c53
---> cd88d6d4335e
Step 4/25 : RUN apt-get install -y build-essential libpq-dev postgresql-client nodejs imagemagick sudo libxss1 libappindicator1 libindicator7 unzip memcached
---> Running in c3d84e8ea735
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
distro-info-data dpkg-dev fakeroot libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdbusmenu-glib4
libdbusmenu-gtk4 libfakeroot libpq5 libuv1 lsb-release postgresql-client-9.6
postgresql-client-common
Suggested packages:
debian-keyring postgresql-doc-9.6 lsb libcache-memcached-perl libmemcached
libanyevent-perl libyaml-perl libterm-readkey-perl postgresql-9.6 zip
The following NEW packages will be installed:
build-essential distro-info-data dpkg-dev fakeroot libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libappindicator1
libdbusmenu-glib4 libdbusmenu-gtk4 libfakeroot libindicator7 libuv1 libxss1
lsb-release memcached nodejs postgresql-client postgresql-client-9.6
postgresql-client-common sudo
The following packages will be upgraded:
imagemagick libpq-dev libpq5 unzip
4 upgraded, 21 newly installed, 0 to remove and 77 not upgraded.
Need to get 8935 kB of archives.
After this operation, 27.1 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 libxss1 amd64 1:1.2.2-1 [17.5 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 libpq-dev amd64 9.6.17-0+deb9u1 [217 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 dpkg-dev all 1.18.25 [1595 kB]
Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 libpq5 amd64 9.6.17-0+deb9u1 [137 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 postgresql-client-9.6 amd64 9.6.17-0+deb9u1 [1282 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 build-essential amd64 12.3 [7346 B]
Get:7 http://deb.debian.org/debian stretch/main amd64 distro-info-data all 0.36 [5810 B]
Get:8 http://deb.debian.org/debian stretch/main amd64 libfakeroot amd64 1.21-3.1 [45.7 kB]
Get:9 http://deb.debian.org/debian stretch/main amd64 fakeroot amd64 1.21-3.1 [85.6 kB]
Get:10 http://deb.debian.org/debian stretch/main amd64 imagemagick amd64 8:6.9.7.4+dfsg-11+deb9u7 [141 kB]
Get:11 http://deb.debian.org/debian stretch/main amd64 libalgorithm-diff-perl all 1.19.03-1 [48.7 kB]
Get:12 http://deb.debian.org/debian stretch/main amd64 libalgorithm-diff-xs-perl amd64 0.04-4+b2 [11.6 kB]
Get:13 http://deb.debian.org/debian stretch/main amd64 libalgorithm-merge-perl all 0.08-3 [12.7 kB]
Get:14 http://deb.debian.org/debian stretch/main amd64 libdbusmenu-glib4 amd64 12.10.2-2 [104 kB]
Get:15 http://deb.debian.org/debian stretch/main amd64 libdbusmenu-gtk4 amd64 12.10.2-2 [90.8 kB]
Get:16 http://deb.debian.org/debian stretch/main amd64 libindicator7 amd64 0.5.0-3+b1 [52.9 kB]
Get:17 http://deb.debian.org/debian stretch/main amd64 libappindicator1 amd64 0.4.92-4 [52.5 kB]
Get:18 http://deb.debian.org/debian stretch/main amd64 libuv1 amd64 1.9.1-3 [84.4 kB]
Get:19 http://deb.debian.org/debian stretch/main amd64 lsb-release all 9.20161125 [27.1 kB]
Get:20 http://deb.debian.org/debian stretch/main amd64 memcached amd64 1.4.33-1+deb9u1 [115 kB]
Get:21 http://deb.debian.org/debian stretch/main amd64 postgresql-client-common all 181+deb9u3 [79.3 kB]
Get:22 http://deb.debian.org/debian stretch/main amd64 postgresql-client all 9.6+181+deb9u3 [56.0 kB]
Get:23 http://deb.debian.org/debian stretch/main amd64 sudo amd64 1.8.19p1-2.1+deb9u2 [1054 kB]
Get:24 http://deb.debian.org/debian stretch/main amd64 unzip amd64 6.0-21+deb9u2 [172 kB]
Get:25 http://deb.debian.org/debian stretch/main amd64 nodejs amd64 4.8.2~dfsg-1 [3440 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 8935 kB in 0s (12.0 MB/s)
Selecting previously unselected package libxss1:amd64.
(Reading database ... 29619 files and directories currently installed.)
Preparing to unpack .../00-libxss1_1%3a1.2.2-1_amd64.deb ...
Unpacking libxss1:amd64 (1:1.2.2-1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../01-dpkg-dev_1.18.25_all.deb ...
Unpacking dpkg-dev (1.18.25) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../02-build-essential_12.3_amd64.deb ...
Unpacking build-essential (12.3) ...
Selecting previously unselected package distro-info-data.
Preparing to unpack .../03-distro-info-data_0.36_all.deb ...
Unpacking distro-info-data (0.36) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../04-libfakeroot_1.21-3.1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.21-3.1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../05-fakeroot_1.21-3.1_amd64.deb ...
Unpacking fakeroot (1.21-3.1) ...
Preparing to unpack .../06-imagemagick_8%3a6.9.7.4+dfsg-11+deb9u7_amd64.deb ...
Unpacking imagemagick (8:6.9.7.4+dfsg-11+deb9u7) over (8:6.9.7.4+dfsg-11+deb9u6) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../07-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../08-libalgorithm-diff-xs-perl_0.04-4+b2_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-4+b2) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../09-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libdbusmenu-glib4:amd64.
Preparing to unpack .../10-libdbusmenu-glib4_12.10.2-2_amd64.deb ...
Unpacking libdbusmenu-glib4:amd64 (12.10.2-2) ...
Selecting previously unselected package libdbusmenu-gtk4:amd64.
Preparing to unpack .../11-libdbusmenu-gtk4_12.10.2-2_amd64.deb ...
Unpacking libdbusmenu-gtk4:amd64 (12.10.2-2) ...
Selecting previously unselected package libindicator7:amd64.
Preparing to unpack .../12-libindicator7_0.5.0-3+b1_amd64.deb ...
Unpacking libindicator7:amd64 (0.5.0-3+b1) ...
Selecting previously unselected package libappindicator1:amd64.
Preparing to unpack .../13-libappindicator1_0.4.92-4_amd64.deb ...
Unpacking libappindicator1:amd64 (0.4.92-4) ...
Preparing to unpack .../14-libpq-dev_9.6.17-0+deb9u1_amd64.deb ...
Unpacking libpq-dev (9.6.17-0+deb9u1) over (9.6.11-0+deb9u1) ...
Preparing to unpack .../15-libpq5_9.6.17-0+deb9u1_amd64.deb ...
Unpacking libpq5:amd64 (9.6.17-0+deb9u1) over (9.6.11-0+deb9u1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../16-libuv1_1.9.1-3_amd64.deb ...
Unpacking libuv1:amd64 (1.9.1-3) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../17-lsb-release_9.20161125_all.deb ...
Unpacking lsb-release (9.20161125) ...
Selecting previously unselected package memcached.
Preparing to unpack .../18-memcached_1.4.33-1+deb9u1_amd64.deb ...
Unpacking memcached (1.4.33-1+deb9u1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../19-postgresql-client-common_181+deb9u3_all.deb ...
Unpacking postgresql-client-common (181+deb9u3) ...
Selecting previously unselected package postgresql-client-9.6.
Preparing to unpack .../20-postgresql-client-9.6_9.6.17-0+deb9u1_amd64.deb ...
Unpacking postgresql-client-9.6 (9.6.17-0+deb9u1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../21-postgresql-client_9.6+181+deb9u3_all.deb ...
Unpacking postgresql-client (9.6+181+deb9u3) ...
Selecting previously unselected package sudo.
Preparing to unpack .../22-sudo_1.8.19p1-2.1+deb9u2_amd64.deb ...
Unpacking sudo (1.8.19p1-2.1+deb9u2) ...
Preparing to unpack .../23-unzip_6.0-21+deb9u2_amd64.deb ...
Unpacking unzip (6.0-21+deb9u2) over (6.0-21) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../24-nodejs_4.8.2~dfsg-1_amd64.deb ...
Unpacking nodejs (4.8.2~dfsg-1) ...
Setting up libindicator7:amd64 (0.5.0-3+b1) ...
Processing triggers for mime-support (3.60) ...
Setting up sudo (1.8.19p1-2.1+deb9u2) ...
Setting up libuv1:amd64 (1.9.1-3) ...
Setting up memcached (1.4.33-1+deb9u1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libxss1:amd64 (1:1.2.2-1) ...
Setting up unzip (6.0-21+deb9u2) ...
Setting up distro-info-data (0.36) ...
Setting up lsb-release (9.20161125) ...
Setting up dpkg-dev (1.18.25) ...
Setting up libdbusmenu-glib4:amd64 (12.10.2-2) ...
Setting up libpq5:amd64 (9.6.17-0+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up postgresql-client-common (181+deb9u3) ...
Setting up libfakeroot:amd64 (1.21-3.1) ...
Setting up imagemagick (8:6.9.7.4+dfsg-11+deb9u7) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up libpq-dev (9.6.17-0+deb9u1) ...
Setting up nodejs (4.8.2~dfsg-1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up build-essential (12.3) ...
Setting up postgresql-client-9.6 (9.6.17-0+deb9u1) ...
update-alternatives: using /usr/share/postgresql/9.6/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up fakeroot (1.21-3.1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libdbusmenu-gtk4:amd64 (12.10.2-2) ...
Setting up libalgorithm-diff-xs-perl (0.04-4+b2) ...
Setting up postgresql-client (9.6+181+deb9u3) ...
Setting up libappindicator1:amd64 (0.4.92-4) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Removing intermediate container c3d84e8ea735
---> 3853564175f7
Step 5/25 : RUN adduser --shell /bin/bash --disabled-password --gecos "" consul && adduser consul sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
---> Running in bad94403af00
Adding user `consul' ...
Adding new group `consul' (1000) ...
Adding new user `consul' (1000) with group `consul' ...
Creating home directory `/home/consul' ...
Copying files from `/etc/skel' ...
Adding user `consul' to group `sudo' ...
Adding user consul to group sudo
Done.
Removing intermediate container bad94403af00
---> 508f535110ce
Step 6/25 : RUN echo 'Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bundle/bin"' > /etc/sudoers.d/secure_path
---> Running in aa4b046e8aec
Removing intermediate container aa4b046e8aec
---> 81a261a682f4
Step 7/25 : RUN chmod 0440 /etc/sudoers.d/secure_path
---> Running in 159d7843b947
Removing intermediate container 159d7843b947
---> 8db66f6f1656
Step 8/25 : COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
---> d454cab23a90
Step 9/25 : ENV RAILS_ROOT /var/www/consul
---> Running in 29f476a4bffe
Removing intermediate container 29f476a4bffe
---> 2ccafb6e1e4e
Step 10/25 : RUN mkdir -p $RAILS_ROOT/tmp/pids
---> Running in 0b09c4eedd16
Removing intermediate container 0b09c4eedd16
---> 81c2903f78dd
Step 11/25 : WORKDIR $RAILS_ROOT
---> Running in 0e77a5ed2540
Removing intermediate container 0e77a5ed2540
---> d87600db4870
Step 12/25 : COPY Gemfile Gemfile
---> 84b9bf3f929f
Step 13/25 : COPY Gemfile.lock Gemfile.lock
---> 605a38147965
Step 14/25 : COPY Gemfile_custom Gemfile_custom
---> 3e9792258aa4
Step 15/25 : RUN gem install bundler
---> Running in 86f89d290b56
Successfully installed bundler-2.1.4
1 gem installed
Removing intermediate container 86f89d290b56
---> eef1f6ada98a
Step 16/25 : RUN bundle install --full-index
---> Running in 0eaa454e38b3
Fetching source index from https://rails-assets.org/
Fetching source index from https://rubygems.org/
Fetching https://github.com/phatworx/devise_security_extension.git
Fetching source index from https://rails-assets.org/
user_agent_parser-2.6.0 requires ruby version >= 2.4, which is incompatible with
the current version, ruby 2.3.8p459
The command '/bin/sh -c bundle install --full-index' returned a non-zero code: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment