You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update FLB_VERSION to allow overriding default branch or tag (#949)
* Update FLB_VERSION to allow overriding default branch or tag
- Change FLB_VERSION from ENV to ARG
- Set default value in Makefile 1.9.10
- Remove FLB_TARBALL as it may not make sense (nor was used to pull
source archives)
- Reworked /tmp/fluent-bit as source directory and updated a few
versioned directories
- Update README.md, debugging.md to reflect changes to FLB_VERSION
- Add local build steps for using overrides (repository/version)
The best option, which is most likely to catch any leak or segfault is to create a fresh build of the image using the `make debug-valgrind` target. This will create a fresh build with debug mode and valgrind support enabled, which gives the highest chance that Valgrind will be able to produce useful diagnostic information about the issue.
779
779
780
780
1. Check out the git tag for the version that saw the problem
781
-
2. Make sure the `FLB_VERSION` at the top of the `scripts/dockerfiles/Dockerfile.build` is set to the same version as the main Dockerfile for that tag.
781
+
2. Make sure the `FLB_VERSION` at the top of the `Makefile` is set to the same version as the main Dockerfile for that tag.
782
782
3. Build this dockerfile with the `make debug-valgrind` target. The image will be tagged with the `amazon/aws-for-fluent-bit:debug-valgrind` tag.
783
783
784
784
##### Other Options: Other Debug Builds
@@ -1233,7 +1233,7 @@ When you recieve a SIGSEGV/crash report from a customer, perform the following s
1233
1233
1234
1234
#### 1. Build and distribute a core dump S3 uploader image
1235
1235
1236
-
For debug images, we update the `debug-latest` tag and add a tag as `debug-<Version>`. You can find them in [Docker Hub](https://hub.docker.com/r/amazon/aws-for-fluent-bit), [Amazon ECR Public Gallery](https://gallery.ecr.aws/aws-observability/aws-for-fluent-bit) and Amazon ECR. If you need a customized image build for the specific version/case you are testing. Make sure the `ENV FLB_VERSION` is set to the right version in the `Dockerfile.build` and make sure the `AWS_FLB_CHERRY_PICKS` file has the right contents for the release you are testing.
1236
+
For debug images, we update the `debug-latest` tag and add a tag as `debug-<Version>`. You can find them in [Docker Hub](https://hub.docker.com/r/amazon/aws-for-fluent-bit), [Amazon ECR Public Gallery](https://gallery.ecr.aws/aws-observability/aws-for-fluent-bit) and Amazon ECR. If you need a customized image build for the specific version/case you are testing. Make sure `FLB_VERSION` is set to the right version in `Makefile` and make sure the `AWS_FLB_CHERRY_PICKS` file has the right contents for the release you are testing.
Copy file name to clipboardExpand all lines: troubleshooting/tutorials/remote-core-dump/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,12 @@ Clone the AWS for Fluent Bit source code, and run `make debug` for a plain debug
27
27
When Fluent Bit crashes, a zipped core file, stacktrace, and the Fluent Bit executable will be output to the `/cores` directory and the files will also be uploaded to S3.
28
28
29
29
There are couple of things to note about the debug target for the core file debugging use case:
30
-
- The Fluent Bit upstream base version is specified with `ENV FLB_VERSION`
30
+
- The Fluent Bit upstream base version is specified with `FLB_VERSION` in `Makefile`
31
31
- Fluent Bit is compiled with CMake flag `-DFLB_DEBUG=On`
32
32
-`gdb` is installed in the final stage of the Docker build.
33
33
-`aws` cli is installed to copy files to the S3 bucket.
34
34
35
-
When you clone AWS for Fluent Bit, you will automatically get the latest Dockerfile for our latest release on the mainline branch. To create a debug build of a different version, either check out the tag for that version, or modify the `ENV FLB_VERSION` at the top of the `/scripts/dockerfiles/Dockerfile.build` to install the desired Fluent Bit base version.
35
+
When you clone AWS for Fluent Bit, you will automatically get the latest Dockerfile for our latest release on the mainline branch. To create a debug build of a different version, either check out the tag for that version, or modify the `FLB_VERSION` at the top of the `Makefile` to install the desired Fluent Bit base version.
0 commit comments