Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic multi-arch build support #67

Merged
merged 2 commits into from
Oct 24, 2022

Conversation

adamus1red
Copy link
Contributor

@adamus1red adamus1red commented Oct 23, 2022

This PR adds support for building the container as both AMD64 and ARM64. See #32

Base image supports linux/amd64, linux/arm/v7, and linux/arm64

Appears to work as expected when running on Raspberry Pi 4 running Alpine Linux 3.16
image

pi-4-1:~# uname -a
Linux pi-4-1 5.15.62-0-rpi4 #1-Alpine SMP PREEMPT Wed Aug 24 17:55:41 UTC 2022 aarch64 GNU/Linux
pi-4-1:~# docker logs -f 5f51b19f1a54

--------------------------------------------------------------------
 ____                             ____  _     _        _   _
/ ___|  ___ _ ____   _____ _ __  / ___|(_) __| | ___  | | | |_ __
\___ \ / _ \  __\ \ / / _ \  __| \___ \| |/ _` |/ _ \ | | | |  _ \
 ___) |  __/ |   \ V /  __/ |     ___) | | (_| |  __/ | |_| | |_) |
|____/ \___|_|    \_/ \___|_|    |____/|_|\__,_|\___|  \___/| .__/
                                                            |_|

Brought to you by serversideup.net
--------------------------------------------------------------------

To support Server Side Up projects visit:
https://serversideup.net/sponsor
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

🔐 SSL_MODE has set to FULL, setting the web server to work in HTTPS only...
🏃‍♂️ Checking for Laravel automations...
🔐 Linking the storage...
🏃‍♂️ An SSL key was not detected, so I'll generate a self-signed SSL certificate pair for you...
........+..+...+....+........+......+.+.....+.............+.....+..........+...+...+..+...+.......+...+..+.........+.........+....+......+...........+.+..+......+......+.+.....+...+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+...+...+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+...+............+.+......+......+.....+...+.+......+..+.............+...+...............+......+.....+.........................+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----

   INFO  The [public/storage] link has been connected to [storage/app/public].

🐇  Configuring Speedtest Tracker...
🙄  Database file not found, creating...
🔗  Creating database symlink
🙄  Environment file not found, creating...
🔗  Creating symlinks to config and log files
⏳  Generating app key...
[23-Oct-2022 01:00:50] NOTICE: fpm is running, pid 107
[23-Oct-2022 01:00:50] NOTICE: ready to handle connections
[23-Oct-2022 01:00:50] NOTICE: systemd monitor interval set to 10000ms
🔒  Fixing app path file permissions
💰  Building the cache...
127.0.0.1 - - [23/Oct/2022:01:00:51 +0000] "GET /ping HTTP/1.1" 301 162 "-" "curl/7.81.0"
🚛  Migrating the database...
✅  All set, starting Speedtest Tracker container...
⏰  Starting the cron service...
💪  Starting the queue worker...
10.0.10.218 - - [23/Oct/2022:01:00:56 +0000] "GET / HTTP/2.0" 302 378 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"

See https://github.com/adamus1red/speedtest-tracker-1/pkgs/container/speedtest-tracker-1/46905243?tag=adamus1red-multiarch for sample container image built from this PR with this action https://github.com/adamus1red/speedtest-tracker-1/actions/runs/3305287445

@alexjustesen alexjustesen added the 🎉 feature New feature or request label Oct 23, 2022
@alexjustesen alexjustesen linked an issue Oct 23, 2022 that may be closed by this pull request
@alexjustesen
Copy link
Owner

On my radar for today, this will push me to get my rpi rack installed again

Copy link
Owner

@alexjustesen alexjustesen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds worked for my on rpi 4b's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ubuntu 22.04 and multi-arch support
2 participants