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

ASF GitHub Bot commented on FLINK-5635:
---------------------------------------

Github user ex00 commented on the issue:

    https://github.com/apache/flink/pull/3205
  
    @jgrier thanks for your reply!
    I tried to build flink image from your PR and i got next error:
    
    >tar: invalid magic
    tar: short read 
    The command '/bin/sh -c set -x &&   mkdir -p $FLINK_INSTALL_PATH &&   apk 
--update add --virtual build-dependencies curl &&
      curl -s $(curl -s 
https://www.apache.org/dyn/closer.cgi\?preferred\=true)flink/flink-${FLINK_VERSION}/flink-${FLINK_VERSIO
    N}-bin-hadoop${HADOOP_VERSION}-scala_${SCALA_VERSION}.tgz |   tar xvz -C 
$FLINK_INSTALL_PATH &&   ln -s $FLINK_INSTALL_PATH/
    flink-$FLINK_VERSION $FLINK_HOME &&   addgroup -S flink && adduser -D -S -H 
-G flink -h $FLINK_HOME flink &&   chown -R flin
    k:flink $FLINK_INSTALL_PATH/flink-$FLINK_VERSION &&   chown -h flink:flink 
$FLINK_HOME &&   sed -i -e "s/echo \$mypid >> \$p
    id/echo \$mypid >> \$pid \&\& wait/g" $FLINK_HOME/bin/flink-daemon.sh &&   
apk del build-dependencies &&   rm -rf /var/cache
    /apk/*' returned a non-zero code: 1
    
    full error 
[here](https://gist.github.com/ex00/5246c1df60e51c3a3581eaa6bc683176)
    My env:
    ```
    $ docker version
    Client:
     Version:      1.11.1
     API version:  1.23
     Go version:   go1.5.4
     Git commit:   5604cbe
     Built:        Tue Apr 26 23:44:17 2016
     OS/Arch:      windows/amd64
    
    Server:
     Version:      1.11.2
     API version:  1.23
     Go version:   go1.5.4
     Git commit:   b9f10c9
     Built:        Wed Jun  1 21:20:08 2016
     OS/Arch:      linux/amd64
    ```
    Did you have look like error?


> Improve Docker tooling to make it easier to build images and launch Flink via 
> Docker tools
> ------------------------------------------------------------------------------------------
>
>                 Key: FLINK-5635
>                 URL: https://issues.apache.org/jira/browse/FLINK-5635
>             Project: Flink
>          Issue Type: Improvement
>          Components: Docker
>    Affects Versions: 1.2.0
>            Reporter: Jamie Grier
>            Assignee: Jamie Grier
>
> This is a bit of a catch-all ticket for general improvements to the Flink on 
> Docker experience.
> Things to improve:
>   - Make it possible to build a Docker image from your own flink-dist 
> directory as well as official releases.
>   - Make it possible to override the image name so a user can more easily 
> publish these images to their Docker repository
>   - Provide scripts that show how to properly run on Docker Swarm or similar 
> environments with overlay networking (Kubernetes) without using host 
> networking.
>   - Log to stdout rather than to files.
>   - Work properly with docker-compose for local deployment as well as 
> production deployments (Swarm/k8s)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to