Skip to content

Instantly share code, notes, and snippets.

@endenwer
Created May 22, 2019 08:07
Show Gist options
  • Select an option

  • Save endenwer/4bda620962a9a6e880425fe5895f9340 to your computer and use it in GitHub Desktop.

Select an option

Save endenwer/4bda620962a9a6e880425fe5895f9340 to your computer and use it in GitHub Desktop.
Building invested_bosphorus_consume
Step 1/17 : FROM ruby:2.3.8-slim-stretch
---> 6c82e230dca6
Step 2/17 : ENV CONSUL_TMPL_VERSION=0.19.5
---> Using cache
---> 8354d3c1b2bf
Step 3/17 : ENV RACK_ENV=production
---> Using cache
---> babd46f7c116
Step 4/17 : ENV RAILS_ENV=production
---> Using cache
---> 613fe95de596
Step 5/17 : ENV APP_HOME=/app
---> Using cache
---> 2788f006b458
Step 6/17 : ENV PORT=80
---> Using cache
---> 93e5b963e5be
Step 7/17 : RUN mkdir -p $APP_HOME
---> Using cache
---> 8df79b3f7c02
Step 8/17 : WORKDIR $APP_HOME
---> Using cache
---> 85d9e8e3756c
Step 9/17 : RUN apt-get update && apt-get install -y curl tar libpq-dev cron tzdata git bash nodejs wkhtmltopdf libffi-dev libxml2-dev libxslt1-dev ttf-dejavu fonts-droid-fallback ttf-freefont ttf-liberation && rm -rf /var/lib/apt/lists/* && mkdir -p /usr/lib/jvm && curl -sL "https://download.java.net/openjdk/jdk7u75/ri/openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz" | tar -C /usr/lib/jvm -xvz --strip 1 && update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/bin/javac" 1 && update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/bin/java" 1 && update-alternatives --set "javac" "/usr/lib/jvm/bin/javac" && update-alternatives --set "java" "/usr/lib/jvm/bin/java" && echo "export JAVA_HOME=/usr/lib/jvm" >> /etc/profile && echo "export PATH=$PATH:$JAVA_HOME/bin" >> /etc/profile && rm /etc/init.d/cron && curl -sL "https://releases.hashicorp.com/consul-template/${CONSUL_TMPL_VERSION}/consul-template_${CONSUL_TMPL_VERSION}_linux_amd64.tgz" | tar -C /usr/bin -xvz && chmod a+x /usr/bin/consul-template && gem install bundler
---> Using cache
---> 2a7555ab149a
Step 10/17 : COPY Gemfile* $APP_HOME/
---> a49a05583be0
Step 11/17 : COPY vendor/gems $APP_HOME/vendor/gems
---> 2c2ad1ac7de1
Step 12/17 : RUN apt-get update && apt-get install -y g++ make && bundle install --without development test --retry=10 --jobs=10 --quiet && apt-get remove -y g++ make && rm -rf /var/lib/apt/lists/*
---> Running in d6472a8affb0
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB]
Ign:3 http://deb.debian.org/debian stretch InRelease
Get:4 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.2 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Fetched 7907 kB in 2s (2774 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
binutils cpp cpp-6 g++-6 gcc gcc-6 libcc1-0 libisl15 libmpc3 libmpfr4
Suggested packages:
binutils-doc cpp-doc gcc-6-locales g++-multilib g++-6-multilib gcc-6-doc
libstdc++6-6-dbg gcc-multilib manpages-dev autoconf automake libtool flex
bison gdb gcc-doc gcc-6-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg make-doc
The following NEW packages will be installed:
binutils cpp cpp-6 g++ g++-6 gcc gcc-6 libcc1-0 libisl15 libmpc3 libmpfr4
make
0 upgraded, 12 newly installed, 0 to remove and 4 not upgraded.
Need to get 25.9 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 binutils amd64 2.28-5 [3770 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 libisl15 amd64 0.18-1 [564 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libmpc3 amd64 1.0.3-1+b2 [39.9 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 cpp-6 amd64 6.3.0-18+deb9u1 [6584 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 cpp amd64 4:6.3.0-4 [18.7 kB]
Get:7 http://deb.debian.org/debian stretch/main amd64 libcc1-0 amd64 6.3.0-18+deb9u1 [30.6 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 gcc-6 amd64 6.3.0-18+deb9u1 [6900 kB]
Get:9 http://deb.debian.org/debian stretch/main amd64 gcc amd64 4:6.3.0-4 [5196 B]
Get:10 http://deb.debian.org/debian stretch/main amd64 g++-6 amd64 6.3.0-18+deb9u1 [7094 kB]
Get:11 http://deb.debian.org/debian stretch/main amd64 g++ amd64 4:6.3.0-4 [1546 B]
Get:12 http://deb.debian.org/debian stretch/main amd64 make amd64 4.1-9.1 [302 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 25.9 MB in 0s (52.9 MB/s)
Selecting previously unselected package binutils.
(Reading database ... 26516 files and directories currently installed.)
Preparing to unpack .../00-binutils_2.28-5_amd64.deb ...
Unpacking binutils (2.28-5) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../01-libisl15_0.18-1_amd64.deb ...
Unpacking libisl15:amd64 (0.18-1) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../02-libmpfr4_3.1.5-1_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.5-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../03-libmpc3_1.0.3-1+b2_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1+b2) ...
Selecting previously unselected package cpp-6.
Preparing to unpack .../04-cpp-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking cpp-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package cpp.
Preparing to unpack .../05-cpp_4%3a6.3.0-4_amd64.deb ...
Unpacking cpp (4:6.3.0-4) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../06-libcc1-0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libcc1-0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc-6.
Preparing to unpack .../07-gcc-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking gcc-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc.
Preparing to unpack .../08-gcc_4%3a6.3.0-4_amd64.deb ...
Unpacking gcc (4:6.3.0-4) ...
Selecting previously unselected package g++-6.
Preparing to unpack .../09-g++-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking g++-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package g++.
Preparing to unpack .../10-g++_4%3a6.3.0-4_amd64.deb ...
Unpacking g++ (4:6.3.0-4) ...
Selecting previously unselected package make.
Preparing to unpack .../11-make_4.1-9.1_amd64.deb ...
Unpacking make (4.1-9.1) ...
Setting up libcc1-0:amd64 (6.3.0-18+deb9u1) ...
Setting up make (4.1-9.1) ...
Setting up libisl15:amd64 (0.18-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libmpfr4:amd64 (3.1.5-1) ...
Setting up libmpc3:amd64 (1.0.3-1+b2) ...
Setting up binutils (2.28-5) ...
Setting up cpp-6 (6.3.0-18+deb9u1) ...
Setting up cpp (4:6.3.0-4) ...
Setting up gcc-6 (6.3.0-18+deb9u1) ...
Setting up g++-6 (6.3.0-18+deb9u1) ...
Setting up gcc (4:6.3.0-4) ...
Setting up g++ (4:6.3.0-4) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Processing triggers for libc-bin (2.24-11+deb9u4) ...
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2018-12-01.
Gem::Specification#has_rdoc= called from /usr/local/bundle/bundler/gems/axlsx-776037c0fc79/axlsx.gemspec:12.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/nokogiri-1.10.1/ext/nokogiri
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-fd6ctv.rb extconf.rb
extconf failedCannot allocate memory - /usr/local/bin/ruby
Gem files will remain installed in /usr/local/bundle/gems/nokogiri-1.10.1 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/nokogiri-1.10.1/gem_make.out
An error occurred while installing nokogiri (1.10.1), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.10.1'` succeeds before bundling.
In Gemfile:
kaminari-bootstrap was resolved to 3.0.1, which depends on
rails was resolved to 4.2.11, which depends on
actionmailer was resolved to 4.2.11, which depends on
actionpack was resolved to 4.2.11, which depends on
actionview was resolved to 4.2.11, which depends on
rails-dom-testing was resolved to 1.0.9, which depends on
nokogiri
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/ffi-1.10.0/ext/ffi_c
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-1vpfpkr.rb extconf.rb
extconf failedCannot allocate memory - /usr/local/bin/ruby
Gem files will remain installed in /usr/local/bundle/gems/ffi-1.10.0 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/ffi-1.10.0/gem_make.out
An error occurred while installing ffi (1.10.0), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.10.0'` succeeds before bundling.
In Gemfile:
authlogic was resolved to 4.4.2, which depends on
scrypt was resolved to 3.0.6, which depends on
ffi-compiler was resolved to 1.0.1, which depends on
ffi
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/json-1.8.6/ext/json/ext/parser
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-1ntbqh4.rb extconf.rb
extconf failedCannot allocate memory - /usr/local/bin/ruby
Gem files will remain installed in /usr/local/bundle/gems/json-1.8.6 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/json-1.8.6/gem_make.out
An error occurred while installing json (1.8.6), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.6'` succeeds before bundling.
In Gemfile:
bootstrap-sass was resolved to 3.3.6, which depends on
autoprefixer-rails was resolved to 6.3.2, which depends on
json
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/unf_ext-0.0.7.2/ext/unf_ext
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-3e4u8h.rb extconf.rb
checking for main() in -lstdc++... yes
creating Makefile
current directory: /usr/local/bundle/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR=" clean
current directory: /usr/local/bundle/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR="
compiling unf.cc
cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid
for C/ObjC but not for C++
cc1plus: warning: command line option '-Wimplicit-function-declaration' is valid
for C/ObjC but not for C++
linking shared-object unf_ext.so
current directory: /usr/local/bundle/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR=" install
make install failedCannot allocate memory - make "DESTDIR=" install
Gem files will remain installed in /usr/local/bundle/gems/unf_ext-0.0.7.2 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/unf_ext-0.0.7.2/gem_make.out
An error occurred while installing unf_ext (0.0.7.2), and Bundler cannot
continue.
Make sure that `gem install unf_ext -v '0.0.7.2'` succeeds before bundling.
In Gemfile:
http was resolved to 2.0.3, which depends on
http-cookie was resolved to 1.0.2, which depends on
domain_name was resolved to 0.5.20160615, which depends on
unf was resolved to 0.1.4, which depends on
unf_ext
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/usr/local/bundle/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-sy1q1h.rb extconf.rb
extconf failedCannot allocate memory - /usr/local/bin/ruby
Gem files will remain installed in /usr/local/bundle/gems/http_parser.rb-0.6.0
for inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/http_parser.rb-0.6.0/gem_make.out
An error occurred while installing http_parser.rb (0.6.0), and Bundler cannot
continue.
Make sure that `gem install http_parser.rb -v '0.6.0'` succeeds before bundling.
In Gemfile:
http was resolved to 2.0.3, which depends on
http_parser.rb
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/pg-0.18.4/ext
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-1iw5n3k.rb extconf.rb
extconf failedCannot allocate memory - /usr/local/bin/ruby
Gem files will remain installed in /usr/local/bundle/gems/pg-0.18.4 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/pg-0.18.4/gem_make.out
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.
In Gemfile:
pg
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/puma-3.7.0/ext/puma_http11
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r
./siteconf20190522-324-123d3lv.rb extconf.rb
extconf failedCannot allocate memory - /usr/local/bin/ruby
Gem files will remain installed in /usr/local/bundle/gems/puma-3.7.0 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.3.0/puma-3.7.0/gem_make.out
An error occurred while installing puma (3.7.0), and Bundler cannot continue.
Make sure that `gem install puma -v '3.7.0'` succeeds before bundling.
In Gemfile:
puma_worker_killer was resolved to 0.1.0, which depends on
puma
ERROR: Service 'invested_bosphorus_consume' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y g++ make && bundle install --without development test --retry=10 --jobs=10 --quiet && apt-get remove -y g++ make && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment