Skip to content

Commit

Permalink
Spike/complete podman support (#235)
Browse files Browse the repository at this point in the history
* add podman aliasing to oci-registry scripts

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* update oci-registry docs for clarity

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

* update scripts to run from root dir as well

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>

---------

Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
  • Loading branch information
Jdubrick committed Apr 19, 2024
1 parent 954a12f commit db0b564
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oci-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
This folder contains the Dockerfile for the OCI registry server. It is based off of the [reference implementation from Docker](https://github.com/docker/distribution), but using a UBI-8 base image rather than Alpine.

## Build
The scripts in this project support both `Docker` and `Podman` container engines. By default the scripts will run using `Docker`, to use `Podman` first run `export USE_PODMAN=true`.

To build the image, run `build.sh`.
To build the image, run `bash build.sh`.

To push the image to a repository of your choice, you can run `bash push.sh <repository-tag>`.

## Deploy

Expand Down
4 changes: 4 additions & 0 deletions oci-registry/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@

# Build the index container for the registry
buildfolder="$(basename "$(dirname "$0")")"

# set podman alias if necessary
. ${buildfolder}/../setenv.sh

docker build -t oci-registry:next $buildfolder
3 changes: 3 additions & 0 deletions oci-registry/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# set podman alias if necessary
. $(basename "$(dirname "$0")")/../setenv.sh

IMAGE_TAG=$1
docker tag oci-registry:next $IMAGE_TAG
docker push $IMAGE_TAG

0 comments on commit db0b564

Please sign in to comment.