Skip to content

Commit

Permalink
Update Dockerfile to:
Browse files Browse the repository at this point in the history
- use geode binary rather than building one on the fly
- update to version 1.4.0
Updated Readme
  • Loading branch information
Swapnil Bawaskar committed Feb 3, 2018
1 parent 198b9e0 commit 232d16c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 8 additions & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@ FROM centos:7
MAINTAINER Apache Geode Community <[email protected]>

LABEL Vendor="Apache Geode"
LABEL version=1.3.0
LABEL version=1.4.0
ENV GEODE_VERSION 1.4.0

RUN yum install -y wget which tar git java-1.8.0-openjdk-devel \
&& git clone https://github.com/apache/geode.git \
&& cd geode \
&& git checkout rel/v1.3.0 \
&& ./gradlew build -Dskip.tests=true -xjavadoc \
&& ls /geode | grep -v geode-assembly | xargs rm -rf \
&& rm -rf /root/.gradle/ \
&& rm -rf /geode/geode-assembly/build/distributions/ \
RUN yum install -y wget which tar java-1.8.0-openjdk-devel \
&& wget https://dist.apache.org/repos/dist/release/geode/$GEODE_VERSION/apache-geode-$GEODE_VERSION.tgz \
&& tar -xvzf apache-geode-$GEODE_VERSION.tgz \
&& rm -rf apache-geode-$GEODE_VERSION.tgz \
&& cd apache-geode-$GEODE_VERSION \
&& rm -rf /usr/share/locale/* \
&& yum remove -y perl \
&& yum clean all

ENV GEODE_HOME /geode/geode-assembly/build/install/apache-geode
ENV GEODE_HOME /apache-geode-$GEODE_VERSION
ENV PATH $PATH:$GEODE_HOME/bin

# Default ports:
Expand Down
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker build -t apachegeode/geode:latest .
Once it's tagged, push to DockerHub:

```
docker push apachegeode/geode:1.0.0-incubating
docker push apachegeode/geode:{version}
```

* You need to be authenticated in DockerHub and be an administrator of the project. Ask for permissions at *[email protected]*.
Expand All @@ -27,7 +27,7 @@ docker push apachegeode/geode:1.0.0-incubating
1. Execute the following command to run the container and start `gfsh`:

```
docker run -it -p 10334:10334 -p 7575:7575 -p 1099:1099 apachegeode/geode:1.0.0-incubating
docker run -it -p 10334:10334 -p 7575:7575 -p 1099:1099 apachegeode/geode
```

From this point you can pretty much follow [Apache Geode in 5 minutes](https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes) for example:
Expand Down

0 comments on commit 232d16c

Please sign in to comment.