-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pushing init image for k8s builder to work
Signed-off-by: asararatnakar <[email protected]>
- Loading branch information
1 parent
03d6f43
commit a8d9f52
Showing
3 changed files
with
39 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,16 @@ | ||
name: Build Init image | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build and Push Init Image | ||
run: | | ||
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | ||
make init-image |
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
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,17 @@ | ||
ARG K8S_TAG | ||
FROM ghcr.io/hyperledgendary/k8s-fabric-peer:${K8S_TAG} as builder | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
RUN microdnf update \ | ||
&& microdnf install -y \ | ||
shadow-utils \ | ||
iputils \ | ||
tar \ | ||
&& groupadd -g 7051 ibp-user \ | ||
&& useradd -u 7051 -g ibp-user -s /bin/bash ibp-user \ | ||
&& microdnf remove shadow-utils \ | ||
&& microdnf clean all \ | ||
&& mkdir -p /opt/hyperledger/k8s_builder/bin; | ||
|
||
COPY --from=builder /opt/hyperledger/k8s_builder/bin/ /opt/hyperledger/k8s_builder/bin/ |