[
https://issues.apache.org/jira/browse/AVRO-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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&filename=/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&filename=/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&filename=/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&filename=/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)