Git Product home page Git Product logo

rpi-java's Introduction

DEPRECATED: PLEASE USE OFFICIAL DOCKER IMAGES openjdk AS THEY PROVIDE IMAGES FOR ARM

rpi-java Build Status

Raspberry Pi compatible Docker base image with OpenJDK, an open-source implementation of the Java Platform.

Uses openjdk-8-jre-headless. Run all the commands from within the project root directory.

Build Details

Build the Docker Image

make build

Run the Docker Image and get the version of installed Java Runtime Environment

make version

Push the Docker Image to the Docker Hub

  • First use a docker login with username, password and email address
  • Second push the Docker Image to the official Docker Hub
make push

License

The MIT License (MIT)

Copyright (c) 2015 Hypriot

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

rpi-java's People

Contributors

dieterreuter avatar govinda-fichtner avatar mathiasrenner avatar stefanscherer avatar trycoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-java's Issues

Travis build shows core dumps

In PR #3 some builds in Travis showed a core dump:

https://travis-ci.org/hypriot/rpi-java/builds/192465117#L408


Setting up ca-certificates-java (20140324) ...
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/lib/dpkg/info/ca-certificates-java.postinst: line 40:  4732 Done                    echo -e "-diginotar_root_ca\n-diginotar_root_ca_pem"
      4734 Segmentation fault      (core dumped) | java -Xmx64m -jar $JAR -storepass "$storepass"
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/lib/dpkg/info/ca-certificates-java.postinst: line 40:  4737 Done                    find /etc/ssl/certs -name \*.pem
      4739 Broken pipe             | while read filename; do
    alias=$(basename $filename .pem | tr A-Z a-z | tr -cs a-z0-9 _); alias=${alias%*_}; if [ -n "$FIXOLD" ]; then
        echo "-${alias}"; echo "-${alias}_pem";
    fi; echo "+${filename}";
done
      4740 Segmentation fault      (core dumped) | java -Xmx64m -jar $JAR -storepass "$storepass"
done.
Processing triggers for libc-bin (2.19-18+deb8u6) ...
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for ca-certificates (20141019+deb8u1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
 ---> fdfed3639deb
Removing intermediate container 7f0d0397d043

Upgrade to jessie and JDK8

Now that "jessie" is available we should upgrade to that version, and also bump JDK-version to 8 since 7 is getting really old.

"openjdk-7-jre" -> "openjdk-8-jre", also update the reference to JAVA_HOME and README.md

Thanks!

Illegal instruction (core dumped) using hypriotos-rpi-v1.2.0

Hi,

Ran into this issue when I experimented with docker/java/rpi. Please let me know if you need more details.

Issue

Ran
docker run --rm hypriot/rpi-java:jre-1.8.111 java -version
on my Rpi Model B with Hypriot 1.2.0.
Got the following message:
/usr/bin/entry.sh: line 86: 6 Illegal instruction (core dumped) "$CMD" "$@"

Full procedure with the output from my Rpi:

flash --hostname docker1 https://github.com/hypriot/image-builder-rpi/releases/download/v1.2.0/hypriotos-rpi-v1.2.0.img.zip

ssh [email protected]

pirate@docker1 in ~
$ docker run --rm hypriot/rpi-java:jre-1.8.111 java -version
Unable to find image 'hypriot/rpi-java:jre-1.8.111' locally
jre-1.8.111: Pulling from hypriot/rpi-java
f28608d2221a: Pull complete
733cb9bf0c01: Pull complete
9c8e6f9eeef4: Pull complete
83b44b73b939: Pull complete
9ec044b84da5: Pull complete
f187026830fd: Pull complete
ac72d8e29c80: Pull complete
f6146c50c8ad: Pull complete
c1bcb0da4115: Pull complete
54916f25d17d: Pull complete
Digest: sha256:9e04e5130340d5f1413d2f7c51ce264ae38fe603c47b2410af2fa7241a0537ba
Status: Downloaded newer image for hypriot/rpi-java:jre-1.8.111
/usr/bin/entry.sh: line 86: 6 Illegal instruction (core dumped) "$CMD" "$@"

Expected

I expected similar results as rpi-java:jre-1.7.0 provides:

$ docker run --rm hypriot/rpi-java:jre-1.7.0 java -version
Unable to find image 'hypriot/rpi-java:jre-1.7.0' locally
jre-1.7.0: Pulling from hypriot/rpi-java
922c245861e9: Pull complete
379c09544a24: Pull complete
b5374bfa205d: Pull complete
8c0e7a40994a: Pull complete
4df77b517c01: Pull complete
a7f97e2b08f7: Pull complete
2d971c18088a: Pull complete
Digest: sha256:c29fbcb6b37ff49bf83a39c926bdaaffbb199ad4ddcfd10259d97e7fc1c472d5
Status: Downloaded newer image for hypriot/rpi-java:jre-1.7.0
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-2~deb7u1+rpi1)
OpenJDK Zero VM (build 24.111-b01, interpreted mode)

Is there some problem with hypriot/rpi-java:1.8.111 or am I doing it wrong?
Thanks,
Mårten

cannot use chmod with this image

I am getting this error when I try to make our main program file executable. any idea what to do?

[ERROR] DOCKER> Unable to build image [assembly] : The command '/bin/sh -c chmod 755 /usr/local/karaf/bin/karaf' returned a non-zero code: 1  [The command '/bin/sh -c chmod 755 /usr/local/karaf/bin/karaf' returned a non-zero code: 1 ]

tried with chmod and /bin/chmod

I tried with +x and 755. same error

if the build is done on windows (docker for windows) this works
but if done on fedora linux I am getting this error.

thanks in advance.

FROM hypriot/rpi-java
EXPOSE 8181 9090
COPY maven /usr/local/karaf/
RUN chmod 755 /usr/local/karaf/bin/karaf
CMD ["/usr/local/karaf/bin/karaf","daemon"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.