Code Monkey home page Code Monkey logo

Comments (7)

ddsharpe avatar ddsharpe commented on June 8, 2024

I haven't seen this issue before. I tagged an OEL image locally with the same name on my machine but don't get any errors.

For example:
[laptop]:bin $ docker tag oraclelinux:7-slim oel7:7-slim
[laptop]:bin $ imagetool create --tag derek:2 --fromImage oel7:7-slim
[INFO ] Temporary directory used for docker build context: /Users/xxxx/wlsimgbuilder_temp1134269872710003830
[INFO ] docker cmd = docker build --force-rm=true --no-cache --tag derek:2 --build-arg WLS_PKG=fmw_12.2.1.3.0_wls_Disk1_1of1.zip --build-arg JAVA_PKG=jdk-8u202-linux-x64.tar.gz /Users/xxxx/wlsimgbuilder_temp1134269872710003830
Sending build context to Docker daemon 1.033GB

Step 1/35 : FROM oel7:7-slim as OS_UPDATE
---> 90e39322df71

My only guess is that the docker version you are running has a bug or doesn't support something in this Dockerfile.

My docker client version is 19.03.1 on Mac, and 18.09.7 on Linux. Your version is 1.x which seems way off.

from weblogic-image-tool.

GerthH avatar GerthH commented on June 8, 2024

Well I also run a successful build on 19.03.1 on Mac see previous issue that I reported.
This error message appear when I moved to RedHat EL7 with Docker version docker-1.13.1-96 which is the packaged version distributed with RHEL7.

I will see if I can get RedHat Docker CE or RedHat Docker EE installed to try to solve this error which is reported in many cases to "attempting to try to build a multi layered image" in a docker version that does not support it.

from weblogic-image-tool.

ddsharpe avatar ddsharpe commented on June 8, 2024

You can run with the command line option "--cleanup false" to save the Docker build folder for image tool. The tmp directory that the tool creates with the installers, Dockerfile, etc. will not be deleted at the end of the run. Then, you can go to the wlsimgbuilder_tempXXXX folder and view the Dockerfile or even rerun the docker build command manually. Once you see the message "Sending build context to Docker daemon", imagetool has initiated the Docker build command and everything except for cleanup is running inside of Docker.

from weblogic-image-tool.

GerthH avatar GerthH commented on June 8, 2024

I believe I have found the cause for the error.

Similar error reported:
spotify/docker-maven-plugin#264
Also note that multistage builds (FROM xxx as yyy) are supported from Docker 17.05 onwards.

Docker docs:
https://docs.docker.com/develop/develop-images/multistage-build/
Multi-stage builds are a new feature requiring Docker 17.05 or higher on the daemon and client.

Imagetool uses multistage builds here:
Create_Image.mustache
...
FROM {{baseImage}} as OS_UPDATE
...
FROM OS_UPDATE as WLS_BUILD
...

So it seems that I need to upgrade to a RHEL7 docker version that is the equivalent of higher than Docker 17.05.

from weblogic-image-tool.

GerthH avatar GerthH commented on June 8, 2024

Would it be possible to add functionality to have Imagetool to work with out multistage docker builds in order to support RHEL7 docker-1.13.1-96 ?

Ie a second Create_Image.mustache file that does not use multistage builds and have a command line option to choose between them and keep the current multistage build as the default.

from weblogic-image-tool.

ddsharpe avatar ddsharpe commented on June 8, 2024

While it would be possible to support older Docker versions, the demand for this feature would need to be significantly higher before it would be worth the added support cost. Writing the new mustache template would be relatively easy, but the cost of extra testing and keeping the templates in sync is not justified at this time.

from weblogic-image-tool.

GerthH avatar GerthH commented on June 8, 2024

Unable to find functionality matrix showing RHEL7 docker-1.13.1-96 and the Docker CE / EE version (YY-MM) for comparison.

from weblogic-image-tool.

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.