Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- ubuntu-20
- ubuntu-22
- ubuntu-24
- ubuntu-26
- debian-11
- debian-12
- debian-13
Expand Down
6 changes: 3 additions & 3 deletions build-in-container-inner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ install_mission_portal_deps() (

if [ -f "$BASEDIR/mission-portal/composer.json" ]; then
echo "Installing Mission Portal PHP dependencies..."
(cd "$BASEDIR/mission-portal" && php /usr/bin/composer.phar install --no-dev --ignore-platform-reqs --prefer-dist)
(cd "$BASEDIR/mission-portal" && composer install --no-dev --ignore-platform-reqs --prefer-dist)
fi

if [ -f "$BASEDIR/nova/api/http/composer.json" ]; then
echo "Installing Nova API PHP dependencies..."
(cd "$BASEDIR/nova/api/http" && php /usr/bin/composer.phar install --no-dev --ignore-platform-reqs --prefer-dist)
(cd "$BASEDIR/nova/api/http" && composer install --no-dev --ignore-platform-reqs --prefer-dist)
fi

if [ -f "$BASEDIR/mission-portal/public/themes/default/bootstrap/cfengine_theme.less" ]; then
Expand All @@ -84,7 +84,7 @@ install_mission_portal_deps() (

if [ -f "$BASEDIR/mission-portal/ldap/composer.json" ]; then
echo "Installing LDAP API PHP dependencies..."
(cd "$BASEDIR/mission-portal/ldap" && php /usr/bin/composer.phar install --no-dev --ignore-platform-reqs --prefer-dist)
(cd "$BASEDIR/mission-portal/ldap" && composer install --no-dev --ignore-platform-reqs --prefer-dist)
fi

# Composer falls back to git clone when GitHub's anonymous zipball
Expand Down
Empty file modified ci/linux-install-composer.sh
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion container/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs php-cli php-zip \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g less
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer.phar
# Checksum-verified, version-pinned Composer (shared with the build hosts).
COPY --from=ci linux-install-composer.sh /tmp/
RUN /tmp/linux-install-composer.sh

# Remove system dev libraries that conflict with bundled deps
# (from cfengine-build-host-setup.cf lines 53-59)
Expand Down
4 changes: 3 additions & 1 deletion container/Dockerfile.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ RUN if [ -n "${PHP_MODULE_STREAM}" ]; then \
&& (dnf install -y php-json || true) \
&& (dnf install -y php-zip || dnf install -y php-pecl-zip || true) \
&& dnf clean all
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer.phar
# Checksum-verified, version-pinned Composer (shared with the build hosts).
COPY --from=ci linux-install-composer.sh /tmp/
RUN /tmp/linux-install-composer.sh

# Rust + protobuf for the cargo-based leech2 dep (prebuilt tarballs, shared with Debian).
COPY --from=ci linux-install-protobuf.sh linux-install-rust.sh /tmp/
Expand Down
7 changes: 7 additions & 0 deletions platforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"base_image_sha": "sha256:4fbb8e6a8395de5a7550b33509421a2bafbc0aab6c06ba2cef9ebffbc7092d90",
"dockerfile": "Dockerfile.debian"
},
"ubuntu-26": {
"image_name": "cfengine-builder-ubuntu-26",
"image_version": "latest",
"base_image": "ubuntu:26.04",
"base_image_sha": "sha256:3131b4cc82a783df6c9df078f86e01819a13594b865c2cad47bd1bca2b7063bb",
"dockerfile": "Dockerfile.debian"
},
"debian-11": {
"image_name": "cfengine-builder-debian-11",
"image_version": "20260721T102234Z",
Expand Down
Loading