Skip to content

Commit

Permalink
Figure out Ubuntu codename in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Whitlock committed Jan 30, 2025
1 parent 49ed1fb commit 52826dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/ubuntu-gcc11-x64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RUN apt-get update \

# Cmake ppa
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
RUN export OS_SHORTNAME=$(lsb_release -a | grep -i "codename:" | grep -o "\w\+$")
RUN echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $OS_SHORTNAME main" | tee /etc/apt/sources.list.d/kitware.list >/dev/null

# gcc ppa
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
Expand Down

0 comments on commit 52826dc

Please sign in to comment.