You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/01 20:04:00 UTC

[jira] [Commented] (BEAM-3121) Dockerized jekyll server fails

    [ https://issues.apache.org/jira/browse/BEAM-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234654#comment-16234654 ] 

ASF GitHub Bot commented on BEAM-3121:
--------------------------------------

tgroh closed pull request #339: [BEAM-3121] Remove broken docker script and documentation
URL: https://github.com/apache/beam-site/pull/339
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index 70fe06cb2..a61dc2b5d 100644
--- a/README.md
+++ b/README.md
@@ -58,16 +58,6 @@ Before sending the PR for review, please run:
 
     $ git checkout -- content
 
-### Running using Docker
-
-**Note:** This is an optional method if you don't want to install gems locally and just use a container for development. The helper script is written for UNIX systems but should be fairly easy to modify to get it working on Windows.
-
-Prerequisites: Make sure you have Docker installed on your machine.
-
-For building the site, use the command `./run_with_docker.sh server`. This will start the webserver inside a Docker container and port forward to your local machine at `localhost:4000`. We'll use the official Jekyll image to build the site.
-
-For running the website tests, use `./run_with_docker.sh test`.
-
 ## Additional Information
 
 ### Writing blog posts
diff --git a/run_with_docker.sh b/run_with_docker.sh
deleted file mode 100755
index 59241464a..000000000
--- a/run_with_docker.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-#
-#    Licensed to the Apache Software Foundation (ASF) under one or more
-#    contributor license agreements.  See the NOTICE file distributed with
-#    this work for additional information regarding copyright ownership.
-#    The ASF licenses this file to You under the Apache License, Version 2.0
-#    (the "License"); you may not use this file except in compliance with
-#    the License.  You may obtain a copy of the License at
-#
-#       http://www.apache.org/licenses/LICENSE-2.0
-#
-#    Unless required by applicable law or agreed to in writing, software
-#    distributed under the License is distributed on an "AS IS" BASIS,
-#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#    See the License for the specific language governing permissions and
-#    limitations under the License.
-#
-
-# This script will run Jekyll inside Docker to build the site.
-#
-# Use "./run_with_docker.sh server" to build the site at localhost:4000.
-# Use "./run_with_docker.sh test" to test for any broken links.
-#
-# The script assumes you have docker installed on the machine.
-
-_runner() {
-  docker run --rm -it -v "$PWD":/srv/jekyll -p 4000:4000 \
-    --env="BUNDLE_CACHE=true" \
-    --env="BUNDLE_PATH=/srv/jekyll/vendor/bundle" \
-    jekyll/jekyll \
-    bash -c "bundle config build.nokogiri --use-system-libraries && bundle install && $@"
-}
-
-# If no argument is passed then just print the help
-if [[ $# -ne 1 ]] ; then
-  echo "Method to run was not passed, should be server/test";
-  exit 0;
-fi
-
-case "$1" in
-  server)
-    _runner "bundle exec jekyll server --force_polling --watch -H 0.0.0.0 -P 4000";
-    ;;
-  server_incremental)
-    _runner "bundle exec jekyll server --force_polling --watch -H 0.0.0.0 -P 4000 --incremental";
-    ;;
-  test)
-    _runner "bundle exec rake test";
-    ;;
-  *)
-    echo "Unknown Argument $1 passed to the script";
-    ;;
-esac;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Dockerized jekyll server fails
> ------------------------------
>
>                 Key: BEAM-3121
>                 URL: https://issues.apache.org/jira/browse/BEAM-3121
>             Project: Beam
>          Issue Type: Bug
>          Components: website
>            Reporter: Henning Rohde
>            Assignee: Henning Rohde
>            Priority: Minor
>
> The dockerized jekyll script for building the website fails with the following error:
> $ ./run_with_docker.sh server
> Unable to find image 'jekyll/jekyll:latest' locally
> latest: Pulling from jekyll/jekyll
> b56ae66c2937: Pull complete 
> 337580f4eddd: Pull complete 
> f8edd684e995: Pull complete 
> 536ad31f0662: Pull complete 
> 120aeb540421: Pull complete 
> Digest: sha256:61956fbaf76be2fc23cd4908abbe1bfce6541dcdd9d9b3658b53d80b25a363a4
> Status: Downloaded newer image for jekyll/jekyll:latest
> The following gems are missing
>  * rake (11.3.0)
>  * i18n (0.7.0)
>  * json (1.8.3)
>  * minitest (5.9.1)
>  * thread_safe (0.3.5)
>  * tzinfo (1.2.2)
>  * activesupport (4.2.7.1)
>  * addressable (2.4.0)
>  * colored (1.2)
>  * ffi (1.9.14)
>  * ethon (0.9.1)
>  * mini_portile2 (2.1.0)
>  * nokogiri (1.6.8.1)
>  * parallel (1.9.0)
>  * yell (2.0.6)
>  * html-proofer (3.3.1)
>  * sass (3.4.22)
>  * jekyll-sass-converter (1.4.0)
>  * rb-fsevent (0.9.7)
>  * rb-inotify (0.9.7)
>  * kramdown (1.12.0)
>  * liquid (3.0.6)
>  * pathutil (0.14.0)
>  * rouge (1.11.1)
>  * jekyll (3.2.0)
>  * jekyll-redirect-from (0.11.0)
>  * jekyll_github_sample (0.3.0)
> Install missing gems with `bundle install`
> Fetching gem metadata from https://rubygems.org/.........
> Fetching version metadata from https://rubygems.org/..
> Fetching dependency metadata from https://rubygems.org/.
> Fetching rake 11.3.0
> Installing rake 11.3.0
> Fetching i18n 0.7.0
> Installing i18n 0.7.0
> Fetching json 1.8.3
> Installing json 1.8.3 with native extensions
> Fetching minitest 5.9.1
> Installing minitest 5.9.1
> Fetching thread_safe 0.3.5
> Installing thread_safe 0.3.5
> Fetching addressable 2.4.0
> Installing addressable 2.4.0
> Using bundler 1.15.4
> Fetching colorator 1.1.0
> Installing colorator 1.1.0
> Fetching colored 1.2
> Installing colored 1.2
> Fetching ffi 1.9.14
> Installing ffi 1.9.14 with native extensions
> Fetching forwardable-extended 2.6.0
> Installing forwardable-extended 2.6.0
> Fetching mercenary 0.3.6
> Installing mercenary 0.3.6
> Fetching mini_portile2 2.1.0
> Installing mini_portile2 2.1.0
> Fetching parallel 1.9.0
> Installing parallel 1.9.0
> Fetching yell 2.0.6
> Installing yell 2.0.6
> Fetching sass 3.4.22
> Installing sass 3.4.22
> Fetching rb-fsevent 0.9.7
> Installing rb-fsevent 0.9.7
> Fetching kramdown 1.12.0
> Installing kramdown 1.12.0
> Fetching liquid 3.0.6
> Installing liquid 3.0.6
> Fetching rouge 1.11.1
> Installing rouge 1.11.1
> Fetching safe_yaml 1.0.4
> Installing safe_yaml 1.0.4
> Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
>     current directory: /srv/jekyll/vendor/bundle/gems/json-1.8.3/ext/json/ext/generator
> /usr/local/bin/ruby -r ./siteconf20171030-31-1kumuua.rb extconf.rb
> creating Makefile
> current directory: /srv/jekyll/vendor/bundle/gems/json-1.8.3/ext/json/ext/generator
> make "DESTDIR=" clean
> current directory: /srv/jekyll/vendor/bundle/gems/json-1.8.3/ext/json/ext/generator
> make "DESTDIR="
> compiling generator.c
> generator.c: In function 'generate_json':
> generator.c:861:25: error: 'rb_cFixnum' undeclared (first use in this function)
>      } else if (klass == rb_cFixnum) {
>                          ^~~~~~~~~~
> generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in
> generator.c:863:25: error: 'rb_cBignum' undeclared (first use in this function)
>      } else if (klass == rb_cBignum) {
>                          ^~~~~~~~~~
> generator.c: At top level:
> cc1: warning: unrecognized command line option '-Wno-self-assign'
> cc1: warning: unrecognized command line option '-Wno-constant-logical-operand'
> cc1: warning: unrecognized command line option '-Wno-parentheses-equality'
> make: *** [Makefile:242: generator.o] Error 1
> make failed, exit code 2
> Gem files will remain installed in /srv/jekyll/vendor/bundle/gems/json-1.8.3 for inspection.
> Results logged to /srv/jekyll/vendor/bundle/extensions/x86_64-linux/2.4.0/json-1.8.3/gem_make.out
> An error occurred while installing json (1.8.3), and Bundler cannot continue.
> Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
> In Gemfile:
>   html-proofer was resolved to 3.3.1, which depends on
>     activesupport was resolved to 4.2.7.1, which depends on
>       json



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)