Public Repository

Last pushed: 2 years ago
Short Description
Git, Oracle JDK8 and Gradle 2.6 on Raspberry Pi
Full Description

Git, Oracle JDK8 and Gradle 2.6 for Raspberry Pi. jdk-8u60-linux-arm32-vfp-hflt.gz should be downloaded from oracle and put on your-url.

Dockerfile


FROM resin/rpi-raspbian
MAINTAINER Justin Lin <caterpillar@openhome.cc>

# Basic tools
RUN apt-get -qq update && \
    apt-get -qqy install wget && \
    apt-get -qqy install vim && \
    apt-get -qqy install unzip && \
    apt-get -qqy install git

# Java 8
WORKDIR /opt
RUN wget http://your-url/jdk-8u60-linux-arm32-vfp-hflt.gz && \
    tar zxvf jdk-8u60-linux-arm32-vfp-hflt.gz && \
    rm jdk-8u60-linux-arm32-vfp-hflt.gz

ENV JAVA_HOME /opt/jdk1.8.0_60

# Gradle
RUN wget https://downloads.gradle.org/distributions/gradle-2.6-bin.zip && \
    unzip gradle-2.6-bin.zip && \
    rm gradle-2.6-bin.zip

ENV GRADLE_HOME /opt/gradle-2.6

# PATH
ENV PATH $PATH:$JAVA_HOME/bin:$GRADLE_HOME/bin

WORKDIR /

Docker Pull Command
Owner
caterpillar

Comments (0)