Comments (16)
@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.
@Djelibeybi @yxwzaxns thank you, indeed the problem was that one.
from docker-images.
$ 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.
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.
Update the git repo on your local computer.
from docker-images.
I also encountered the same problem,how to update git repo
from docker-images.
simply doing a >git pull
from docker-images.
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.
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.
Please provide detailed information on how you built image oracle/jdk:8
from docker-images.
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.
I have downloaded the latest version still I am getting the error.
Can anybody tell me how to resolve it.
from docker-images.
@gunners1990 please read the README carefully :-)
from docker-images.
@brunoborges I will try once again. Thanks for the prompt response.
from docker-images.
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.
This issue is closed. Please open a new issue.
from docker-images.
Related Issues (20)
- Oracle DB: buildContainerImage.sh should check container architecture, not host architecture
- dockerfile:174 error is an error code, but I don't know which configuration part the error is in. HOT 5
- Cannot download repomd.xml
- README update for placing OPatch zip filename in extensions/patching/patches/one_offs directory
- docker version check warning for `-ce` HOT 2
- RMAN backup and restore to a specific point in time -> getting RMAN-06025 errors HOT 3
- Unable to pull oracle/weblogic:12.1.3-developer image HOT 2
- Creation of OracleDatabase 21c errors with out of memory HOT 2
- oracle 19c image doesn't work :LRM-00109: could not open parameter file HOT 1
- Request to change instances of "PDB_ADMIN" to "PDBADMIN" in documentation/READMEs
- Building Oracle EE arm64 on x86 with docker buildx fails
- The Oracle port has not been modified
- Can DB_DOMAIN in OracleDatabase/SingleInstance? HOT 2
- How to use yum when running scripts after setup HOT 6
- any plan to support of oracle instant client with oraclelinux 9 HOT 1
- Unable to create multiple replicas on kubernetes cluster HOT 2
- Install manually oracle-database-preinstall-19c HOT 1
- Reuse Existing Database Files When Re-creating an Oracle 19c Container HOT 4
- `Password: su: Authentication failure` error when starting the container HOT 2
- Bash environment of _oracle_ user broke. HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-images.