-
Notifications
You must be signed in to change notification settings - Fork 506
ORC-418. Fix broken docker builds. #328
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
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
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
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
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
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
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 @@ | ||
| logs |
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
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 |
|---|---|---|
|
|
@@ -20,19 +20,36 @@ | |
| FROM debian:8 | ||
| MAINTAINER Owen O'Malley <[email protected]> | ||
|
|
||
| RUN echo "deb http://ftp.debian.org/debian jessie-backports main" \ | ||
| >> /etc/apt/sources.list | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y \ | ||
| autoconf \ | ||
| cmake \ | ||
| gcc \ | ||
| g++ \ | ||
| git \ | ||
| libsasl2-dev \ | ||
| libssl-dev \ | ||
| libtool \ | ||
| make \ | ||
| maven \ | ||
| openjdk-7-jdk | ||
| pkg-config \ | ||
| wget | ||
| RUN apt-get -t jessie-backports install -y openjdk-8-jdk | ||
| RUN update-alternatives --set java \ | ||
| /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java | ||
|
|
||
| WORKDIR /root | ||
| # install a local build of snappy | ||
| RUN wget "https://github.com/google/snappy/archive/1.1.3.tar.gz" \ | ||
| -O snappy.tgz | ||
| RUN tar xzf snappy.tgz | ||
| RUN cd snappy-1.1.3 && \ | ||
| ./autogen.sh && \ | ||
| ./configure && \ | ||
| make install | ||
|
|
||
| CMD git clone https://github.com/apache/orc.git -b master && \ | ||
| mkdir orc/build && \ | ||
|
|
||
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,6 @@ | ||
| centos6 | ||
| centos7 | ||
| debian8 | ||
| ubuntu12 | ||
| ubuntu14 | ||
| ubuntu16 |
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/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 | ||
|
|
@@ -14,26 +15,10 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # ORC compile for Debian 7 | ||
| # | ||
|
|
||
| FROM debian:7 | ||
| MAINTAINER Owen O'Malley <[email protected]> | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y \ | ||
| cmake \ | ||
| gcc \ | ||
| g++ \ | ||
| git \ | ||
| make \ | ||
| maven \ | ||
| openjdk-7-jdk | ||
|
|
||
| WORKDIR /root | ||
|
|
||
| CMD git clone https://github.com/apache/orc.git -b master && \ | ||
| mkdir orc/build && \ | ||
| cd orc/build && \ | ||
| cmake .. && \ | ||
| make package test-out | ||
| start=`date` | ||
| for os in `cat os-list.txt`; do | ||
| echo "Re-initialize $os" | ||
| ( cd $os && docker build --no-cache -t "orc-$os" . ) | ||
| done | ||
| echo "Start: $start" | ||
| echo "End:" `date` | ||
Oops, something went wrong.
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.
Does it make sense to make these version numbers as parameters?
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.
Dockerfiles by design aren't parameterized. They are designed to be concrete steps to build the image. On the plus side, the current linux distros don't need the legacy versions of protobuf or snappy.
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.
So we could use sed or something to do it, but I think it is less confusing to hard code it.