| # 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 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 ubuntu |
| LABEL maintainer Apache Geode <dev@geode.apache.org> |
| |
| RUN apt-get update && \ |
| apt-get install -y build-essential doxygen git graphviz openjdk-8-jdk wget zlib1g-dev && \ |
| rm -rf /var/lib/apt/lists/* |
| |
| ENV GEODE_VERSION 1.4.0 |
| RUN wget "https://www.apache.org/dyn/closer.cgi?action=download&filename=geode/${GEODE_VERSION}/apache-geode-${GEODE_VERSION}.tgz" -O - | \ |
| tar xzf - |
| |
| ENV RAT_VERSION 0.12 |
| RUN wget "https://www.apache.org/dyn/closer.cgi?action=download&filename=creadur/apache-rat-${RAT_VERSION}/apache-rat-${RAT_VERSION}-bin.tar.bz2" -O - | \ |
| tar xjf - |
| |
| ENV CMAKE_VERSION 3.10.3 |
| RUN wget "https://cmake.org/files/PreviousRelease/cmake-${CMAKE_VERSION}-Linux-x86_64.sh" -O /tmp/cmake && \ |
| bash /tmp/cmake --skip-license --prefix=/usr/local && \ |
| rm /tmp/cmake |
| |
| ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 |
| ENV GEODE_HOME /apache-geode-${GEODE_VERSION} |
| ENV RAT_HOME /apache-rat-${RAT_VERSION} |
| ENV PATH $PATH:$GEODE_HOME/bin |
| |
| CMD ["bash"] |