atsign-company / at_dockerfiles Goto Github PK
View Code? Open in Web Editor NEWDockerfiles to create build, run and test images for Dart applications across multiple architectures.
License: Apache License 2.0
Dockerfiles to create build, run and test images for Dart applications across multiple architectures.
License: Apache License 2.0
Describe the solution you'd like
Now that the official Dart image has support for Arm we no longer need our own build image.
The entire at_buildimage Dockerfile can now be replaced by FROM dart
and at_dartshowplatform can be modified:
-FROM atsigncompany/buildimage:$IMAGE_TAG AS build
+FROM dart AS build
Describe the bug
Since introducing branch protection on main GitHub actions are no longer able to push to that branch
Expected behavior
Need to automate raising a PR instead
Hi,
I am trying to build docker images on an amd64 host where the images built are for arm64 targets (raspberry pi) and so I have come across this github project.
With my current configs, although the build/push to docker process works, the running of the docker image on an arm64 target itself fails.
The Dockerfile for the project I have written as follows:
FROM atsigncompany/buildimage:automated AS build
WORKDIR /app
COPY pubspec.yaml .
COPY lib lib/
COPY bin/main.dart bin/
RUN dart pub get
RUN dart compile exe /app/bin/main.dart -o /app/main.exe
FROM atsigncompany/runimage
COPY --from=build /runtime/ /
COPY --from=0 /app/main.exe /app/main.exe
ENTRYPOINT ["/app/main.exe"]
And the docker build and push part from an amd64 host to a docker registry I am doing like this:
$ docker build . -t registry:50005/projectGroup/projectName:1.0.0-BUILD-x-arm
$ docker push registry:50005/projectGroup/projectName:1.0.0-BUILD-x-arm
But then, in an arm64 target, when I run:
$ docker run -it registry:50005/projectGroup/projectName:1.0.0-BUILD-x-arm
I get:
Status: Downloaded newer image for registry:50005/projectGroup/projectName:1.0.0-BUILD-x-arm
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:219: exec user process caused: exec format error
What am I missing in order to successfully build an arm64 image for arm64 targets from within an amd64 host? Do I need to specify that the target is arm64 somewhere?
I should point out that docker itself is very new to me so not familiar with its ins and outs...
Thanks in advance,
PM
This issue was automatically created by Allstar.
Security Policy Violation
No protection found for branch main
This issue will auto resolve when the policy is in compliance.
Issue created by Allstar. See https://github.com/ossf/allstar/ for more information. For questions specific to the repository, please contact the owner or maintainer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.