You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by jaoki <gi...@git.apache.org> on 2015/11/17 09:07:35 UTC

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

GitHub user jaoki opened a pull request:

    https://github.com/apache/flink/pull/1363

    [FLINK-3009] Add dockerized jekyll environment

    This is not to fulfill what FLINK-3009 is originally asking,
    but I'm piggybacking to contribute a docker environment with jekyll
    so that users won't have to deal with environment versions.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jaoki/flink dockerized-docgen

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1363.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1363
    
----
commit c15ee035861dab9a1426ebc06fbd75a516bd18ae
Author: jaoki <ja...@apache.org>
Date:   2015-11-17T08:03:47Z

    [FLINK-3009] Add dockerized jekyll environment
    
    This is not to fulfill what FLINK-3009 is originally asking,
    but I'm piggybacking to contribute a docker environment with jekyll
    so that users won't have to deal with environment versions.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by hsaputra <gi...@git.apache.org>.
Github user hsaputra commented on the pull request:

    https://github.com/apache/flink/pull/1363#issuecomment-158245010
  
    LGTM 
    +1
    Will commit end of day if no one beats me


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by StephanEwen <gi...@git.apache.org>.
Github user StephanEwen commented on the pull request:

    https://github.com/apache/flink/pull/1363#issuecomment-157343171
  
    Useful addition, +1 from my side


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by jaoki <gi...@git.apache.org>.
Github user jaoki commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1363#discussion_r45124787
  
    --- Diff: docs/docker/run.sh ---
    @@ -0,0 +1,74 @@
    +#!/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.
    +
    +set -e -x -u
    +
    +SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
    +
    +export IMAGE_NAME="flink/docs"
    +
    +pushd ${SCRIPT_DIR}
    +
    +docker build --rm=true -t ${IMAGE_NAME} .
    +
    +popd
    +
    +if [ "$(uname -s)" == "Linux" ]; then
    +  USER_NAME=${SUDO_USER:=$USER}
    +  USER_ID=$(id -u "${USER_NAME}")
    +  GROUP_ID=$(id -g "${USER_NAME}")
    +else # boot2docker uid and gid
    +  USER_NAME=$USER
    +  USER_ID=1000
    +  GROUP_ID=50
    +fi
    +
    +docker build -t "${IMAGE_NAME}-${USER_NAME}" - <<UserSpecificDocker
    +FROM ${IMAGE_NAME}
    +RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME} && \
    +  useradd -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME}
    +ENV  HOME /home/${USER_NAME}
    +UserSpecificDocker
    +
    +FLINK_DOC_ROOT=${SCRIPT_DIR}/..
    +
    +CMD="
    +echo
    +echo 'Welcome to Flink docs'
    --- End diff --
    
    @hsaputra , thank you for your feedback. Will fix.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/flink/pull/1363


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by hsaputra <gi...@git.apache.org>.
Github user hsaputra commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1363#discussion_r45075237
  
    --- Diff: docs/docker/run.sh ---
    @@ -0,0 +1,74 @@
    +#!/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.
    +
    +set -e -x -u
    +
    +SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
    +
    +export IMAGE_NAME="flink/docs"
    +
    +pushd ${SCRIPT_DIR}
    +
    +docker build --rm=true -t ${IMAGE_NAME} .
    +
    +popd
    +
    +if [ "$(uname -s)" == "Linux" ]; then
    +  USER_NAME=${SUDO_USER:=$USER}
    +  USER_ID=$(id -u "${USER_NAME}")
    +  GROUP_ID=$(id -g "${USER_NAME}")
    +else # boot2docker uid and gid
    +  USER_NAME=$USER
    +  USER_ID=1000
    +  GROUP_ID=50
    +fi
    +
    +docker build -t "${IMAGE_NAME}-${USER_NAME}" - <<UserSpecificDocker
    +FROM ${IMAGE_NAME}
    +RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME} && \
    +  useradd -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME}
    +ENV  HOME /home/${USER_NAME}
    +UserSpecificDocker
    +
    +FLINK_DOC_ROOT=${SCRIPT_DIR}/..
    +
    +CMD="
    +echo
    +echo 'Welcome to Flink docs'
    --- End diff --
    
    Small nit: Apache Flink


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by hsaputra <gi...@git.apache.org>.
Github user hsaputra commented on the pull request:

    https://github.com/apache/flink/pull/1363#issuecomment-157408961
  
    Other than small nit on text, +1
    
    Seems like Travis fails unrelated to this patch


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3009] Add dockerized jekyll environment

Posted by jaoki <gi...@git.apache.org>.
Github user jaoki commented on the pull request:

    https://github.com/apache/flink/pull/1363#issuecomment-158213589
  
    Does anyone want to commit this?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---