-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support APK with FPM #92
Conversation
* upstream/master: packaging: debian package installation with post-install (elastic#98) DOCS: create DEVELOPMENT.md docs (elastic#95) [CI] add build badge status (elastic#87) Docs: add help make goal and enhance the docs (elastic#93)
* upstream/master: [packaging] support centOS smoke testing (elastic#99)
* upstream/master: Packaging tar with installing tests (elastic#103) Handle "service_version" as well Handle 'too long' case as well Fix "service_name option has no effect" bug [CI] distribution binaries stored in the PHP version folder (elastic#101) [CI] use packer cache and normalise docker images (elastic#102)
* upstream/master: Add ENVIRONMENT configuration option Change composer installation in docker (elastic#128) Add tests/APM_Agents_shared directory [packaging] support multiple PHP API (elastic#121) [Packaging] restore php.ini if something bad happened (elastic#116) [CI] Cosmetic changes in the stage names (elastic#115)
.ci/generate-for-package.sh
Outdated
@@ -6,7 +6,7 @@ HYPHEN="-" | |||
MODULES_DIR=/app/src/ext/modules | |||
NAME=elastic_apm | |||
## Prepare context where to copy the previous generated so files | |||
GENERATED=$(mktemp -d /tmp/dir-XXXX) | |||
GENERATED=$(mktemp -d /tmp/dirXXXXXX) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forced to use this template to support alpine
unstash 'generate-for-package-7.2-Dockerfile' | ||
unstash 'generate-for-package-7.3-Dockerfile' | ||
unstash 'generate-for-package-7.4-Dockerfile' | ||
unstash 'generate-for-package-7.2-Dockerfile.alpine' | ||
unstash 'generate-for-package-7.3-Dockerfile.alpine' | ||
unstash 'generate-for-package-7.4-Dockerfile.alpine' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not the smartest approach but it's native to the CI. So we might need to find a better way in some follow ups
.ci/Makefile
Outdated
DOCKERFILE ?= Dockerfile | ||
SUFFIX := | ||
ifeq ($(DOCKERFILE), Dockerfile.alpine) | ||
SUFFIX := alpine | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will help to either use the default php-fpm docker image or the alpine
one as long as the DOCKERFILE
env variable is set
@@ -0,0 +1,42 @@ | |||
#!/usr/bin/env sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored to be in a script then the so files filtering can happen easily
## If alpine then add another suffix | ||
if grep -q -i alpine /etc/os-release; then | ||
SUFFIX=-alpine | ||
fi | ||
echo "${EXTENSION_DIR}/elastic_apm-${PHP_API}${SUFFIX}.so" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could potentially skip this particular implementation if the tar.gz distribution does not contain the alpine so files.
…utomation-tag-based * upstream/master: Support APK with FPM (elastic#92) Add ENVIRONMENT configuration option Change composer installation in docker (elastic#128) Add tests/APM_Agents_shared directory
Enable alpine packaging support
What
fpm
issues for packaging alpine has been solved with the patch approach. [apk] "BAD archive" error when installing .apk built using fpm jordansissel/fpm#1227-alpine
prefix to support the packaging for tarballs.Issues
Closes #73
Test