Dockerfile Directives ENV header

Hi guys,

I was watching this video and I was wondering how you obtained the header from the following command used to build the Docker image:
RUN cd ~ && wget --no-cookies --no-check-certificate --header "Cookie:; oraclelicense=accept-securebackup-cookie" ""
I think that this pattern can be used to download rpms from other vendors, right?

Many thanks,
  • post-author-pic
    Terrence C

    Depends. This was specific to the download site for Oracle and that specific version of Java. Oracle has changed their downloads (they really want a person to accept the license agreement and continually make changes to deter and undermine automated download scripts like this). Other sites may be easier or harder.

    However, you can use wget in many cases to download software in a variety of forms (RPM or otherwise) and then include processing/installing them in your Dockerfile for the image you are building!

Looking For Team Training?

Learn More