nginx-container
nginx-container copied to clipboard
Can't build on RHEL 7.6
Trying to build 1.12 on RHEL
following
To build a RHEL7 based Nginx image, you need to run Docker build on a properly subscribed RHEL machine.
```
$ git clone --recursive https://github.com/sclorg/nginx-container.git
$ cd nginx-container
$ git submodule update --init
$ make build TARGET=rhel7 VERSIONS=1.10 and 1.12
```
getting
.... Step 14/15 : CMD $STI_SCRIPTS_PATH/usage ---> Running in 8d0f4fce67d5 ---> 1750245a6262 Removing intermediate container 8d0f4fce67d5 Step 15/15 : LABEL "io.openshift.builder-version" '"ce0192c"' ---> Running in 623a99da35b5 ---> 697ee0df98bf Removing intermediate container 623a99da35b5 Successfully built 697ee0df98bf ERROR: docker-squash 1.0.5 required make[1]: *** [1.10] Error 1 make[1]: Leaving directory `/home/mikk/composeTest/nginx-container' make: *** [build-serial] Error 2
What's up with docker-squash?
Suggestions?
Environment: CPE OS Name: cpe:/o:redhat:enterprise_linux:7.6:GA:server Docker version 1.13.1, build 07f3374/1.13.1
s2i version unknown
running as VM in VirtualBox 5.2.22 r126460 on win 10
Cleaned all container and images and tried again
.... Step 14/15 : CMD $STI_SCRIPTS_PATH/usage ---> Running in a1b2391d517d ---> a0589ce1b925 Removing intermediate container a1b2391d517d Step 15/15 : LABEL "io.openshift.builder-version" '"ce0192c"' ---> Running in bc0d2e6e1452 ---> 4a3309ae39ca Removing intermediate container bc0d2e6e1452 Successfully built 4a3309ae39ca cat: .image-id: No such file or directory Error response from daemon: No such image: c7cd60efd119:latest Error response from daemon: image name cannot be blank ERROR: docker-squash 1.0.5 required make[1]: *** [1.12] Error 1 make[1]: Leaving directory `/home/mikk/composeTest/nginx-container' make: *** [build-serial] Error 2
new error and the old squash
Hi,
this repo contains outdated common/
build scripts. So you need to run git submodule update --remote
in this repository.
To get these fixes:
https://github.com/sclorg/container-common-scripts/pull/100
https://github.com/sclorg/container-common-scripts/pull/102
Cleaned all container and images and tried again
.... Step 14/15 : CMD $STI_SCRIPTS_PATH/usage ---> Running in a1b2391d517d ---> a0589ce1b925 Removing intermediate container a1b2391d517d Step 15/15 : LABEL "io.openshift.builder-version" '"ce0192c"' ---> Running in bc0d2e6e1452 ---> 4a3309ae39ca Removing intermediate container bc0d2e6e1452 Successfully built 4a3309ae39ca cat: .image-id: No such file or directory Error response from daemon: No such image: c7cd60efd119:latest Error response from daemon: image name cannot be blank ERROR: docker-squash 1.0.5 required make[1]: *** [1.12] Error 1 make[1]: Leaving directory `/home/mikk/composeTest/nginx-container' make: *** [build-serial] Error 2
new error and the old squash
I had to install pip and then python 3.4 from scl and then execute "scl enable rh-python34 bash". From there I had to install the exact version of docker-squash 1.0.5 using "pip install docker-squash==1.0.5". Good luck!
@mikkc Can you please verify whether you are able to build on RHEL 7.9? RHEL-7.6 reached already EOL :) Did you install docker-squash?
@phracek it was 7.6 ... long time ago now
@cragr Thanks for your suggestions - I missed them way back then
@mikkc Install on your system docker-squash as was proposed by @cragr comment. If everything is working well, please close this issue.
Closing this stale issue. Feel free to re-open it.