-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize circleci build times (#2781)
* Optimize Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Faster checkout Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Split building of extension to speed build workflow up Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Cache cargo packages Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Fix ASAN build Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Move web tests from build_packages to build Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Fix some tests Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> * Increase test_c2php timeout Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com> --------- Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
- Loading branch information
Showing
11 changed files
with
901 additions
and
523 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM cimg/ruby:3.3.4 AS base | ||
|
||
USER root | ||
WORKDIR /home/circleci | ||
|
||
RUN apt-get update && apt-get -y install vim less build-essential rpm lintian jq | ||
|
||
# Need at least tar 1.35 to work around concurrency problems with atime and inode count checks | ||
# See also: https://stackoverflow.com/a/77765876 | ||
FROM base as compile-tar | ||
RUN curl -LO https://ftp.gnu.org/gnu/tar/tar-1.35.tar.gz | ||
RUN tar xfz tar-1.35.tar.gz | ||
RUN (cd tar-1.35 && FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr && make install) | ||
|
||
FROM base as final | ||
ADD fpm_apk_pax_header.patch /tmp | ||
RUN sudo gem install fpm -v 1.15.1 | ||
RUN (cd /usr/local/lib/ruby/gems/3.3.0/gems/fpm-1.15.1; patch -p 1 < /tmp/fpm_apk_pax_header.patch ) && rm -f /tmp/fpm_apk_pax_header.patch | ||
|
||
COPY --from=compile-tar /usr/bin/tar /usr/bin/tar | ||
|
||
USER circleci | ||
ENTRYPOINT [ "bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Build for x86_64 | ||
|
||
``` | ||
docker buildx build --platform=linux/amd64 -t datadog/dd-trace-ci:php_fpm_packaging --push . | ||
``` |
29 changes: 29 additions & 0 deletions
29
dockerfiles/packaging/fpm_packaging/fpm_apk_pax_header.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 18221cceb06860395120b56cca7e270539b74073 Mon Sep 17 00:00:00 2001 | ||
From: Pawel Chojnacki <pawel.chcki@gmail.com> | ||
Date: Wed, 30 Jan 2019 16:35:50 +0100 | ||
Subject: [PATCH] Add guard against modifying LongLink entry and leave entries | ||
above 80 chars alone | ||
|
||
--- | ||
lib/fpm/package/apk.rb | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/lib/fpm/package/apk.rb b/lib/fpm/package/apk.rb | ||
index dd69067..bc9ff50 100644 | ||
--- a/lib/fpm/package/apk.rb | ||
+++ b/lib/fpm/package/apk.rb | ||
@@ -435,6 +435,12 @@ class FPM::Package::APK< FPM::Package | ||
# This takes an unchanged directory name and "paxifies" it. | ||
def add_paxstring(ret) | ||
|
||
+ # Check if this is special Tar filename to mark that the next entry file name will be longer than 100 characters. | ||
+ return ret if ret.match? "././@LongLink" | ||
+ | ||
+ # adding PaxHeaders prefix to entries over 80 characters is impossible without creating extra entries | ||
+ return ret if ret.length > 80 | ||
+ | ||
pax_slash = ret.rindex('/') | ||
if(pax_slash == nil) | ||
pax_slash = 0 | ||
-- | ||
2.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.