Skip to content

Instantly share code, notes, and snippets.

@mikoim
Created May 5, 2017 16:01
Show Gist options
  • Save mikoim/cc40652e31d247f9e2d5bc187b3196e2 to your computer and use it in GitHub Desktop.
Save mikoim/cc40652e31d247f9e2d5bc187b3196e2 to your computer and use it in GitHub Desktop.
docker-compose build web @ feature/replace-ws-with-uws
> docker-compose build web
Building web
Step 1/10 : FROM ruby:2.4.1-alpine
---> 5eadd5d1419a
Step 2/10 : LABEL maintainer "https://github.com/tootsuite/mastodon" description "A GNU Social-compatible microblogging server"
---> Running in ffd1484bb484
---> fb441411b8ea
Removing intermediate container ffd1484bb484
Step 3/10 : ENV RAILS_ENV production NODE_ENV production
---> Running in 43a8bbd89619
---> d728d02f823c
Removing intermediate container 43a8bbd89619
Step 4/10 : EXPOSE 3000 4000
---> Running in fb766e3d2da5
---> 4302ff196aa3
Removing intermediate container fb766e3d2da5
Step 5/10 : WORKDIR /mastodon
---> 826af9f468ac
Removing intermediate container 6872d0d186f9
Step 6/10 : RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && BUILD_DEPS=" postgresql-dev libxml2-dev libxslt-dev python build-base" && apk -U upgrade && apk add $BUILD_DEPS nodejs@edge nodejs-npm@edge git libpq libxml2 libxslt ffmpeg file imagemagick@edge ca-certificates && npm install -g npm@3 && npm install -g yarn && update-ca-certificates && rm -rf /tmp/* /var/cache/apk/*
---> Running in fb948f068702
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
fetch https://nl.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
OK: 21 MiB in 29 packages
(1/94) Installing binutils-libs (2.26-r1)
(2/94) Installing binutils (2.26-r1)
(3/94) Installing gmp (6.1.0-r0)
(4/94) Installing isl (0.14.1-r0)
(5/94) Installing libgomp (5.3.0-r0)
(6/94) Installing libatomic (5.3.0-r0)
(7/94) Installing libgcc (5.3.0-r0)
(8/94) Installing mpfr3 (3.1.2-r0)
(9/94) Installing mpc1 (1.0.3-r0)
(10/94) Installing libstdc++ (5.3.0-r0)
(11/94) Installing gcc (5.3.0-r0)
(12/94) Installing make (4.1-r1)
(13/94) Installing musl-dev (1.1.14-r14)
(14/94) Installing libc-dev (0.7-r0)
(15/94) Installing fortify-headers (0.8-r0)
(16/94) Installing g++ (5.3.0-r0)
(17/94) Installing build-base (0.4-r1)
(18/94) Installing sdl (1.2.15-r7)
(19/94) Installing alsa-lib (1.1.1-r3)
(20/94) Installing libbz2 (1.0.6-r5)
(21/94) Installing nettle (3.2-r0)
(22/94) Installing libtasn1 (4.8-r0)
(23/94) Installing p11-kit (0.23.2-r0)
(24/94) Installing gnutls (3.4.15-r0)
(25/94) Installing lame (3.99.5-r5)
(26/94) Installing opus (1.1.2-r0)
(27/94) Installing librtmp (2.4_git20160909-r0)
(28/94) Installing libogg (1.3.2-r1)
(29/94) Installing libtheora (1.1.1-r10)
(30/94) Installing libintl (0.19.7-r3)
(31/94) Installing libjpeg-turbo (1.4.2-r0)
(32/94) Installing v4l-utils-libs (1.10.0-r0)
(33/94) Installing libxau (1.0.8-r1)
(34/94) Installing libxdmcp (1.1.2-r1)
(35/94) Installing libxcb (1.11.1-r0)
(36/94) Installing libx11 (1.6.4-r0)
(37/94) Installing libpciaccess (0.13.4-r0)
(38/94) Installing libdrm (2.4.68-r0)
(39/94) Installing expat (2.2.0-r0)
(40/94) Installing libxml2 (2.9.4-r2)
(41/94) Installing wayland (1.10.0-r0)
(42/94) Installing mesa-gbm (11.2.2-r0)
(43/94) Installing libxshmfence (1.2-r0)
(44/94) Installing mesa-egl (11.2.2-r0)
(45/94) Installing libxfixes (5.0.3-r0)
(46/94) Installing libxdamage (1.1.4-r0)
(47/94) Installing libxext (1.3.3-r1)
(48/94) Installing libxxf86vm (1.1.4-r0)
(49/94) Installing mesa-glapi (11.2.2-r0)
(50/94) Installing mesa-gl (11.2.2-r0)
(51/94) Installing libva (1.7.0-r0)
(52/94) Installing libvorbis (1.3.5-r1)
(53/94) Installing libvpx (1.5.0-r0)
(54/94) Installing x264-libs (20160515-r0)
(55/94) Installing x265 (1.9-r0)
(56/94) Installing xvidcore (1.3.4-r0)
(57/94) Installing ffmpeg-libs (3.0.7-r0)
(58/94) Installing ffmpeg (3.0.7-r0)
(59/94) Installing libmagic (5.27-r0)
(60/94) Installing file (5.27-r0)
(61/94) Installing libssh2 (1.7.0-r0)
(62/94) Installing libcurl (7.52.1-r2)
(63/94) Installing pcre (8.38-r1)
(64/94) Installing git (2.8.3-r0)
(65/94) Installing libpng (1.6.21-r0)
(66/94) Installing freetype (2.6.3-r0)
(67/94) Installing fontconfig (2.12.1-r0)
(68/94) Installing dbus-libs (1.10.8-r1)
(69/94) Installing avahi-libs (0.6.32-r0)
(70/94) Installing cups-libs (2.1.3-r1)
(71/94) Installing jbig2dec (0.12-r0)
(72/94) Installing lcms2 (2.8-r0)
(73/94) Installing tiff (4.0.7-r2)
(74/94) Installing ghostscript (9.19-r2)
(75/94) Installing libltdl (2.4.6-r0)
(76/94) Installing libwebp@edge (0.6.0-r0)
(77/94) Installing imagemagick@edge (7.0.5.5-r0)
(78/94) Installing db (5.3.28-r0)
(79/94) Installing libsasl (2.1.26-r7)
(80/94) Installing libldap (2.4.44-r1)
(81/94) Installing libpq (9.5.6-r0)
(82/94) Installing libxml2-dev (2.9.4-r2)
(83/94) Installing libgpg-error (1.23-r0)
(84/94) Installing libgcrypt (1.7.0-r1)
(85/94) Installing libxslt (1.1.29-r1)
(86/94) Installing libxslt-dev (1.1.29-r1)
(87/94) Installing http-parser@edge (2.7.1-r1)
(88/94) Installing libuv (1.9.1-r0)
(89/94) Installing nodejs@edge (6.10.1-r0)
(90/94) Installing nodejs-npm@edge (6.10.1-r0)
(91/94) Installing postgresql-libs (9.5.6-r0)
(92/94) Installing postgresql-dev (9.5.6-r0)
(93/94) Installing sqlite-libs (3.13.0-r0)
(94/94) Installing python (2.7.12-r0)
Executing busybox-1.24.2-r13.trigger
Executing fontconfig-2.12.1-r0.trigger
OK: 375 MiB in 123 packages
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/lib
`-- [email protected]
/usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/lib
`-- [email protected]
+-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
`-- [email protected]
+-- [email protected]
| `-- [email protected]
`-- [email protected]
WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
---> 5aea669d73ce
Removing intermediate container fb948f068702
Step 7/10 : COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
---> 9c56a0cd846b
Removing intermediate container 6460ef6b90ff
Step 8/10 : RUN bundle install --deployment --without test development && yarn --ignore-optional --pure-lockfile
---> Running in 9c048f01a933
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Installing rake 11.3.0
Installing concurrent-ruby 1.0.5
Installing i18n 0.8.1
Installing minitest 5.10.1
Installing thread_safe 0.3.6
Installing builder 3.2.3
Installing erubis 2.7.0
Installing mini_portile2 2.1.0
Installing rack 2.0.1
Installing nio4r 2.0.0 with native extensions
Installing websocket-extensions 0.1.2
Installing mime-types-data 3.2016.0521
Installing arel 7.1.4
Installing public_suffix 2.0.5
Installing encryptor 3.0.0
Installing climate_control 0.1.0
Installing aws-sigv4 1.0.0
Installing jmespath 1.3.1
Installing bcrypt 3.1.11 with native extensions
Installing chunky_png 1.3.8
Installing ffi 1.9.18 with native extensions
Installing coffee-script-source 1.12.2
Installing execjs 2.7.0
Installing method_source 0.8.2
Installing thor 0.19.4
Installing colorize 0.8.1
Installing connection_pool 2.2.1
Installing crass 1.0.2
Installing orm_adapter 0.5.0
Installing rotp 2.1.2
Installing unf_ext 0.0.7.4 with native extensions
Installing dotenv 2.2.1
Installing fast_blank 1.0.0 with native extensions
Installing http-form_data 1.0.1
Installing http_parser.rb 0.6.0 with native extensions
Installing temple 0.8.0
Installing tilt 2.0.7
Installing hiredis 0.6.1 with native extensions
Installing htmlentities 4.3.4
Installing http_accept_language 2.1.0
Installing kaminari-core 1.0.1
Installing link_header 0.0.8
Installing mimemagic 0.3.2
Installing multi_json 1.12.1
Installing oj 3.0.5 with native extensions
Using openssl 2.0.3
Installing ox 2.4.13 with native extensions
Installing pg 0.20.0 with native extensions
Installing pkg-config 1.2.0
Installing puma 3.8.2 with native extensions
Installing rack-cors 0.4.1
Installing rack-timeout 0.4.2
Using bundler 1.14.6
Installing rails_serve_static_assets 0.0.5
Installing rails_stdout_logging 0.0.5
Installing redis 3.3.3
Installing ruby-oembed 0.12.0
Installing statsd-instrument 2.1.2
Installing tzinfo 1.2.3
Installing nokogiri 1.7.1 with native extensions
Installing rack-test 0.6.3
Installing warden 1.2.7
Installing rack-attack 5.0.1
Installing rack-protection 1.5.3
Installing sprockets 3.7.1
Installing websocket-driver 0.6.5 with native extensions
Installing mime-types 3.1
Installing addressable 2.5.1
Installing attr_encrypted 3.0.3
Installing cocaine 0.5.8
Installing aws-sdk-core 2.9.14
Installing rqrcode 0.10.1
Installing cld2 1.0.3 with native extensions
Installing coffee-script 2.4.1
Installing uglifier 3.2.0
Installing httplog 0.99.3
Installing unf 0.1.4
Installing hamlit 2.8.1 with native extensions
Installing rails_12factor 0.0.3
Installing redis-store 1.3.0
Installing activesupport 5.0.2
Installing et-orbi 1.0.3
Installing tzinfo-data 1.2017.2
Installing loofah 2.0.3
Installing nokogumbo 1.4.10 with native extensions
Installing sidekiq 5.0.0
Installing mail 2.6.5
Installing av 0.9.0
Installing aws-sdk-resources 2.9.14
Installing domain_name 0.5.20170404
Installing twitter-text 1.14.5
Installing redis-rack 2.0.2
Installing rails-dom-testing 2.0.2
Installing globalid 0.4.0
Installing activemodel 5.0.2
Installing rabl 0.13.1
Installing redis-activesupport 5.0.2
Installing simple-navigation 4.0.5
Installing rufus-scheduler 3.4.0
Installing rails-html-sanitizer 1.0.3
Installing sanitize 4.4.0
Installing sidekiq-unique-jobs 5.0.7
Installing aws-sdk 2.9.14
Installing http-cookie 1.0.3
Installing activejob 5.0.2
Installing activerecord 5.0.2
Installing paperclip 5.1.0
Installing sidekiq-scheduler 2.1.4
Installing actionview 5.0.2
Installing http 2.2.2
Installing kaminari-activerecord 1.0.1
Installing pghero 1.7.0
Installing paperclip-av-transcoder 0.6.4
Installing actionpack 5.0.2
Installing kaminari-actionview 1.0.1
Installing goldfinger 1.2.0
Installing ostatus2 2.0.0
Installing actioncable 5.0.2
Installing actionmailer 5.0.2
Installing railties 5.0.2
Installing sprockets-rails 3.2.0
Installing redis-actionpack 5.0.1
Installing simple_form 3.4.0
Installing kaminari 1.0.1
Installing coffee-rails 4.2.1
Installing responders 2.4.0
Installing doorkeeper 4.2.5
Installing dotenv-rails 2.2.1
Installing hamlit-rails 0.2.0
Installing lograge 0.5.0
Installing rails-i18n 5.0.3
Installing webpacker 1.2
Installing rails 5.0.2
Installing redis-rails 5.0.2
Installing local_time 1.0.3
Installing devise 4.2.1
Installing rails-settings-cached 0.6.5
Installing devise-two-factor 3.0.0
Bundle complete! 78 Gemfile dependencies, 138 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from encryptor:
Please be aware that Encryptor v2.0.0 had a major security bug when using AES-*-GCM algorithms.
By default You will not be able to decrypt data that was previously encrypted using an AES-*-GCM algorithm.
Please see the README and https://github.com/attr-encrypted/encryptor/pull/22 for more information.
Post-install message from attr_encrypted:
WARNING: Several insecure default options and features were deprecated in attr_encrypted v2.0.0.
Additionally, there was a bug in Encryptor v2.0.0 that insecurely encrypted data when using an AES-*-GCM algorithm.
This bug was fixed but introduced breaking changes between v2.x and v3.x.
Please see the README for more information regarding upgrading to attr_encrypted v3.0.0.
Post-install message from paperclip:
##################################################
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
##################################################
Paperclip is now compatible with aws-sdk >= 2.0.0.
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to make a few small
changes:
* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
note that the format of the permissions changed from using an underscore to
using a hyphen. For example, `:public_read` needs to be changed to
`public-read`.
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
yarn install v0.23.4
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The engine "browser" appears to be invalid.
[3/4] Linking dependencies...
warning "[email protected]" has incorrect peer dependency "[email protected]".
warning "[email protected]" has incorrect peer dependency "@kadira/storybook@^1.35.1".
warning "[email protected]" has unmet peer dependency "react-addons-test-utils@^0.14.0 || ^15.0.0-0".
[4/4] Building fresh packages...
info This module is OPTIONAL, you can safely ignore this error
warning Error running install script for optional dependency: "/mastodon/node_modules/node-zopfli: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node-pre-gyp install --fallback-to-build\nDirectory: /mastodon/node_modules/node-zopfli\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | linux | x64\nnode-pre-gyp info check checked for \"/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node\" (not found)\nnode-pre-gyp http GET https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v48-linux-x64.tar.gz\nnode-pre-gyp http 403 https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v48-linux-x64.tar.gz\nnode-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v48-linux-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v48-linux-x64.tar.gz \ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | linux | x64\ngyp info ok \ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | linux | x64\ngyp http GET https://nodejs.org/download/release/v6.10.1/node-v6.10.1-headers.tar.gz\ngyp http 200 https://nodejs.org/download/release/v6.10.1/node-v6.10.1-headers.tar.gz\ngyp http GET https://nodejs.org/download/release/v6.10.1/SHASUMS256.txt\ngyp http 200 https://nodejs.org/download/release/v6.10.1/SHASUMS256.txt\ngyp info spawn /usr/bin/python2\ngyp info spawn args [ '/mastodon/node_modules/node-gyp/gyp/gyp_main.py',\ngyp info spawn args 'binding.gyp',\ngyp info spawn args '-f',\ngyp info spawn args 'make',\ngyp info spawn args '-I',\ngyp info spawn args '/mastodon/node_modules/node-zopfli/build/config.gypi',\ngyp info spawn args '-I',\ngyp info spawn args '/mastodon/node_modules/node-gyp/addon.gypi',\ngyp info spawn args '-I',\ngyp info spawn args '/root/.node-gyp/6.10.1/include/node/common.gypi',\ngyp info spawn args '-Dlibrary=shared_library',\ngyp info spawn args '-Dvisibility=default',\ngyp info spawn args '-Dnode_root_dir=/root/.node-gyp/6.10.1',\ngyp info spawn args '-Dnode_gyp_dir=/mastodon/node_modules/node-gyp',\ngyp info spawn args '-Dnode_lib_file=node.lib',\ngyp info spawn args '-Dmodule_root_dir=/mastodon/node_modules/node-zopfli',\ngyp info spawn args '-Dnode_engine=v8',\ngyp info spawn args '--depth=.',\ngyp info spawn args '--no-parallel',\ngyp info spawn args '--generator-output',\ngyp info spawn args 'build',\ngyp info spawn args '-Goutput_dir=.' ]\ngyp info ok \ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | linux | x64\ngyp info spawn make\ngyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\nmake: Entering directory '/mastodon/node_modules/node-zopfli/build'\n CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o\n CXX(target) Release/obj.target/zopfli/src/png/zopflipng.o\nIn file included from /root/.node-gyp/6.10.1/include/node/node.h:42:0,\n from ../src/png/zopflipng.cc:1:\n/root/.node-gyp/6.10.1/include/node/v8.h:15:0: error: unterminated #ifndef\n #ifndef INCLUDE_V8_H_\n ^\nIn file included from ../src/png/zopflipng.cc:2:0:\n/root/.node-gyp/6.10.1/include/node/v8.h:15:0: error: unterminated #ifndef\n #ifndef INCLUDE_V8_H_\n ^\nIn file included from /root/.node-gyp/6.10.1/include/node/node_buffer.h:5:0,\n from ../../nan/nan.h:48,\n from ../src/png/zopflipng.cc:3:\n/root/.node-gyp/6.10.1/include/node/v8.h:15:0: error: unterminated #ifndef\n #ifndef INCLUDE_V8_H_\n ^\nIn file included from /root/.node-gyp/6.10.1/include/node/node_object_wrap.h:4:0,\n from ../../nan/nan.h:49,\n from ../src/png/zopflipng.cc:3:\n/root/.node-gyp/6.10.1/include/node/v8.h:15:0: error: unterminated #ifndef\n #ifndef INCLUDE_V8_H_\n ^\nIn file included from ../src/png/zopflipng.cc:3:0:\n../../nan/nan.h:128:0: warning: \"TYPE_CHECK\" redefined\n #define TYPE_CHECK(T, S) \\\n ^\nIn file included from /root/.node-gyp/6.10.1/include/node/node.h:42:0,\n from ../src/png/zopflipng.cc:1:\n/root/.node-gyp/6.10.1/include/node/v8.h:186:0: note: this is the location of the previous definition\n #define TYPE_CHECK(T, S) \\\n ^\nIn file included from ../src/png/zopflipng.cc:1:0:\n/root/.node-gyp/6.10.1/include/node/node.h:80:1: error: expected unqualified-id before 'namespace'\n namespace node {\n ^\nIn file included from /usr/include/c++/5.3.0/bits/ostream_insert.h:36:0,\n from /usr/include/c++/5.3.0/string:44,\n from /usr/include/c++/5.3.0/random:40,\n from /usr/include/c++/5.3.0/bits/stl_algo.h:66,\n from /usr/include/c++/5.3.0/algorithm:62,\n from ../../nan/nan.h:50,\n from ../src/png/zopflipng.cc:3:\n/usr/include/c++/5.3.0/bits/cxxabi_forced.h:36:37: error: expected '}' before end of line\n/usr/include/c++/5.3.0/bits/cxxabi_forced.h:36:37: error: expected unqualified-id before end of line\n/usr/include/c++/5.3.0/bits/cxxabi_forced.h:36:37: error: expected '}' before end of line\n/usr/include/c++/5.3.0/bits/cxxabi_forced.h:36:37: error: expected declaration before end of line\nzopfli.target.mk:125: recipe for target 'Release/obj.target/zopfli/src/png/zopflipng.o' failed\nmake: Leaving directory '/mastodon/node_modules/node-zopfli/build'\nmake: *** [Release/obj.target/zopfli/src/png/zopflipng.o] Error 1\ngyp ERR! build error \ngyp ERR! stack Error: `make` failed with exit code: 2\ngyp ERR! stack at ChildProcess.onExit (/mastodon/node_modules/node-gyp/lib/build.js:285:23)\ngyp ERR! stack at emitTwo (events.js:106:13)\ngyp ERR! stack at ChildProcess.emit (events.js:191:7)\ngyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\ngyp ERR! System Linux 4.10.13-200.fc25.x86_64\ngyp ERR! command \"/usr/bin/node\" \"/mastodon/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node\" \"--module_name=zopfli\" \"--module_path=/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64\"\ngyp ERR! cwd /mastodon/node_modules/node-zopfli\ngyp ERR! node -v v6.10.1\ngyp ERR! node-gyp -v v3.6.0\ngyp ERR! not ok \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /mastodon/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node --module_name=zopfli --module_path=/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64' (1)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/mastodon/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\nnode-pre-gyp ERR! stack at emitTwo (events.js:106:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)\nnode-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\nnode-pre-gyp ERR! System Linux 4.10.13-200.fc25.x86_64\nnode-pre-gyp ERR! command \"/usr/bin/node\" \"/mastodon/node_modules/node-zopfli/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\nnode-pre-gyp ERR! cwd /mastodon/node_modules/node-zopfli\nnode-pre-gyp ERR! node -v v6.10.1\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.30\nnode-pre-gyp ERR! not ok \nFailed to execute '/usr/bin/node /mastodon/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node --module_name=zopfli --module_path=/mastodon/node_modules/node-zopfli/lib/binding/node-v48-linux-x64' (1)"
Done in 62.84s.
---> a6cf82b110ea
Removing intermediate container 9c048f01a933
Step 9/10 : COPY . /mastodon
---> 90f0356399a6
Removing intermediate container 9f531834984a
Step 10/10 : VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs
---> Running in 00551e552191
---> a08d3d519675
Removing intermediate container 00551e552191
Successfully built a08d3d519675
@CrabDude
Copy link

@mikoim Did you ever find a solution to this error? Currently seeing it, and have not yet determined the cause...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment