-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contrib: Add containerfile to create podman-remote binary image
Try to partial address #14664 Signed-off-by: Praveen Kumar <[email protected]>
- Loading branch information
1 parent
017d81d
commit 8c627df
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |