microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
710 stars 586 forks source link

Docker image `pext/yotta:gcc5` not available in Docker Hub #5313

Open microbit-carlos opened 1 year ago

microbit-carlos commented 1 year ago

So we are unable to fetch this image for local or CI builds:

https://github.com/microsoft/pxt-microbit/blob/58aff6d05af676691536d028dae29256779cecd8/pxtarget.json#L171-L178

microbit-carlos commented 1 year ago

@eanders-ms can this image be pushed to DockerHub, or is there any other public registry that could be used in the meantime?

JohnVidler commented 1 year ago

As a possible alternative registry - GitHub itself can be used perhaps?

microbit-carlos commented 1 year ago

@abchatra @eanders-ms could we get the image pushed to dockerhub or more info on the version of the tools installed?

We are looking into the tooling in general and knowing the version of thing like arm-none-eabi-gcc and cmake is important to ensure we don't accidentally make changes that don't work in the older versions from the MakeCode docker image.

abchatra commented 12 months ago

@aznhassan ?

microbit-carlos commented 11 months ago

Any updates on this? We had to turn off some of the CODAL CI running MakeCode test builds because pxt buildtarget cannot access this docker image (we can use the PXT_NODOCKER option, but we want to make sure builds in the docker image don't fail).

rafaeliga commented 7 months ago

Im trying to build/run the project on my local mac and got this error... Its expected? Is there another image that I can use?

abchatra commented 7 months ago

@eanders-ms can we push the images to docker?

eanders-ms commented 7 months ago

Sorry for the slow response to this! I've pushed the image to docker hub, but the local build is giving me errors:

    /usr/bin/arm-none-eabi-gcc

  is not a full path to an existing compiler tool.

Troubleshooting it now.

microbit-carlos commented 7 months ago

Looking at the image fro Docker hub (docker run -it --rm pext/yotta:gcc5), it looks like in this image arm-none-eabi-gcc is installed in a different directory. Does that cause any issues when trying to use MakeCode locally? Or does it just expect the arm-none-eabi-gcc executable to be in the PATH?

root@e710c3ade4d8:/# /usr/bin/arm-none-eabi-gcc --version
bash: /usr/bin/arm-none-eabi-gcc: No such file or directory
root@e710c3ade4d8:/# arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@e710c3ade4d8:/# which arm-none-eabi-gcc
/opt/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc
microbit-carlos commented 5 months ago

Sorry for the slow response to this! I've pushed the image to docker hub, but the local build is giving me errors:

    /usr/bin/arm-none-eabi-gcc

  is not a full path to an existing compiler tool.

Troubleshooting it now.

@eanders-ms is this still an issue building for you?

abchatra commented 1 month ago

@riknoll you are addressing this right?

riknoll commented 1 month ago

correct, this is one of the images that will be published to the microsoft container registry