Skip to content

Commit

Permalink
update with adding Gradle 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr.Snowbird authored and Dr.Snowbird committed Aug 24, 2018
1 parent 727eeef commit 45d47fb
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@
# USER_ID=1000
# GROUP_ID=1000

###################################
#### Java JDK #####
###################################
JAVA_MAJOR_VERSION=8
JAVA_UPDATE_VERSION=181
JAVA_BUILD_NUMBER=13
JAVA_DOWNLOAD_TOKEN=96a7b8442fe848ef90c96a2fad6ed6d1
## http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz

###################################
#### Rider configuration for run.sh ####
###################################
# - Use "#VOLUMES" and "#PORTS" to indicate that the variables for run.sh"
# - To ignore line, use "##" (double) in the beginning, e.g. "##VOLUMES" and "##PORTS"
# - To indicate that the variables for run.sh", use only one "#", e.g. "#VOLUMES" and "#PORTS"
#VOLUMES_LIST="data workspace"
##PORTS_LIST="18080:8000 17200:7200"
##PORTS_LIST="123:123/udp"

###################################
#### ---- Install Gradle ----
###################################
GRADLE_INSTALL_BASE=/opt/gradle
GRADLE_VERSION=4.9
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.tmp
data/
.fuse*
*.zip*
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ MAINTAINER [email protected]

ENV DEBIAN_FRONTEND noninteractive

########################################
##### update ubuntu and Install Python 3
########################################
RUN apt-get update \
&& apt-get install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev \
&& apt-get install -y curl net-tools build-essential software-properties-common libsqlite3-dev sqlite3 bzip2 libbz2-dev git wget unzip vim python3-pip python3-setuptools python3-dev python3-numpy python3-scipy python3-pandas python3-matplotlib \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

###################################
#### Install Java 8
###################################
#### ---------------------------------------------------------------
#### ---- Change below when upgrading version ----
#### ---------------------------------------------------------------
Expand Down Expand Up @@ -43,7 +47,9 @@ RUN curl -sL --retry 3 --insecure \
&& ln -s ${JAVA_HOME} $INSTALL_DIR/java \
&& rm -rf ${JAVA_HOME}/man

###################################
#### Install Maven 3
###################################
ARG MAVEN_VERSION=${MAVEN_VERSION:-3.5.4}
ENV MAVEN_VERSION=${MAVEN_VERSION}
ENV MAVEN_HOME=/usr/apache-maven-${MAVEN_VERSION}
Expand Down Expand Up @@ -73,11 +79,35 @@ RUN echo "JAVA_HOME=${JAVA_HOME}" && \
python3 -V && \
pip3 --version


###################################
#### ---- Install Gradle ----
###################################
ARG GRADLE_INSTALL_BASE=${GRADLE_INSTALL_BASE:-/opt/gradle}
ARG GRADLE_VERSION=${GRADLE_VERSION:-4.9}

ARG GRADLE_HOME=${GRADLE_INSTALL_BASE}/gradle-${GRADLE_VERSION}
ENV GRADLE_HOME=${GRADLE_HOME}
ARG GRADLE_PACKAGE=gradle-${GRADLE_VERSION}-bin.zip
ARG GRADLE_PACKAGE_URL=https://services.gradle.org/distributions/${GRADLE_PACKAGE}
# https://services.gradle.org/distributions/gradle-4.9-bin.zip
RUN \
mkdir -p ${GRADLE_INSTALL_BASE} && \
cd ${GRADLE_INSTALL_BASE} && \
wget -c ${GRADLE_PACKAGE_URL} && \
unzip -d ${GRADLE_INSTALL_BASE} ${GRADLE_PACKAGE} && \
ls -al ${GRADLE_HOME} && \
ln -s ${GRADLE_HOME}/bin/gradle /usr/bin/gradle && \
${GRADLE_HOME}/bin/gradle -v

###################################
#### define working directory.
###################################
RUN mkdir -p /data

COPY ./printVersions.sh ./


VOLUME "/data"

WORKDIR /data
Expand Down
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Java 8 (1.8.0_181) JDK + Maven 3.5 + Python 3.5 + PIP3 8.1.1
# Java 8 (1.8.0_181) JDK + Maven 3.5 + Python 3.5 + PIP3 8.1.1 + Gradle 4.9
[![](https://images.microbadger.com/badges/image/openkbs/jre-mvn-py3.svg)](https://microbadger.com/images/openkbs/jre-mvn-py3 "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/openkbs/jre-mvn-py3.svg)](https://microbadger.com/images/openkbs/jre-mvn-py3 "Get your own version badge on microbadger.com")

# License Agreement
Expand All @@ -11,6 +11,7 @@ This image contains [Oracle JDK 8](http://www.oracle.com/technetwork/java/javase
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
* Apache Maven 3.5.3
* Python 3.5.2
* Gradle 4.9
* Other tools: git wget unzip vim python python-setuptools python-dev python-numpy

# Default Run (test) - Just entering Container
Expand Down Expand Up @@ -143,7 +144,7 @@ For example, try the following Docker-based IDEs:

# Releases information
```
root@55c17eb4b4be:/# ./printVersions.sh
root@17007b83aef8:/# ./printVersions.sh
JAVA_HOME=/usr/jdk1.8.0_181
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Expand All @@ -157,6 +158,21 @@ Python 3.5.2
Python 3.5.2
pip 18.0 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)
pip 18.0 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)
------------------------------------------------------------
Gradle 4.9
------------------------------------------------------------
Build time: 2018-07-16 08:14:03 UTC
Revision: efcf8c1cf533b03c70f394f270f46a174c738efc
Kotlin DSL: 0.18.4
Kotlin: 1.2.41
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_181 (Oracle Corporation 25.181-b13)
OS: Linux 4.15.0-32-generic amd64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
Expand All @@ -172,6 +188,5 @@ SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
```

1 change: 1 addition & 0 deletions printVersions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ python -V
python3 -V
pip --version
pip3 --version
gradle --version
cat /etc/*-release

0 comments on commit 45d47fb

Please sign in to comment.