Skip to content

Commit

Permalink
temp: valgrind and gdb
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Oct 25, 2023
1 parent 2bade51 commit d7b35c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/syslog-ng-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ on:
type: string

env:
DOCKER_IMAGE_NAME: ghcr.io/axoflow/axosyslog
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
DOCKER_IMAGE_NAME: ghcr.io/alltilla/axosyslog
PLATFORMS: linux/amd64

jobs:
docker:
name: syslog-ng Docker
if: github.repository_owner == 'axoflow'
if: github.repository_owner == 'alltilla'
runs-on: ubuntu-latest
steps:
- name: Checkout source
Expand Down
4 changes: 3 additions & 1 deletion syslog-ng/alpine.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ COPY --from=apkbuilder /home/builder/packages/ /
COPY --from=apkbuilder /home/builder/.abuild/*.pub /etc/apk/keys/

RUN apk add --repository /axoflow -U --upgrade --no-cache \
gdb \
valgrind \
jemalloc \
libdbi-drivers \
syslog-ng \
Expand Down Expand Up @@ -79,4 +81,4 @@ EXPOSE 6514/tcp

HEALTHCHECK --interval=2m --timeout=5s --start-period=30s CMD /usr/sbin/syslog-ng-ctl healthcheck --timeout 5
ENV LD_PRELOAD /usr/lib/libjemalloc.so.2
ENTRYPOINT ["/usr/sbin/syslog-ng", "-F"]
ENTRYPOINT ["valgrind", "--leak-check=full", "--trace-children=yes", "/usr/sbin/syslog-ng", "-F"]
2 changes: 1 addition & 1 deletion syslog-ng/apkbuild/axoflow/syslog-ng/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pkgdesc="Next generation logging daemon"
url="https://www.syslog-ng.com/products/open-source-log-management/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # unit tests require https://github.com/Snaipe/Criterion with deps
options="!check !strip" # unit tests require https://github.com/Snaipe/Criterion with deps
makedepends="
bison
bpftool
Expand Down

0 comments on commit d7b35c3

Please sign in to comment.