Skip to content

Commit

Permalink
add dev mapper libs (#267)
Browse files Browse the repository at this point in the history
* add dev mapper libs

Signed-off-by: Ryan Cook <rcook@redhat.com>

* remove ssh test temporarily

Signed-off-by: Ryan Cook <rcook@redhat.com>

Signed-off-by: Ryan Cook <rcook@redhat.com>
  • Loading branch information
cooktheryan committed Oct 3, 2022
1 parent 769c7a1 commit cbebc3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 71 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1453,76 +1453,6 @@ jobs:
if: always()
run: sudo podman logs fetchit

ssh-validate:
runs-on: ubuntu-latest
needs: [ build, pull-and-archive ]
steps:
- uses: actions/checkout@v2

- name: pull in podman
uses: actions/download-artifact@v1
with:
name: podman-bins
path: bin

- name: replace
run: |
chmod +x bin/podman
sudo mv bin/podman /usr/bin/podman
- name: Enable the podman socket
run: sudo systemctl enable --now podman.socket

- name: pull artifact
uses: actions/download-artifact@v1
with:
name: fetchit-image
path: /tmp

- name: pull artifact
uses: actions/download-artifact@v1
with:
name: colors
path: /tmp

- name: Load the image
run: sudo podman load -i /tmp/fetchit.tar

- name: Load the image
run: sudo podman load -i /tmp/colors.tar

- name: tag the image
run: sudo podman tag quay.io/fetchit/fetchit-amd:latest quay.io/fetchit/fetchit:latest

- name: generate ssh assets
run: |
mkdir ~/.ssh
echo "${{secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan github.com > ~/.ssh/known_hosts
mkdir ~/.fetchit
mv ~/.ssh ~/.fetchit/
cp ./examples/ssh-config.yaml ~/.fetchit/config.yaml
- name: Start fetchit
run: sudo podman run -d --name fetchit -v fetchit-volume:/opt -v /home/runner/.fetchit:/opt/mount -v /run/podman/podman.sock:/run/podman/podman.sock --security-opt label=disable quay.io/fetchit/fetchit-amd:latest

- name: List fetchit files
run: sudo ls -la ~/.fetchit

- name: List ssh files
run: sudo ls -la ~/.fetchit/.ssh

- name: check for file
run: timeout 150 bash -c "until [ -f /tmp/hello.txt ]; do sleep 2; done"

- name: check for file
run: timeout 150 bash -c "until [ -f /tmp/anotherfile.txt ]; do sleep 2; done"

- name: Logs
if: always()
run: sudo podman logs fetchit


loader-validate:
runs-on: ubuntu-latest
needs: [ build, pull-and-archive ]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN mv $GOPATH/src/github.com/containers/fetchit/_output/bin/linux_$ARCH/fetchit
# RUN STAGE
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest

RUN microdnf -y install rsync && microdnf clean all
RUN microdnf -y install rsync device-mapper-libs && microdnf clean all

COPY --from=builder /usr/local/bin/fetchit /usr/local/bin/

Expand Down

0 comments on commit cbebc3b

Please sign in to comment.