Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example seems no to work #2

Open
flefevre opened this issue Jul 5, 2018 · 2 comments
Open

Example seems no to work #2

flefevre opened this issue Jul 5, 2018 · 2 comments

Comments

@flefevre
Copy link

flefevre commented Jul 5, 2018

[fl218080@is233628 harmony-examples]$ docker-compose up
Building harmony
Step 1/12 : FROM alpine:3.4
---> c7fc7faf8c28
Step 2/12 : ENV JAVA_VERSION_MAJOR=8 JAVA_VERSION_MINOR=102 JAVA_VERSION_BUILD=14 JAVA_PACKAGE=jdk JAVA_JCE=standard JAVA_HOME=/opt/jdk PATH=${PATH}:/opt/jdk/bin GLIBC_VERSION=2.23-r3 LANG=C.UTF-8
---> Using cache
---> 47adb0d635c8
Step 3/12 : RUN apk upgrade --update && apk add --update libstdc++ curl ca-certificates bash && for pkg in glibc-${GLIBC_VERSION} glibc-bin-${GLIBC_VERSION} glibc-i18n-${GLIBC_VERSION}; do curl -sSL https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/${pkg}.apk -o /tmp/${pkg}.apk; done && apk add --allow-untrusted /tmp/.apk && rm -v /tmp/.apk && ( /usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 C.UTF-8 || true ) && echo "export LANG=C.UTF-8" > /etc/profile.d/locale.sh && /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib && mkdir /opt && curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie" -o /tmp/java.tar.gz http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz && gunzip /tmp/java.tar.gz && tar -C /opt -xf /tmp/java.tar && ln -s /opt/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} /opt/jdk && if [ "${JAVA_JCE}" == "unlimited" ]; then echo "Installing Unlimited JCE policy" >&2 && curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie" -o /tmp/jce_policy-${JAVA_VERSION_MAJOR}.zip http://download.oracle.com/otn-pub/java/jce/${JAVA_VERSION_MAJOR}/jce_policy-${JAVA_VERSION_MAJOR}.zip && cd /tmp && unzip /tmp/jce_policy-${JAVA_VERSION_MAJOR}.zip && cp -v /tmp/UnlimitedJCEPolicyJDK8/.jar /opt/jdk/jre/lib/security; fi && sed -i s/#networkaddress.cache.ttl=-1/networkaddress.cache.ttl=30/ $JAVA_HOME/jre/lib/security/java.security && apk del curl glibc-i18n && rm -rf /opt/jdk/src.zip /opt/jdk/lib/missioncontrol /opt/jdk/lib/visualvm /opt/jdk/lib/javafx /opt/jdk/jre/plugin /opt/jdk/jre/bin/javaws /opt/jdk/jre/bin/jjs /opt/jdk/jre/bin/orbd /opt/jdk/jre/bin/pack200 /opt/jdk/jre/bin/policytool /opt/jdk/jre/bin/rmid /opt/jdk/jre/bin/rmiregistry /opt/jdk/jre/bin/servertool /opt/jdk/jre/bin/tnameserv /opt/jdk/jre/bin/unpack200 /opt/jdk/jre/lib/javaws.jar /opt/jdk/jre/lib/deploy /opt/jdk/jre/lib/desktop /opt/jdk/jre/lib/javafx /opt/jdk/jre/lib/jfx /opt/jdk/jre/lib/amd64/libdecora_sse.so /opt/jdk/jre/lib/amd64/libprism_.so /opt/jdk/jre/lib/amd64/libfxplugins.so /opt/jdk/jre/lib/amd64/libglass.so /opt/jdk/jre/lib/amd64/libgstreamer-lite.so /opt/jdk/jre/lib/amd64/libjavafx*.so /opt/jdk/jre/lib/amd64/libjfx*.so /opt/jdk/jre/lib/ext/jfxrt.jar /opt/jdk/jre/lib/ext/nashorn.jar /opt/jdk/jre/lib/oblique-fonts /opt/jdk/jre/lib/plugin.jar /tmp/* /var/cache/apk/* && echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
---> Running in a86a78cec3ee
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
OK: 5 MiB in 11 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/11) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(2/11) Installing ncurses-terminfo (6.0_p20171125-r0)
(3/11) Installing ncurses-libs (6.0_p20171125-r0)
(4/11) Installing readline (6.3.008-r4)
(5/11) Installing bash (4.3.42-r5)
Executing bash-4.3.42-r5.post-install
(6/11) Installing ca-certificates (20161130-r0)
(7/11) Installing libssh2 (1.7.0-r0)
(8/11) Installing libcurl (7.59.0-r0)
(9/11) Installing curl (7.59.0-r0)
(10/11) Installing libgcc (5.3.0-r0)
(11/11) Installing libstdc++ (5.3.0-r0)
Executing busybox-1.24.2-r14.trigger
Executing ca-certificates-20161130-r0.trigger
OK: 16 MiB in 22 packages
(1/3) Installing glibc (2.23-r3)
(2/3) Installing glibc-bin (2.23-r3)
(3/3) Installing glibc-i18n (2.23-r3)
Executing glibc-bin-2.23-r3.trigger
OK: 32 MiB in 25 packages
removed '/tmp/glibc-2.23-r3.apk'
removed '/tmp/glibc-bin-2.23-r3.apk'
removed '/tmp/glibc-i18n-2.23-r3.apk'
LC_MONETARY: value of field `int_curr_symbol' has wrong length
No definition for LC_PAPER category found
No definition for LC_NAME category found
No definition for LC_ADDRESS category found
No definition for LC_TELEPHONE category found
No definition for LC_MEASUREMENT category found
No definition for LC_IDENTIFICATION category found
gunzip: invalid magic
ERROR: Service 'harmony' failed to build: The command '/bin/sh -c apk upgrade --update && apk add --update libstdc++ curl ca-certificates bash && for pkg in glibc-${GLIBC_VERSION} glibc-bin-${GLIBC_VERSION} glibc-i18n-${GLIBC_VERSION}; do curl -sSL https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/${pkg}.apk -o /tmp/${pkg}.apk; done && apk add --allow-untrusted /tmp/.apk && rm -v /tmp/.apk && ( /usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 C.UTF-8 || true ) && echo "export LANG=C.UTF-8" > /etc/profile.d/locale.sh && /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib && mkdir /opt && curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie" -o /tmp/java.tar.gz http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz && gunzip /tmp/java.tar.gz && tar -C /opt -xf /tmp/java.tar && ln -s /opt/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} /opt/jdk && if [ "${JAVA_JCE}" == "unlimited" ]; then echo "Installing Unlimited JCE policy" >&2 && curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie" -o /tmp/jce_policy-${JAVA_VERSION_MAJOR}.zip http://download.oracle.com/otn-pub/java/jce/${JAVA_VERSION_MAJOR}/jce_policy-${JAVA_VERSION_MAJOR}.zip && cd /tmp && unzip /tmp/jce_policy-${JAVA_VERSION_MAJOR}.zip && cp -v /tmp/UnlimitedJCEPolicyJDK8/.jar /opt/jdk/jre/lib/security; fi && sed -i s/#networkaddress.cache.ttl=-1/networkaddress.cache.ttl=30/ $JAVA_HOME/jre/lib/security/java.security && apk del curl glibc-i18n && rm -rf /opt/jdk/src.zip /opt/jdk/lib/missioncontrol /opt/jdk/lib/visualvm /opt/jdk/lib/javafx /opt/jdk/jre/plugin /opt/jdk/jre/bin/javaws /opt/jdk/jre/bin/jjs /opt/jdk/jre/bin/orbd /opt/jdk/jre/bin/pack200 /opt/jdk/jre/bin/policytool /opt/jdk/jre/bin/rmid /opt/jdk/jre/bin/rmiregistry /opt/jdk/jre/bin/servertool /opt/jdk/jre/bin/tnameserv /opt/jdk/jre/bin/unpack200 /opt/jdk/jre/lib/javaws.jar /opt/jdk/jre/lib/deploy /opt/jdk/jre/lib/desktop /opt/jdk/jre/lib/javafx /opt/jdk/jre/lib/jfx /opt/jdk/jre/lib/amd64/libdecora_sse.so /opt/jdk/jre/lib/amd64/libprism_.so /opt/jdk/jre/lib/amd64/libfxplugins.so /opt/jdk/jre/lib/amd64/libglass.so /opt/jdk/jre/lib/amd64/libgstreamer-lite.so /opt/jdk/jre/lib/amd64/libjavafx*.so /opt/jdk/jre/lib/amd64/libjfx*.so /opt/jdk/jre/lib/ext/jfxrt.jar /opt/jdk/jre/lib/ext/nashorn.jar /opt/jdk/jre/lib/oblique-fonts /opt/jdk/jre/lib/plugin.jar /tmp/* /var/cache/apk/* && echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf' returned a non-zero code: 1
[fl218080@is233628 harmony-examples]$

@zilm13
Copy link

zilm13 commented Jul 5, 2018

@flefevre what docker do you use? Looks like it couldn't download Java from Oracle website. We had such issue, but modified it to use supported build like this: https://github.com/karalabe/hive/blob/master/clients/ethereumj:develop/Dockerfile

@zilm13
Copy link

zilm13 commented Jul 5, 2018

@flefevre aaaahh I see, it's a repo I'm commenting at
Sorry, this thing is not supported.
You could make something from the link i've mentioned
Also there is a thing made for Casper testing https://github.com/harmony-dev/docker/tree/master/casper
but Casper spec are subject to change dramatically and are outdated. You'd better create issue in harmony repo and we'll add Dockerfile later. But if you need something sooner, use the links provided to see how to make it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants