├── .travis.yml ├── Makefile ├── Dockerfile ├── LICENSE └── README.md /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | services: 3 | - docker 4 | language: bash 5 | script: 6 | # prepare qemu 7 | - docker run --rm --privileged multiarch/qemu-user-static:register --reset 8 | # build image 9 | - make build 10 | # test image 11 | - make test 12 | - make version 13 | # push image 14 | - > 15 | if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then 16 | docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" 17 | make push 18 | fi 19 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | DOCKER_IMAGE_VERSION=jre-1.8.111 2 | DOCKER_IMAGE_NAME=hypriot/rpi-java 3 | DOCKER_IMAGE_TAGNAME=$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_VERSION) 4 | 5 | default: build 6 | 7 | build: 8 | docker build -t $(DOCKER_IMAGE_TAGNAME) . 9 | docker tag $(DOCKER_IMAGE_TAGNAME) $(DOCKER_IMAGE_NAME):latest 10 | 11 | push: 12 | docker push $(DOCKER_IMAGE_TAGNAME) 13 | docker push $(DOCKER_IMAGE_NAME) 14 | 15 | test: 16 | docker run --rm $(DOCKER_IMAGE_TAGNAME) /bin/echo "Success." 17 | 18 | version: 19 | docker run --rm $(DOCKER_IMAGE_TAGNAME) java -version 20 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Pull base image 2 | FROM resin/rpi-raspbian:jessie 3 | MAINTAINER Dieter Reuter 4 | 5 | # Install OpenJDK 8 runtime without X11 support 6 | RUN echo "deb http://ftp.debian.org/debian jessie-backports main" | sudo tee /etc/apt/sources.list.d/backports.list && \ 7 | apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 8B48AD6246925553 && \ 8 | apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 7638D0442B90D010 && \ 9 | apt-get update && \ 10 | apt-get -t jessie-backports install -y openjdk-8-jre-headless=8u111-b14-2~bpo8+1 --no-install-recommends && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | # Define working directory 14 | WORKDIR /data 15 | 16 | # Define commonly used JAVA_HOME variable 17 | ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-armhf 18 | 19 | # Define default command 20 | CMD ["bash"] 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Hypriot 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DEPRECATED: PLEASE USE OFFICIAL DOCKER IMAGES `openjdk` AS THEY PROVIDE IMAGES FOR ARM 2 | 3 | # rpi-java [![Build Status](https://travis-ci.org/hypriot/rpi-java.svg?branch=master)](https://travis-ci.org/hypriot/rpi-java) 4 | 5 | Raspberry Pi compatible Docker base image with OpenJDK, an open-source implementation of the Java Platform. 6 | 7 | Uses `openjdk-8-jre-headless`. 8 | Run all the commands from within the project root directory. 9 | 10 | ### Build Details 11 | - [Source Project Page](https://github.com/hypriot) 12 | - [Source Repository](https://github.com/hypriot/rpi-java) 13 | - [Dockerfile](https://github.com/hypriot/rpi-java/blob/master/Dockerfile) 14 | - [DockerHub] (https://registry.hub.docker.com/u/hypriot/rpi-java/) 15 | 16 | 17 | #### Build the Docker Image 18 | ```bash 19 | make build 20 | ``` 21 | 22 | #### Run the Docker Image and get the version of installed Java Runtime Environment 23 | ```bash 24 | make version 25 | ``` 26 | 27 | #### Push the Docker Image to the Docker Hub 28 | * First use a `docker login` with username, password and email address 29 | * Second push the Docker Image to the official Docker Hub 30 | 31 | ```bash 32 | make push 33 | ``` 34 | 35 | ## License 36 | 37 | The MIT License (MIT) 38 | 39 | Copyright (c) 2015 Hypriot 40 | 41 | Permission is hereby granted, free of charge, to any person obtaining a copy 42 | of this software and associated documentation files (the "Software"), to deal 43 | in the Software without restriction, including without limitation the rights 44 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 45 | copies of the Software, and to permit persons to whom the Software is 46 | furnished to do so, subject to the following conditions: 47 | 48 | The above copyright notice and this permission notice shall be included in all 49 | copies or substantial portions of the Software. 50 | 51 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 52 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 53 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 54 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 55 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 56 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 57 | SOFTWARE. 58 | --------------------------------------------------------------------------------