Files

42 lines
1.5 KiB
Docker
Raw Permalink Normal View History

2021-05-25 17:10:56 +02:00
FROM opensuse/leap
2020-06-08 02:53:13 +02:00
2026-02-26 20:37:45 +01:00
ENV LANG=C.UTF-8
2026-02-27 00:01:14 +01:00
2026-03-23 22:36:39 +01:00
RUN zypper --non-interactive install --no-recommends shadow sudo git patterns-devel-base-devel_basis cmake gcc15 gcc15-c++ readline-devel libbz2-devel liblz4-devel zlib-devel bluez-devel python3-devel libopenssl-devel gd-devel
2026-02-27 00:01:14 +01:00
RUN zypper --non-interactive install ocl-icd-devel
ARG SKIPQT=false
RUN if [ "${SKIPQT}" = "false" ]; then \
zypper --non-interactive install qt6-core-devel qt6-widgets-devel; \
fi
2020-06-08 02:53:13 +02:00
2024-09-10 01:16:55 +02:00
RUN zypper addrepo https://download.opensuse.org/repositories/home:wkazubski/15.6/home:wkazubski.repo && \
zypper --gpg-auto-import-keys refresh && \
2026-02-07 01:58:06 +01:00
zypper --non-interactive install cross-arm-none-eabi-gcc15 cross-arm-none-eabi-newlib
2026-02-27 00:01:14 +01:00
# Set GCC 15 as default, else it's GCC 7 ?!
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-15 100 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-15 100 && \
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-15 100 && \
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-15 100
2022-10-29 00:30:08 +02:00
# uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
2020-06-08 02:53:13 +02:00
# Create rrg user
RUN useradd -ms /bin/bash rrg
RUN passwd -d rrg
ARG UART_GID
# dialout group may already exist on another numeric ID than on host
RUN if [ -n "${UART_GID}" ]; then \
groupadd -g ${UART_GID} mydialout || true; \
usermod -aG ${UART_GID} rrg; \
fi
2020-06-08 02:53:13 +02:00
RUN printf 'rrg ALL=(ALL) NOPASSWD: ALL\n' | tee -a /etc/sudoers
USER rrg
WORKDIR "/home/rrg"
CMD ["/bin/bash"]