Skip to content

Commit

Permalink
Arch for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaro committed Aug 10, 2024
1 parent 1065faa commit 9b43d2a
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 44 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/arch-arm64-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Push Arch (for arm64) Image

on:
push:
branches:
- main
paths:
- Dockerfile.arch-arm64
- .github/workflows/arch-arm64-push.yml
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile.arch
platforms: linux/arm64
push: true
tags: garo/openssh-client:arch
3 changes: 3 additions & 0 deletions Dockerfile.arch-arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM menci/archlinux
RUN pacman -Syu --noconfirm openssh && pacman -Scc --noconfirm && rm -rf /var/cache/pacman/pkg/*
WORKDIR /root
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ The images are named `garo/openssh-client:tag-of-the-distro` and are available f
| Kali | 2024.2 | 9.7p1 | `kali` |
| Ubuntu | 24.04 | 9.6p1 | `ubuntu` |

## Extra
## Notes
- `empty` contains only 2 files:
- `/ssh` _(The self-compiled OpenSSH client)_
- `/etc/passwd` with only 1 line: `root:x:0:0:root:/:/ssh` _(ssh needs to know it's user)_
- __No__ other files or directories are present.<br>This implies thay you will have to __launch ssh as `/ssh` instead of `ssh` in `empty`__
- `busybox` contains the same self-compiled OpenSSH client.
- Arch Linux has no official arm64 image. The image for arm64 is using `menci/archlinuxarm` as a base image.
- There is also a `builder` that was used to compile OpenSSH for `empty` and `busybox`. It cannot be used directly and should be ignored
- For now consider all images _(certainly `empty` and `busybox`)_ as experimental. Report all issues.

Expand Down
27 changes: 0 additions & 27 deletions build-archlinux-builder.sh

This file was deleted.

16 changes: 0 additions & 16 deletions build-archlinux.sh

This file was deleted.

0 comments on commit 9b43d2a

Please sign in to comment.