Command:
cat Dockerfile | oc new-build --dockerfile - --to-docker=true --to=quay.io/spotlesstofu/curl-jq --name=build-image-curl-jq
Output:
--> Found container image 49176f1 (6 days old) from docker.io for "docker.io/library/alpine:latest"
* An image stream tag will be created as "alpine:latest" that will track the source image
* A Docker build using a predefined Dockerfile will be created
* The resulting image will be pushed with Docker to "quay.io/spotlesstofu/curl-jq"
* Every time "alpine:latest" changes a new build will be triggered
--> Creating resources with label build=build-image-curl-jq ...
imagestream.image.openshift.io "alpine" created
buildconfig.build.openshift.io "build-image-curl-jq" created
--> Success