-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Avro 1887 #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Avro 1887 #196
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,12 +17,10 @@ | |
| # Dockerfile for installing the necessary dependencies for building Avro. | ||
| # See BUILD.txt. | ||
|
|
||
| FROM java:7-jdk | ||
| FROM docker.io/surajacharya/avro-build-test | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. presumably this will be an image from the project before we start using this? |
||
|
|
||
| WORKDIR /root | ||
|
|
||
| # Add the repository for node.js 4.x | ||
| RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - | ||
|
|
||
| # Install dependencies from packages | ||
| RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
|
|
@@ -36,26 +34,3 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ | |
| python python-setuptools python3-setuptools \ | ||
| ruby ruby-dev rake \ | ||
| libsnappy1 libsnappy-dev | ||
|
|
||
| # Install Forrest | ||
| RUN mkdir -p /usr/local/apache-forrest | ||
| RUN curl -O http://archive.apache.org/dist/forrest/0.8/apache-forrest-0.8.tar.gz | ||
| RUN tar xzf *forrest* --strip-components 1 -C /usr/local/apache-forrest | ||
| RUN echo 'forrest.home=/usr/local/apache-forrest' > build.properties | ||
| RUN chmod -R 0777 /usr/local/apache-forrest/build /usr/local/apache-forrest/main \ | ||
| /usr/local/apache-forrest/plugins | ||
| ENV FORREST_HOME /usr/local/apache-forrest | ||
|
|
||
| # Install Perl modules | ||
| RUN curl -L http://cpanmin.us | perl - --self-upgrade # non-interactive cpan | ||
| RUN cpanm install Module::Install Module::Install::ReadmeFromPod \ | ||
| Module::Install::Repository \ | ||
| Math::BigInt JSON::XS Try::Tiny Regexp::Common Encode \ | ||
| IO::String Object::Tiny Compress::Zlib Test::More \ | ||
| Test::Exception Test::Pod | ||
|
|
||
| # Install Ruby modules | ||
| RUN gem install echoe yajl-ruby multi_json snappy | ||
|
|
||
| # Install global Node modules | ||
| RUN npm install -g grunt-cli | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| #!/usr/bin/env 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 WARRCMAKEIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| add_build_tool build | ||
| add_test_type buildtest | ||
|
|
||
| BUILDFILE="build.sh" | ||
| BUILD="./build.sh" | ||
|
|
||
|
|
||
| ## @description get the name of the build filename | ||
| ## @audience private | ||
| ## @stability evolving | ||
| ## @replaceable no | ||
| ## @return make build file | ||
| function build_buildfile | ||
| { | ||
| echo "${BUILDFILE}" | ||
| } | ||
|
|
||
| ## @description get the name of the build binary | ||
| ## @audience private | ||
| ## @stability evolving | ||
| ## @replaceable no | ||
| ## @return filename | ||
| ## @param testname | ||
| function build_executor | ||
| { | ||
| echo "${BUILD}" | ||
| } | ||
|
|
||
| ## @description build worker | ||
| ## @audience private | ||
| ## @stability evolving | ||
| ## @replaceable no | ||
| ## @return status | ||
| ## @param repostatus | ||
| ## @param test | ||
| function build_modules_worker | ||
| { | ||
| case "$2" in | ||
| 'distclean') | ||
| modules_workers "dist clean" | ||
| ;; | ||
| *) | ||
| echo "${BUILD}" | ||
| modules_workers $2 | ||
| ;; | ||
| esac | ||
| } | ||
|
|
||
| ### @description build module queuer | ||
| ### @audience private | ||
| ### @stability evolving | ||
| ### @replaceable no | ||
| function build_builtin_personality_modules | ||
| { | ||
| declare repostatus=$1 | ||
| declare testtype=$2 | ||
|
|
||
| declare module | ||
|
|
||
| yetus_debug "Using builtin personality_modules" | ||
| yetus_debug "Personality: ${repostatus} ${testtype}" | ||
|
|
||
| clear_personality_queue | ||
|
|
||
| for module in "${CHANGED_MODULES[@]}"; do | ||
| personality_enqueue_module "${module}" | ||
| done | ||
| } | ||
|
|
||
| ### @description build test determiner | ||
| ### @audience private | ||
| ### @stability evolving | ||
| ### @replaceable no | ||
| ### @param filename | ||
| function build_builtin_personality_file_tests | ||
| { | ||
| declare filename=$1 | ||
| yetus_debug "Using builtin build personality_file_tests" | ||
| add_test buildtest | ||
| } | ||
|
|
||
| function buildtest_filefilter | ||
| { | ||
| local filename=$1 | ||
|
|
||
| if [[ ${BUILDTOOL} = build ]]; then | ||
| yetus_debug "run the tests ${filename}" | ||
| add_test buildtest | ||
| fi | ||
| } | ||
|
|
||
| function buildtest_postcompile | ||
| { | ||
| declare repostatus=$1 | ||
| declare result=0 | ||
| if [[ ${BUILDTOOL} != build ]]; then | ||
| return 0 | ||
| fi | ||
| # | ||
| if [[ "${repostatus}" = branch ]]; then | ||
| big_console_header "build test : ${PATCH_BRANCH}" | ||
| else | ||
| big_console_header "build test : ${BUILDMODE}" | ||
| fi | ||
|
|
||
| modules_workers "test" | ||
| result=$? | ||
| modules_messages "${repostatus}" buildtest true | ||
| if [[ ${result} != 0 ]]; then | ||
| return 1 | ||
| fi | ||
| return 0 | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
presumably this will be an image from the project before we start using this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Once there is a general consensus that the base image being used is good enough I intend to move it to a more central location (apache docker hub) and point it to that.