Skip to content

Commit

Permalink
Add development container
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <travis.collins@analog.com>
  • Loading branch information
tfcollins committed Oct 20, 2023
1 parent de572dc commit 04cb4c3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
"pyadi-iio-python-3_9",
"pyadi-iio-python-3_10",
"pyadi-iio-python-3_11",
"dev",
]
include:
- project: "hdl"
Expand Down Expand Up @@ -87,6 +88,9 @@ jobs:
- project: "pyadi-iio-python-3_11"
DOCKERFILE: "pyadi-iio/Dockerfile-python-3_11"
TAG_ROOT: "pyadi-iio-python-3_11-ci"
- project: "dev"
DOCKERFILE: "Dockerfile-dev"
TAG_ROOT: "dev"

steps:
- name: Checkout
Expand Down
45 changes: 45 additions & 0 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is a developer designed container

FROM ubuntu:22.04

LABEL MAINTAINER "Travis Collins <travis.collins@analog.com>"

# Core dependencies
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt update
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y iputils-ping sudo net-tools iproute2
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y vim
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libpng-dev libfreetype6-dev libblas-dev liblapack-dev gfortran build-essential xorg
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y openjdk-8-jre openjdk-8-jdk libgtk2.0-0 libxss1 libxt6 zip unzip curl wget tar git xvfb

# For kernel dev
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y fakeroot libncurses5-dev libncurses5 libssl-dev ccache dfu-util u-boot-tools device-tree-compiler
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libssl-dev mtools bc python3 cpio zip unzip rsync file wget

# For libiio
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y cmake make build-essential libxml2-dev bison flex libcdk5-dev cmake
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libaio-dev libusb-1.0-0-dev libserialport-dev
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libavahi-common-dev libavahi-client-dev

# For python
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y python3-pip bpython
RUN pip3 install --upgrade pip
RUN pip3 install setuptools wheel numpy scipy matplotlib jupyterlab pandas

# For HDL
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libicu70 libicu-dev screen
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg --add-architecture i386
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y lib32stdc++6

# ZSH
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y zsh fonts-powerline zsh-syntax-highlighting zsh-autosuggestions zsh-theme-powerlevel9k
RUN chsh -s $(which zsh)

# Set up locale
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt install -y locales
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN locale-gen en_US.UTF-8

# Cleanup
RUN apt-get clean

0 comments on commit 04cb4c3

Please sign in to comment.