-
Notifications
You must be signed in to change notification settings - Fork 21
Add docker image for MapR Client #20
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
base: mapr-52
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Copyright 2017 Teradata | ||
| # | ||
| # Licensed 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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| FROM teradatalabs/centos6-java8-oracle | ||
| MAINTAINER Teradata Docker Team <docker@teradata.com> | ||
|
|
||
| ADD files/maprtech.repo /etc/yum.repos.d/maprtech.repo | ||
| RUN yum update -y \ | ||
| && yum install -y mapr-client.x86_64 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # mapr52-base | ||
|
||
|
|
||
|
|
||
| Docker image with MapR Client installed. | ||
|
|
||
| ## Oracle license | ||
|
|
||
| By using this image, you accept the Oracle Binary Code License Agreement for Java SE available here: | ||
| [http://www.oracle.com/technetwork/java/javase/terms/license/index.html](http://www.oracle.com/technetwork/java/javase/terms/license/index.html) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [maprtech] | ||
| name=MapR Technologies | ||
| baseurl=http://package.mapr.com/releases/v5.2.0/redhat/ | ||
| enabled=1 | ||
| gpgcheck=0 | ||
| protect=1 |
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.
add entrypoint and command so that the image can be used like a standalone program
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#entrypoint
Uh oh!
There was an error while loading. Please reload this page.
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.
I don't think there's a default set of command that needs to be executed for this container.
The first step is to configure the client - https://github.com/Teradata/presto/pull/528/files#diff-d5fa118c169436bb50bbd774dc84d440R51
And this needs to be done only once, not every time you log into the container.
I can have CMD as bash, but it currently works without that.
mapr-client $docker run -it mapr-client[root@aec1a9c03a4c /]#So not sure if we need ENTRYPOINT/CMD
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.
Nevermind :) our slack conversation and your comment above have showed me that there's no point in having the entrypoint/cmd