GithubHelp home page GithubHelp logo

Comments (16)

yxwzaxns avatar yxwzaxns commented on May 14, 2024 2

@dandan86 you should download server-jre-8u101-linux-x64.tar.gz from a URL, you can get it from server-jre-8u101-linux-x64.tar.gz.download

from docker-images.

nicolimo86 avatar nicolimo86 commented on May 14, 2024 2

@Djelibeybi @yxwzaxns thank you, indeed the problem was that one.

from docker-images.

Djelibeybi avatar Djelibeybi commented on May 14, 2024 1

$ mv server-jre-8u101-linux-x64.tar.gz.download server-jre-8u101-linux-x64.tar.gz

This is your problem. The .download file is NOT a tarball. It's a text file that tells you where to download the actual server-jre tarball from. View the file, go to the URL, download the binaries and then rebuild your image using the actual tarball itself.

from docker-images.

mrmahesh avatar mrmahesh commented on May 14, 2024 1

I am Building the Image in Docker Toolbox

$ sh buildDockerImage.sh -v 12.2.1 -d -s
Skipped MD5 checksum.

Building image 'oracle/weblogic:12.2.1-developer' ...
Sending build context to Docker daemon 324.9MB
Step 1/11 : FROM oracle/serverjre:8
---> 4ae27cc3a146
Step 2/11 : MAINTAINER Bruno Borges [email protected]
---> Running in 1f0979a4af41
---> cd2bf0920467
Removing intermediate container 1f0979a4af41
Step 3/11 : ENV ORACLE_HOME /u01/oracle USER_MEM_ARGS "-Djava.security.egd=file:/dev/./urandom" PATH $PATH:/usr/java/default/bin:/u01/oracle/oracle_co
mmon/common/bin
---> Running in 01ad54f074c4
---> e63ebfd29036
Removing intermediate container 01ad54f074c4
Step 4/11 : RUN mkdir -p /u01 && chmod a+xr /u01 && useradd -b /u01 -d /u01/oracle -m -s /bin/bash oracle
---> Running in 1b605c435198
---> 2c766e6ad1df
Removing intermediate container 1b605c435198
Step 5/11 : ENV FMW_PKG fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip FMW_JAR fmw_12.2.1.0.0_wls_quick.jar DEBUG_FLAG true PRODUCTION_MODE dev
---> Running in 8dd201180f3a
---> 31b4f29e2150
Removing intermediate container 8dd201180f3a
Step 6/11 : COPY $FMW_PKG install.file oraInst.loc /u01/
COPY failed: stat /mnt/sda1/var/lib/docker/tmp/docker-builder374931965/fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip: no such file or directory
There was an error building the image.

Help me i am stuck on Step 6.

from docker-images.

brunoborges avatar brunoborges commented on May 14, 2024

Update the git repo on your local computer.

from docker-images.

yxwzaxns avatar yxwzaxns commented on May 14, 2024

I also encountered the same problem,how to update git repo

from docker-images.

alagna avatar alagna commented on May 14, 2024

simply doing a >git pull

from docker-images.

prasenforu avatar prasenforu commented on May 14, 2024

same issue "/bin/sh: /usr/java/default/bin/jar: Not a directory"

dockerfiles]$ git pull
Already up-to-date.
[pkar@ip-172-31-19-52 dockerfiles]$ sh buildDockerImage.sh -d -v 12.2.1
Checking if required packages are present and valid...

fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip: OK

Building image 'oracle/weblogic:12.2.1-developer' ...
Sending build context to Docker daemon 402.7 MB
Step 1 : FROM oracle/jdk:8
---> be2ddf461adf
Step 2 : MAINTAINER Bruno Borges [email protected]
---> Running in bf9822fd24cc
---> e25f5c906781
Removing intermediate container bf9822fd24cc
Step 3 : ENV FMW_PKG fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip FMW_JAR fmw_12.2.1.0.0_wls_quick.jar ORACLE_HOME /u01/oracle USER_MEM_ARGS "-Djava.security.egd=file:/dev/./urandom" PATH $PATH:/usr/java/default/bin:/u01/oracle/oracle_common/common/bin
---> Running in 20c47f18fd93
---> 77d3e63d8faf
Removing intermediate container 20c47f18fd93
Step 4 : COPY $FMW_PKG install.file oraInst.loc /u01/
---> 7dd2549fcfde
Removing intermediate container a44a65971d17
Step 5 : ADD $JAVA_PKG /usr/java/
---> 4551748e277e
Removing intermediate container 1f7cb4162286
Step 6 : RUN chmod a+xr /u01 && useradd -b /u01 -m -s /bin/bash oracle && echo oracle:oracle | chpasswd && cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - && su -c "$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME" - oracle && chown oracle:oracle -R /u01 && rm /u01/$FMW_JAR /u01/$FMW_PKG /u01/oraInst.loc /u01/install.file
---> Running in 9bdce9d534d7
/bin/sh: /usr/java/default/bin/jar: Not a directory
Removing intermediate container 9bdce9d534d7
The command '/bin/sh -c chmod a+xr /u01 && useradd -b /u01 -m -s /bin/bash oracle && echo oracle:oracle | chpasswd && cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - && su -c "$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME" - oracle && chown oracle:oracle -R /u01 && rm /u01/$FMW_JAR /u01/$FMW_PKG /u01/oraInst.loc /u01/install.file' returned a non-zero code: 126
There was an error building the image.

