[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread Hudson (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993129#comment-16993129
 ] 

Hudson commented on AVRO-2594:
--

SUCCESS: Integrated in Jenkins build AvroJava #786 (See 
[https://builds.apache.org/job/AvroJava/786/])
AVRO-2594: Use JAVA env when building local docker. (#709) (michael: 
[https://github.com/apache/avro/commit/0ff34ca6771ab7d9ff34844bc4e312df103450fb])
* (edit) share/precommit/buildtest.sh
* (edit) .travis/script.sh
* (edit) share/docker/Dockerfile
* (edit) share/docker/DockerfileLocal
* (edit) build.sh


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993101#comment-16993101
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993098#comment-16993098
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993096#comment-16993096
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993097#comment-16993097
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993099#comment-16993099
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993100#comment-16993100
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993092#comment-16993092
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993091#comment-16993091
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993094#comment-16993094
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993095#comment-16993095
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-12-10 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16993093#comment-16993093
 ] 

ASF subversion and git services commented on AVRO-2594:
---

Commit 0ff34ca6771ab7d9ff34844bc4e312df103450fb in avro's branch 
refs/heads/master from RyanSkraba
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=0ff34ca ]

AVRO-2594: Use JAVA env when building local docker. (#709)

* AVRO-2594: Use JAVA env when building local docker.

* AVRO-2594: Move test command to build.sh.

* Add Dockerfile bash CMD for default.

* AVRO-2594: Add both JDKs to container.

* AVRO-2594: Set JAVA environment in Yetus docker.

* AVRO-2594: Clarify comment.

* Use portable form of bash functions.

* AVRO-2594: Update script documentation.

Make the script sourceable in bash to reuse the function.

* AVRO-2594: Document choice in Dockerfile.

* AVRO-2594: Fix sourcing from bash.

* AVRO-2594: Avoid build errors when java not installed.

* AVRO-2594: Don't change java version if target doesn't use java.


> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Assignee: Ryan Skraba
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2594) Make it easier to replicate JAVA=11 environment locally

2019-11-13 Thread Ryan Skraba (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16973346#comment-16973346
 ] 

Ryan Skraba commented on AVRO-2594:
---

This looks like it might be an easy fix, especially if we consider that forrest 
0.9 doesn't work out of the box post-JDK 8 (which is the last release with Java 
1.5 source/target compatibility flags).

I propose modifying the build of the user Dockerfile to take into account the 
JAVA environment variable, similar to travis.  If unset (or equal to 8), the 
behaviour is unchanged, but if its greater than 8, it builds with the 
{{openjdk:$JAVA}} version and omits forrest.

What do you think?

{code}
# Generate avro-build-rskraba:latest based on openjdk:8 with forrest
./build.sh docker
# Generate avro-build-rskraba:latest based on openjdk:11 without forrest
JAVA=11 ./build.sh docker
{code}

> Make it easier to replicate JAVA=11 environment locally
> ---
>
> Key: AVRO-2594
> URL: https://issues.apache.org/jira/browse/AVRO-2594
> Project: Apache Avro
>  Issue Type: Wish
>  Components: build
>Reporter: Michael A. Smith
>Priority: Minor
>
> ./build.sh docker adds some stuff to share/docker/Dockerfile so you can run 
> it locally;
>  
> When TravisCI runs the JAVA=11 environment, .travis/script.sh modifies the 
> Dockerfile to be openjdk:11 instead of openjdk:8, but if I locally modify 
> Dockerfile to be openjdk:11, then ./build.sh docker fails trying to install 
> forrest
>  
> {noformat}
> Successfully tagged avro-build-ci:latest
> + docker build -t avro-build -f share/docker/DockerfileLocal .
> Sending build context to Docker daemon  86.45MB
> Step 1/5 : FROM avro-build-ci
>  ---> 9d838b1234ee
> Step 2/5 : RUN curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh
>  ---> Running in 9be9f649ce33
> Using classpath: 
> ../lib/endorsed/jakarta-bcel-20040329.jar:../lib/endorsed/jakarta-regexp-1.5.jar:../lib/endorsed/xalan-2.7.1.jar:../lib/endorsed/xercesImpl-2.9.1.jar:../lib/endorsed/xml-apis-1.3.04.jar
> Buildfile: build.xmlinit:  
> --  Using 
> Apache Ant version 1.7.1 compiled on September 26 2008
>   Build file /usr/local/apache-forrest/main/build.xml
>   Use 'build.[sh|bat] -projecthelp' to see other options.
>   Build system home /usr/local/apache-forrest/tools/ant
>   Build number 0
>   Project Name Forrest build file
>   Java Version 1.6  
>   Timestamp 201910130035
>   This is: apache-forrest 0.9  
> --
> compile:
> Created dir: /usr/local/apache-forrest/build/classes
> Compiling 33 source files to /usr/local/apache-forrest/build/classes
> error: Source option 5 is no longer supported. Use 6 or later.
> error: Target option 1.5 is no longer supported. Use 1.6 or later.BUILD FAILED
> /usr/local/apache-forrest/main/build.xml:522: Compile failed; see the 
> compiler error output for details.Total time: 0 seconds
> The command '/bin/bash -o pipefail -c curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-sources.tar.gz;
>  | tar -xzf - -C /usr/local/ && curl -L -s 
> "https://www.apache.org/dyn/closer.lua?action=download=/forrest/apache-forrest-0.9-dependencies.tar.gz;
>  | tar -xzf - -C /usr/local/ && mv /usr/local/apache-forrest-0.9 
> /usr/local/apache-forrest && cd /usr/local/apache-forrest/main && 
> ./build.sh' returned a non-zero code: 1{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)