Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions teradatalabs/centos6-java8-oracle-maprclient/Dockerfile
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 \
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member Author

@sanjay990 sanjay990 Mar 29, 2017

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

Copy link
Copy Markdown
Contributor

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

&& yum install -y mapr-client.x86_64
9 changes: 9 additions & 0 deletions teradatalabs/centos6-java8-oracle-maprclient/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# mapr52-base
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

badges

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, the heading should be the image name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, name the image mapr-client



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