Skip to content

Instantly share code, notes, and snippets.

@Josua-SR
Created April 2, 2020 12:30
Show Gist options
  • Select an option

  • Save Josua-SR/5667c005ca668e0c2a442401ba49ff55 to your computer and use it in GitHub Desktop.

Select an option

Save Josua-SR/5667c005ca668e0c2a442401ba49ff55 to your computer and use it in GitHub Desktop.
# Debian 11
FROM debian:bullseye
RUN apt-get update && apt-get install -y curl && apt-get clean
# apt
COPY sources.list /etc/apt/sources.list
COPY sources.bsp-imx8 /etc/apt/sources.list.d/bsp-imx8.list
RUN curl -o keyring.deb https://repo.solid-build.xyz/debian/bullseye/bsp-any/all/solidrun-keyring_2020.01.09_all.deb && dpkg -i keyring.deb
# updates
RUN apt-get update && apt-get upgrade -y && apt-get clean
RUN apt-get update && apt-get install -y bsp-solidrun-imx8 && apt-get clean
# install gpu userspace (framebuffer target)
RUN apt-get update && apt-get -y install imx-gpu-viv imx-gpu-viv-dev imx-gpu-viv-fb imx-gpu-viv-fb-dev eglinfo-fb
# install demo applications
RUN apt-get update && apt-get -y install imx-gpu-viv-demos
# interactive shell as entrypoint
ENTRYPOINT ["/bin/bash", "--login"]
## Usage:
# docker build -f Dockerfile.sr-imx8-gpu -t imx8-gpu-demo .
# docker run --privileged --rm -it imx8-gpu-demo
# eglinfo_fb
# /opt/viv_samples/cl11/UnitTest/clinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment