Skip to content

Commit

Permalink
Merge pull request #15813 from praveenkumar/podman-remote-container-file
Browse files Browse the repository at this point in the history
[CI:BUILD] Contrib: Add containerfile to create podman-remote binary image
  • Loading branch information
openshift-merge-robot authored Sep 26, 2022
2 parents a399e58 + 8c627df commit cf6136f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/podmanremoteimage/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder
WORKDIR /opt/app-root/src
COPY . .
RUN make podman-remote-static
RUN GOOS=windows make podman-remote
RUN GOOS=darwin make podman-remote

FROM scratch
COPY --from=builder /opt/app-root/src/bin .
ENTRYPOINT ["/podman-remote-static"]
25 changes: 25 additions & 0 deletions contrib/podmanremoteimage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
podman-remote-images
====================

Overview
--------

This directory contains the containerfile for creating a container image which consist podman-remote binary
for each platform (win/linux/mac).

Users can copy those binaries onto the specific platforms using following instructions

- For Windows binary
```bash
$ podman cp $(podman create --name remote-temp quay.io/containers/podman-remote-artifacts:latest):/windows/podman.exe . && podman rm remote-temp
```

- For Linux binary
```bash
$ podman cp $(podman create --name remote-temp quay.io/containers/podman-remote-artifacts:latest):/podman-remote-static . && podman rm remote-temp
```

- For Mac binary
```bash
$ podman cp $(podman create --name remote-temp quay.io/containers/podman-remote-artifacts:latest):/darwin/podman . && podman rm remote-temp
```

0 comments on commit cf6136f

Please sign in to comment.