Skip to content
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

Error when running cmake #5661

Closed
davidacb opened this issue Jun 30, 2022 · 3 comments
Closed

Error when running cmake #5661

davidacb opened this issue Jun 30, 2022 · 3 comments
Labels
docs issue Documentation Issue Stale

Comments

@davidacb
Copy link

Bug Report

Describe the bug
When doing a docker build if fails when doing:

RUN cmake -DFLB_RELEASE=On \
          -DFLB_TRACE=Off \
          -DFLB_JEMALLOC=On \
          -DFLB_TLS=On \
          -DFLB_SHARED_LIB=Off \
          -DFLB_EXAMPLES=Off \
          -DFLB_HTTP_SERVER=On \
          -DFLB_IN_EXEC=Off \
          -DFLB_IN_SYSTEMD=On \
          -DFLB_OUT_KAFKA=On \
          -DFLB_OUT_PGSQL=On \
          -DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
          ..
  • Steps to reproduce the problem:
    docker build -t fluent/fluent-bit --target=production .

Expected behavior
It should build a local docker image in my computer

Screenshots
image
This is a screenshot of the error itself

Your Environment

  • Version used: docker version: Docker version 20.10.14, build a224086
    +* Environment name and version (e.g. Kubernetes? What version?): Running locally on my computer
  • Operating System and version: macOS Monterey Version 12.4

Additional context
I am trying to build a docker build to test out a branch with some changes. It currently has a PR opened. #5564

@patrick-stephens
Copy link
Contributor

patrick-stephens commented Jul 1, 2022

You need to run with a context that is the base of the repo and not from the dockerfiles directory.

It looks like the docs need an update to cover it, I'd raised a PR for the Windows side but feel free to raise one to cover the rest.
#5664

Have a look at the workflow that builds them:

file: ./dockerfiles/Dockerfile

It should be along these lines:

git checkout https://github.com/fluent/fluent-bit.git
cd fluent-bit
docker build --target=production -f ./dockerfiles/Dockerfile .

You'll see your PR actually triggers a container build to test the legacy CentOS 7 builds: https://github.com/fluent/fluent-bit/runs/6943536877?check_suite_focus=true

This is run here: https://github.com/fluent/fluent-bit/blob/master/.github/workflows/pr-image-tests.yaml

@patrick-stephens patrick-stephens added docs issue Documentation Issue and removed status: waiting-for-triage labels Jul 1, 2022
@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

@github-actions github-actions bot added the Stale label Sep 30, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2022

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs issue Documentation Issue Stale
Projects
None yet
Development

No branches or pull requests

2 participants