Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,14 @@ website/src/components/ui/.*\.tsx
# SVG files (third-party logos and graphics, headers impractical)
.*\.svg

# GitHub templates and config (YAML/MD with frontmatter, headers impractical)
\.github/.*

# Image files (binary, cannot contain headers)
.*\.png
.*\.gif
.*\.ico
.*\.jpg

# Examples pattern (legacy - keeping for compatibility)
apache_burr-.*/burr/examples
19 changes: 19 additions & 0 deletions examples/deployment/aws/terraform/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

# Apache Burr AWS Tracking Infrastructure Tutorial

This tutorial explains how to deploy Apache Burr tracking infrastructure on AWS using Terraform. All Terraform code lives in `examples/deployment/aws/terraform/`. It covers deployment with S3 only (polling mode), with S3 and SQS (event-driven mode), and local development without AWS.
Expand Down
18 changes: 18 additions & 0 deletions scripts/apache_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,28 @@ def _build_ui_artifacts() -> None:
except Exception as e:
_fail(f"Failed to copy build artifacts: {e}")

# Remove source maps (debug artifacts, not needed in wheel)
for map_file in glob.glob(os.path.join(ui_build_dir, "**", "*.map"), recursive=True):
os.remove(map_file)
print(f" ✓ Removed source map: {os.path.basename(map_file)}")

# Verify
if not os.path.exists(ui_build_dir) or not os.listdir(ui_build_dir):
_fail(f"UI build directory is empty: {ui_build_dir}")


def _clean_wheel_excludes() -> None:
"""Remove files that should not be in the wheel distribution."""
excludes = [
"burr/tracking/server/s3/deployment/terraform/.terraform.lock.hcl",
"burr/tracking/server/s3/deployment/terraform/.gitignore",
]
for filepath in excludes:
if os.path.exists(filepath):
os.remove(filepath)
print(f" ✓ Removed from wheel: {filepath}")


def _prepare_wheel_contents() -> tuple[bool, bool, Optional[str]]:
"""Handle burr/examples symlink: replace with real files for wheel."""
burr_examples_dir = "burr/examples"
Expand Down Expand Up @@ -550,6 +567,7 @@ def _build_wheel_from_current_dir(version: str, output_dir: str = "dist") -> str
_build_ui_artifacts()

_print_step(2, 3, "Preparing wheel contents")
_clean_wheel_excludes()
copied, was_symlink, symlink_target = _prepare_wheel_contents()

_print_step(3, 3, "Building wheel with flit")
Expand Down
Loading