from docker-images.

lautarochiarle avatar lautarochiarle commented on May 14, 2024

Hi, any updates on this issue? I'm having the same problem using Ubuntu 14.04 when I tried to build the image using this command: ./buildDockerImage.sh -v 12.2.1 -d

from docker-images.

brunoborges avatar brunoborges commented on May 14, 2024

Please provide detailed information on how you built image oracle/jdk:8

from docker-images.

nicolimo86 avatar nicolimo86 commented on May 14, 2024

Hi all, I pulled everything but I still have this error.
I'm using OSX.

That's how I built oracle/jdk:8 :

$ cd OracleJDK/java-8/
$ mv server-jre-8u101-linux-x64.tar.gz.download server-jre-8u101-linux-x64.tar.gz
$ sh build.sh 
Sending build context to Docker daemon 4.608 kB
Step 1 : FROM oraclelinux:latest
 ---> 3d62999fc909
Step 2 : MAINTAINER Bruno Borges <[email protected]>
 ---> Using cache
 ---> 213ca79d92f3
Step 3 : ENV JAVA_PKG server-jre-8u101-linux-x64.tar.gz JAVA_HOME /usr/java/default
 ---> Using cache
 ---> caf969d078df
Step 4 : ADD $JAVA_PKG /usr/java/
 ---> Using cache
 ---> 737a6550f248
Step 5 : RUN export JAVA_DIR=$(ls -1 -d /usr/java/*) &&     ln -s $JAVA_DIR /usr/java/latest &&     ln -s $JAVA_DIR /usr/java/default &&     alternatives --install /usr/bin/java java $JAVA_DIR/bin/java 20000 &&     alternatives --install /usr/bin/javac javac $JAVA_DIR/bin/javac 20000 &&     alternatives --install /usr/bin/jar jar $JAVA_DIR/bin/jar 20000
 ---> Using cache
 ---> 56b36be02942
Successfully built 56b36be02942

$ docker build -t oracle/jdk:8 .
Sending build context to Docker daemon 4.608 kB
Step 1 : FROM oraclelinux:latest
 ---> 3d62999fc909
Step 2 : MAINTAINER Bruno Borges <[email protected]>
 ---> Using cache
 ---> 213ca79d92f3
Step 3 : ENV JAVA_PKG server-jre-8u101-linux-x64.tar.gz JAVA_HOME /usr/java/default
 ---> Using cache
 ---> caf969d078df
Step 4 : ADD $JAVA_PKG /usr/java/
 ---> Using cache
 ---> 737a6550f248
Step 5 : RUN export JAVA_DIR=$(ls -1 -d /usr/java/*) &&     ln -s $JAVA_DIR /usr/java/latest &&     ln -s $JAVA_DIR /usr/java/default &&     alternatives --install /usr/bin/java java $JAVA_DIR/bin/java 20000 &&     alternatives --install /usr/bin/javac javac $JAVA_DIR/bin/javac 20000 &&     alternatives --install /usr/bin/jar jar $JAVA_DIR/bin/jar 20000
 ---> Using cache
 ---> 56b36be02942
Successfully built 56b36be02942


from docker-images.

gunners1990 avatar gunners1990 commented on May 14, 2024

I have downloaded the latest version still I am getting the error.
Can anybody tell me how to resolve it.

from docker-images.

brunoborges avatar brunoborges commented on May 14, 2024

@gunners1990 please read the README carefully :-)

from docker-images.

gunners1990 avatar gunners1990 commented on May 14, 2024

@brunoborges I will try once again. Thanks for the prompt response.

from docker-images.

guruwiz avatar guruwiz commented on May 14, 2024

Hi, You should check a jar in JRE directory. In my case, I got the same problem when I downloaded a server-jre-8u111-linux-x64.tar.gz which didn't include jar file

from docker-images.

Djelibeybi avatar Djelibeybi commented on May 14, 2024

This issue is closed. Please open a new issue.

from docker-images.

Related Issues (20)

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.