Skip to content

Commit

Permalink
Merge pull request #37 from openziti/switch-source-bionic-focal
Browse files Browse the repository at this point in the history
Switch source bionic focal
  • Loading branch information
qrkourier authored Jul 3, 2024
2 parents b4b25c8 + 7f8d80a commit 916d2f3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vcpkg-bumper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Find latest vcpkg version
id: latest_vcpkg
Expand Down
22 changes: 9 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
# pin the cmake version to ensure repeatable builds
ARG CMAKE_VERSION="3.26.3"
ARG VCPKG_VERSION="2024.03.25"
# patch releases are automatically accepted by pip install ninja~=1.11.0
ARG NINJA_MINOR_VERSION="1.11.0"

# Ubuntu Bionic 18.04 LTS has GLIBC 2.27
FROM ubuntu:bionic
# Ubuntu Bionic 20.04 LTS has GLIBC 2.31
FROM ubuntu:focal

ARG CMAKE_VERSION
ARG VCPKG_VERSION
ARG NINJA_MINOR_VERSION
ARG XDG_CONFIG_HOME
ARG DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -42,13 +39,18 @@ RUN apt-get update \
doxygen \
expect \
flex \
g++-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu \
gcc-arm-linux-gnueabihf \
gcovr \
git \
gpg \
graphviz \
libcap-dev \
libssl-dev \
libsystemd-dev \
libtool \
ninja-build \
pkg-config \
python3 \
python3-pip \
Expand All @@ -62,19 +64,13 @@ RUN apt-get update \
&& apt-get clean autoclean \
&& rm -fr /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*

# provides patch releases for 1.11 in /usr/local/bin/ninja
RUN python3 -m pip install ninja~=${NINJA_MINOR_VERSION}

RUN curl -sSLf https://apt.llvm.org/llvm-snapshot.gpg.key \
| gpg --dearmor --output /usr/share/keyrings/llvm-snapshot.gpg \
&& chmod +r /usr/share/keyrings/llvm-snapshot.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-17 main" > /etc/apt/sources.list.d/llvm-snapshot.list
&& echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot.gpg] http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main" > /etc/apt/sources.list.d/llvm-snapshot.list

# when we migrate this builder to focal or newer, just remove this ppa and the rest should work
RUN add-apt-repository ppa:git-core/ppa \
&& apt-get update \
RUN apt-get update \
&& apt-get --yes --quiet --no-install-recommends install \
git \
clang-17 \
clang-tidy-17 \
&& apt-get --yes autoremove \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ to build the project.

```bash
# optionally substitute podman or nerdctl for docker
docker build ./docker-image/ --tag ziti-builder-test
docker build . --tag ziti-builder-test
```

### Run the local test image to cross-compile a Ziti project
Expand Down
14 changes: 7 additions & 7 deletions crossbuild.list
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic-updates main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic-updates universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic-updates multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates main restricted
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates universe
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-updates multiverse
deb [arch=armhf,arm64] http://ports.ubuntu.com/ focal-backports main restricted universe multiverse

0 comments on commit 916d2f3

Please sign in to comment.