#DaysOfArm (4 of X)

This is my fourth #DaysOfArm article that tracks some of the experiences that I’ve had so far. And just to recap from the first post (here) on June 12 2021.

It’s been just over 2 weeks since the launch of Ampere Arm deployed in Oracle Cloud Infrastructure (OCI). Check this article out to learn more (here). And it’s been about one week since I started looking into the new architecture and deployment, since I started provisioning the VM.Standard.A1.Flex Compute Shape on OCI and since I started migrating a specific application that has many different variations to it to test it all out.

This is my next learning.

Continuing with the work that I’ve been doing with the fnproject.io (here), it’s been an interesting learning. The one that I’m going to focus on here is the use of docker and specifically the use of docker images from dockerhub (here).

When building / deploying applications, it is a common practice to base your application upon a pre-existing image. You could think about these are Infrastructure as an Image (IaaI), Platform as an Image (PaaI) or Software as an Image (SaaI).

Here’s a tag listing for fnproject/fn on docker hub.

Notice the OS/Arch? – being amd64. If you try to run it on arm64-based architecture then you’ll either get error:

Or if you include an image like this in your Dockerfile then you’ll see something like this. It may build ok but when you are trying to add it or run a command whilst building it, you will be a similar error.

Docker does have a multi-architecture build process, that enables the process of using images to analyse the platform and pull down the appropriate image. Here is an example for golang.

Docker also has a buildx cli (here) that helps to build on multi-architectures. I hadn’t had a chance to look into this but it’s worth considering.

Learning: Reviewing most of the Infrastructure as an Image and Platform as an Image like programming languages already support this multi-architecture approach. But there maybe corner cases especially if you are building your own images or if ones you are pulling from other sources are building for one architecture.

If you want to try this out yourself or work on your own application, sign-up (here) for the free Oracle Cloud Trial. I’d be interested to hear your experiences and learn from others as well. Leave a comment or contact me at jason.lowe@oracle.com if you want to collaborate.

There’s plenty of work to make this more achievable for everyone. And hence sharing this knowledge is the reason why I’m writing this series – #XDaysOfArm. I’ll keep documenting as long as I keep learning.

Advertisement

Author: Jason Lowe

I am passionate about how organisations adopt IT quickly and sustainably to achieve a specific and measurable outcome. This thinking is supported through lean IT practices in operational support and project delivery, and adopting these practices with Oracle technologies by creating sustainable platforms. I'm also interested different perspectives and drivers - from enterprise to start-ups, academia to commercial to public sector, cost-sensitive (risk) to value-driven (reward) - all of which influences decisions that organisations make. I have a passion for community and have been called "a connector" - meeting new people that are trying to solve valuable and hard problems and connecting them with others that can validate and help realise their full potential. I've supported different organisations like TADHack and Hacking Health as a global organiser. I'm is a persistent blogger on medium.com and redthunder.blog and on LinkedIn - https://www.linkedin.com/in/lowe-jason #CommunityMatters #ItTakesAVillage

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: