Comments (14)
@metaskills Any updates on the plans for arm64
? Would add a lot of value to have both architectures supported. Really nice work on the extension, always was hoping that AWS made it this seamless to integrate secrets!
from crypteia.
No, I have yet to crack the nut on the Codespaces GPU Beta and/or GitHub Actions support for arm64 or how those might be needed or avoided. It is on my list tho. Do you have experience or thoughts here? Would really appreciate the help.
from crypteia.
@metaskills I also didn't know but seems there's no native way to run ARM64 yet. But cross-compile seems to be quite simple based on cross (sample with the Cargo Github action: https://github.com/jhuiting/rust-cross-compile-test/blob/master/.github/workflows/build.yml).
from crypteia.
cargo-lambda has worked for me to build for arm64 on Github actions for any Rust project. It uses cargo-zigbuild under the hood and creates a folder with the project name and a binary inside named bootstrap. I have not tried their lambda extensions though, which may be a better use case for this project.
For regular builds I would do:
- name: Install Cargo lambda
run: pip3 install cargo-lambda
- name: Cargo build
run: cargo lambda build --release --arm64
from crypteia.
I recently did some work in the Lamby cookiecutter to build a multi-platform image so the Python cookiecutter library worked on arm, see here: https://github.com/customink/lamby-cookiecutter/blob/master/.github/workflows/cc-in-docker.yml
I was surprised how easy this was. So I think there is a mix of the cargo work above with this. I'd love to work or see a PR soon. Seems really straightforward.
from crypteia.
I've started working on this so I can ensure the latest Lamby docs around this are right. I want folks to easily ship arm64 with a few lines of change. Right now, I think there is a blocker with Crypteia not working on arm64.
from crypteia.
Few bookmarks:
- https://www.linkedin.com/pulse/testing-alternative-c-memory-allocators-pt-2-musl-mystery-gomes/
- https://github.com/microsoft/mimalloc
- https://crates.io/crates/cross
- https://github.com/multiarch/qemu-user-static
- https://www.stereolabs.com/docs/docker/building-arm-container-on-x86/
- https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
from crypteia.
Can folks try out the new v1.1.0 images? They should automatically point to the proper architecture. Meaning if you are building an arm64
image, you should get the right files, binaries, and shared objects.
Amazon Linux 2
docker manifest inspect ghcr.io/customink/crypteia-extension-amzn:1.1.0
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 528,
"digest": "sha256:662e8f43106cd7685ca914d3ea9506fd34ee9b625e75583c869e7e83316decd8",
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 528,
"digest": "sha256:26fec765f44dc9292bca1fea18ac6acee33991d4406dc16f8b1f6726cf5a21da",
"platform": {
"architecture": "amd64",
"os": "linux"
}
}
]
}
Debian/Ubuntu
$ docker manifest inspect ghcr.io/customink/crypteia-extension-debian:1.1.0
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 528,
"digest": "sha256:123c6b4edda68f215e229f70e248ddf4c07d891c1d701bed27d5f015ca66f9a5",
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 528,
"digest": "sha256:9befdde5fc24ecccb11bd38c8b526e205ebb3b4ea523cd92abb12ef0eb779471",
"platform": {
"architecture": "amd64",
"os": "linux"
}
}
]
}
from crypteia.
from crypteia.
🤦♂️ I just noticed the manifest has amd64
twice. I'm not sure what is happening here and where the scripts/process went wrong.
$ docker inspect ghcr.io/customink/crypteia-extension-debian-arm64:1.1.0 | grep Arch
"Architecture": "amd64",
from crypteia.
Will see if this helps. 78d56e8
from crypteia.
Interesting this got added to the devcontainer/ci project. Also, here is the link to base Linux ARM64 actions runner too.
from crypteia.
So... v1.1.0 is done. Give it a whirl.
from crypteia.
Closing this out, all done.
from crypteia.
Related Issues (20)
- Node Tests
- Version of glibc Needed HOT 1
- Lambda Extension Layer HOT 1
- More Hooks for Bulk ENV
- Secrets Manager HOT 3
- Thoughts on Path Env/Value Contention
- Running setup on a vanilla x86 arch Mac results in errors HOT 2
- Force AWS Region HOT 2
- Do Not Clobber /opt Directory HOT 1
- Use AWS Embedded Metrics in Logs
- Devcontainer Cache w/GitHub Actions Not Working?
- No Lambda Runtime when Not Needed
- Do Better Non-Breaking v1 Tags HOT 1
- Using With Rust Application? HOT 16
- How to properly handle failed SSM parameter fetching HOT 5
- Binary & Library Size
- Support Environments Updates & Bulk Fetches HOT 2
- Ensure Proper Shutdown Event
- Handle & Test Misuse of SSM Nested Path HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crypteia.