Sign inSign up

jafee201153/arm-none-eabi-gcc

By jafee201153

•Updated about 2 months ago

Image
1

7.8K

jafee201153/arm-none-eabi-gcc repository overview

jafee201153/arm-none-eabi-gcc Docker Pulls Docker Stars

⁠arm-none-eabi-gcc (docker image)⁠

Let's build your project with arm-none-eabi-gcc in a docker container.

⁠Features

  • Based on ubuntu (supports 20.04, 22.04, and 24.04)
  • ubuntu:24.04 is used as the base image for the latest tag
  • git and make are pre-installed
  • Environment variables
    • TZ: Timezone, default is Asia/Taipei
    • USER_NAME: User name
    • USER_UID: User ID
    • USER_GID: Group ID

⁠Usage

# Running as root user
GCC_VERSION=latest \
HOST_TZ=$(cat /etc/timezone) \
docker run -it --rm \
    -e TZ=$HOST_TZ \
    -v "$(pwd)":/share \
    -w /share \
    jafee201153/arm-none-eabi-gcc:$GCC_VERSION /bin/bash
# Running as non-root user
GCC_VERSION=latest \
HOST_TZ=$(cat /etc/timezone) \
USER_NAME=$(whoami) \
USER_UID=$(id -u $USER_NAME) \
USER_GID=$(id -g $USER_NAME) \
docker run -it --rm \
    -e TZ=$HOST_TZ \
    -e USER_NAME=$USER_NAME \
    -e USER_UID=$USER_UID \
    -e USER_GID=$USER_GID \
    -v "$(pwd)":/home/$USER_NAME/share \
    -w /home/$USER_NAME/share \
    jafee201153/arm-none-eabi-gcc:$GCC_VERSION /bin/bash

⁠Example

# Build the project
GCC_VERSION=latest \
HOST_TZ=$(cat /etc/timezone) \
USER_NAME=$(whoami) \
USER_UID=$(id -u $USER_NAME) \
USER_GID=$(id -g $USER_NAME) \
docker run -it --rm \
    -e TZ=$HOST_TZ \
    -e USER_NAME=$USER_NAME \
    -e USER_UID=$USER_UID \
    -e USER_GID=$USER_GID \
    -v "$(pwd)":/home/$USER_NAME/share \
    -w /home/$USER_NAME/share \
    jafee201153/arm-none-eabi-gcc:$GCC_VERSION /bin/bash \
    -c "make clean && make all"

⁠Support

If you encounter any issues or have suggestions, please open an issue⁠ on our GitHub repository.

Tag summary

Content type

Image

Digest

sha256:a2826310a…

Size

366.4 MB

Last updated

about 2 months ago

docker pull jafee201153/arm-none-eabi-gcc