Tevfik Kadıoğlu tevfik

embedded/riscv (latest)

Published 2026-01-25 20:41:48 +03:00 by tevfik

Installation

docker pull git.bezg.in/tevfik/embedded/riscv:latest
sha256:c072d6c626f6082a0e922b6a2e1b68c45f07ae5b2bd22fd5b8d67e99765a078b

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:b499000226bd9a7c562ffa8eeb86e2d170f2a563310db6c2d79562ab53e5cb6e in /
CMD ["/bin/bash"]
LABEL maintainer=Embedded Development
LABEL description=RISC-V development environment with GCC and debugging tools
LABEL version=1.0
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
RUN /bin/sh -c apt-get update && apt-get install -y build-essential cmake ninja-build git git-lfs wget curl python3 python3-pip libusb-1.0-0-dev libhidapi-dev libjaylink-dev libtool pkg-config autoconf automake texinfo libftdi-dev libjim-dev gdb-multiarch screen minicom ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit
ARG RISCV_TOOLCHAIN_VERSION=13.2.0-2
RUN |1 RISCV_TOOLCHAIN_VERSION=13.2.0-2 /bin/sh -c cd /tmp && wget -q https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v${RISCV_TOOLCHAIN_VERSION}/xpack-riscv-none-elf-gcc-${RISCV_TOOLCHAIN_VERSION}-linux-x64.tar.gz # buildkit
RUN |1 RISCV_TOOLCHAIN_VERSION=13.2.0-2 /bin/sh -c cd /tmp && tar -xf xpack-riscv-none-elf-gcc-${RISCV_TOOLCHAIN_VERSION}-linux-x64.tar.gz -C /opt && rm -f xpack-riscv-none-elf-gcc-${RISCV_TOOLCHAIN_VERSION}-linux-x64.tar.gz && ln -s /opt/xpack-riscv-none-elf-gcc-${RISCV_TOOLCHAIN_VERSION} /opt/riscv-toolchain # buildkit
ENV PATH=/opt/riscv-toolchain/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN |1 RISCV_TOOLCHAIN_VERSION=13.2.0-2 /bin/sh -c git clone --depth 1 https://github.com/openocd-org/openocd.git /tmp/openocd # buildkit
RUN |1 RISCV_TOOLCHAIN_VERSION=13.2.0-2 /bin/sh -c cd /tmp/openocd && ./bootstrap && ./configure --enable-ftdi --enable-cmsis-dap --enable-jlink --prefix=/usr/local && make -j$(nproc) && make install && cd / && rm -rf /tmp/openocd # buildkit
RUN |1 RISCV_TOOLCHAIN_VERSION=13.2.0-2 /bin/sh -c mkdir -p /etc/udev/rules.d && echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", MODE="0666"' > /etc/udev/rules.d/49-ftdi.rules && echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", MODE="0666"' > /etc/udev/rules.d/49-wch.rules # buildkit
ARG USERNAME=developer
ARG USER_UID=1000
ARG USER_GID=1000
RUN |4 RISCV_TOOLCHAIN_VERSION=13.2.0-2 USERNAME=developer USER_UID=1000 USER_GID=1000 /bin/sh -c groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && usermod -aG dialout,plugdev $USERNAME # buildkit
WORKDIR /workspace
USER developer
RUN |4 RISCV_TOOLCHAIN_VERSION=13.2.0-2 USERNAME=developer USER_UID=1000 USER_GID=1000 /bin/sh -c riscv-none-elf-gcc --version && openocd --version && echo "RISC-V Development Container Ready!" # buildkit
CMD ["/bin/bash"]

Labels

Key Value
description RISC-V development environment with GCC and debugging tools
maintainer Embedded Development
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 22.04
version 1.0
Details
Container
2026-01-25 20:41:48 +03:00
0
OCI / Docker
linux/amd64
1.2 GiB
Versions (1) View all
latest 2026-01-25