Comments (4)
At the moment arm_container
is not supported in Cirrus CLI. It's a cloud-only feature and locally CLI is not trying to mach behavior you described.
What are you trying to achieve? Running Cirrus CLI in some other CI? Or just trying to reproduce some amd64
build locally?
from cirrus-cli.
Hey dude,
I would expect cirrus-cli to run container
tasks defined in a cirrus yaml to match cirrus ci
Note: Cirrus CLI only supports Linux container and macos_instance VMs at the moment. Linux containers support the Dockerfile as a CI environment feature.
so that if you run it on a mac m1 machine, the images are amd64 images, as they would be on cirrus-ci
I would like to provide users of our open source libraries to run the same image/conditions locally with Cirrus-CLI as per the behaviour on Cirrus CLI.
running this task on a mac m1
x64_container_task:
container:
image: ubuntu:latest
pre_req_script: uname -a
to me, imo, incorrectly returns aarch64
.
This is an issue as we install platform specific binaries into our images (we cross distribute binaries, and cirrus ci allows us the ability to test arm64 versions, we use GitHub actions for amd64)
from cirrus-cli.
At the moment arm_container is not supported in Cirrus CLI. It's a cloud-only feature and locally CLI is not trying to mach behavior you described.
I'd love to see arm_container supported via the platform flag, either via emulation on non arm64 platforms, or natively on arm64 platforms.
I have amd64 machines, so the only real use case I want if
- mac arm machine running a
container
task returnsx86_64
- arm machine running a
arm_container
task returnsaarch64
This is the workflow I am running in Cirrus which works nicely, but running the container tasks locally on the m1 return unexpected results
Here are the binaries we produce and want to test
https://github.com/YOU54F/pact-ruby-standalone/releases/tag/v2.2.1
:)
I have additional use cases for personal stuff, but this is mainly to unify behaviour between cirrus cli and cirrus ci, so a new user being introduced to both, doesn't get unexpected behaviour.
I've been drafting a post about our CI systems, and mentioned Cirrus CI as our default for arm64, but had to mention this gotcha when running locally
from cirrus-cli.
Not sure if you are familiar with the act project?
They cover this case with the following, but only as GitHub Actions doesn't support ARM64 processors, this is where both cirrus ci and cirrus cli shine (you can cover both cases, which makes is incredibly appealing for local and remote cross platform testing :) )
WARN ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act.
If so, try running it with '--container-architecture linux/amd64'.
from cirrus-cli.
Related Issues (20)
- Persistent workers: support Dockerfile HOT 2
- Allow to return string from Starlark
- Include architecture into Dockerfile fingerprint
- [starlark] Allow to use fs to read files from another repository
- [tart] use folder sharing for local runs HOT 2
- Support persistent worker registration to several endpoints
- Check if need to cleanup on workers startup
- failed to upload agent via SFTP HOT 1
- Local run does nothing? HOT 5
- Loading of local modules on test execution
- Parser: emit warnings on non-existent YAML configuration keys HOT 1
- "depends on task ... but their only_if conditions are different" warning is too aggressive HOT 2
- Sentry Integration HOT 1
- [Question] Can I run the task with macos_instance VMs but run on the github runner ubuntu-latest? HOT 1
- Use a dynamic image in cirrus.yaml HOT 1
- Option to use a temp mounted directory for Tart isolation
- Release is missing some assests HOT 1
- How to use encrypted vars on local cirrus execution HOT 5
- Error starting command with any configuration. HOT 9
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 cirrus-cli.