GithubHelp home page GithubHelp logo

atsign-company / at_dockerfiles Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 386 KB

Dockerfiles to create build, run and test images for Dart applications across multiple architectures.

License: Apache License 2.0

Dockerfile 81.42% Dart 18.58%
arm arm64 armv7 dart dockerfiles x64 x86-64

at_dockerfiles's People

Contributors

cpswan avatar dependabot[bot] avatar github-actions[bot] avatar gkc avatar mend-for-github-com[bot] avatar xavierchanth avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

abasty cpswan

at_dockerfiles's Issues

Deprecate at_buildimage

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

How to Use for arm64 Targets

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.