Skip to content

Commit

Permalink
Add 24.04 images (#37)
Browse files Browse the repository at this point in the history
No longer build gazebo images.
  • Loading branch information
PeterJohnson authored Dec 6, 2024
1 parent a33260f commit 0a6d8f0
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 14 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,51 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu-version:
- 22.04
- 24.04
steps:
- uses: actions/checkout@v4
- run: make update
- run: make build
- run: make UBUNTU=${{ matrix.ubuntu-version }} update
- run: make UBUNTU=${{ matrix.ubuntu-version }} build
- run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
make push
make UBUNTU=${{ matrix.ubuntu-version }} push
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
build-minimal:
name: Build Minimal
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu-version:
- 22.04
- 24.04
steps:
- uses: actions/checkout@v4
- run: make update
- run: make build/minimal-cross
- run: make UBUNTU=${{ matrix.ubuntu-version }} update
- run: make UBUNTU=${{ matrix.ubuntu-version }} build/minimal-cross
- run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
make push/minimal-cross
make UBUNTU=${{ matrix.ubuntu-version }} push/minimal-cross
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make save/minimal-cross
- run: make UBUNTU=${{ matrix.ubuntu-version }} save/minimal-cross
- uses: actions/upload-artifact@v4
with:
name: roborio
name: roborio-${{ matrix.ubuntu-version }}
path: roborio.tar.gz
retention-days: 1
- uses: actions/upload-artifact@v4
with:
name: raspbian
name: raspbian-${{ matrix.ubuntu-version }}
path: raspbian.tar.gz
retention-days: 1
- uses: actions/upload-artifact@v4
with:
name: aarch64
name: aarch64-${{ matrix.ubuntu-version }}
path: aarch64.tar.gz
retention-days: 1

Expand Down Expand Up @@ -73,7 +83,7 @@ jobs:
- name: Download image
uses: actions/download-artifact@v4
with:
name: ${{ matrix.type }}
name: ${{ matrix.type }}-22.04
path: img

- name: Load image
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ build: build/base build/cross build/opensdk
build/base:
cd ubuntu-base && \
docker build -t ${DOCKER_USER}/ubuntu-base:${UBUNTU} -f Dockerfile.${UBUNTU} .
cd gazebo-ubuntu && \
docker build -t ${DOCKER_USER}/gazebo-ubuntu:${UBUNTU} --build-arg UBUNTU=${UBUNTU} .

build/cross: build/base
cd roborio-cross-ubuntu && \
Expand Down Expand Up @@ -53,7 +51,6 @@ push: $(patsubst %,push/%, base cross opensdk)

push/base:
docker push ${DOCKER_USER}/ubuntu-base:${UBUNTU}
docker push ${DOCKER_USER}/gazebo-ubuntu:${UBUNTU}

push/cross: push/base
docker push ${DOCKER_USER}/roborio-cross-ubuntu:2025-${UBUNTU}
Expand Down
48 changes: 48 additions & 0 deletions ubuntu-base/Dockerfile.24.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM ubuntu:24.04

RUN apt-get update && apt-get install -y apt-transport-https \
ca-certificates \
gnupg \
software-properties-common \
wget && \
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null && \
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ noble main' && \
add-apt-repository ppa:git-core/ppa && \
apt-get update && apt-get install -y tzdata && apt-get install -y \
build-essential \
ca-certificates \
clang-format-14 \
cmake \
curl \
fakeroot \
g++ --no-install-recommends \
gcc \
gdb \
git \
java-common \
libc6-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libisl-dev \
libopencv-dev \
libvulkan-dev \
libx11-dev \
libxcursor-dev \
libxi-dev \
libxinerama-dev \
libxrandr-dev \
make \
mesa-common-dev \
openjdk-17-jdk \
python3-dev \
python3-pip \
python3-setuptools \
sudo \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*

ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64

WORKDIR /
17 changes: 17 additions & 0 deletions ubuntu-minimal-base/Dockerfile.24.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG UBUNTU=24.04
FROM ubuntu:${UBUNTU}

RUN set -xe; \
apt-get update; \
apt-get install -y tzdata; \
apt-get install -y \
ca-certificates \
curl \
git \
make \
unzip \
wget \
zip; \
rm -rf /var/lib/apt/lists/*

WORKDIR /

0 comments on commit 0a6d8f0

Please sign in to comment.