-
Notifications
You must be signed in to change notification settings - Fork 10
Improve incremental container builds #295
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
base: main
Are you sure you want to change the base?
Changes from 15 commits
cc5d1b4
d4d4fff
0522c03
9c88ae9
d2e4a5b
5e3b764
117451f
fbbb7fa
ea69e7a
358a422
d3ed299
ebae3f3
a161b0b
c7973c4
c15d8fb
630d0d3
8ee44eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Keep Docker build contexts lean for CloudXR compose builds. | ||
| # Ignore everything by default, then allow only what current Dockerfiles need. | ||
|
|
||
| * | ||
|
|
||
| # Allow Docker metadata files. | ||
| !.dockerignore | ||
|
|
||
| # Allow CloudXR Dockerfiles and runtime assets. | ||
| !deps/cloudxr/ | ||
|
|
||
| # Allow build artifacts and tests consumed by Dockerfile.test and Dockerfile.runtime. | ||
| !install/ | ||
| !examples/ | ||
|
|
||
| # Allow building from source for ros2 workflows | ||
| !cmake/ | ||
| !deps/ | ||
| !src/ | ||
| !CMakeLists.txt | ||
| !VERSION | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,14 +165,21 @@ jobs: | |
| ngc-cli-api-key: ${{ secrets.NGC_TELEOP_CORE_GITHUB_SERVICE_KEY }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| uses: docker/setup-buildx-action@v4.0.0 | ||
|
|
||
| - name: Build teleop_ros2 image | ||
| run: | | ||
| docker build -f examples/teleop_ros2/Dockerfile \ | ||
| --build-arg ROS_DISTRO=${{ matrix.ros_distro }} \ | ||
| --build-arg PYTHON_VERSION=${{ matrix.python_version }} \ | ||
| -t teleop_ros2_ref:${{ matrix.ros_distro }} . | ||
| uses: docker/build-push-action@v7 | ||
| with: | ||
| context: . | ||
| file: examples/teleop_ros2/Dockerfile | ||
| build-args: | | ||
| ROS_DISTRO=${{ matrix.ros_distro }} | ||
| PYTHON_VERSION=${{ matrix.python_version }} | ||
| tags: teleop_ros2_ref:${{ matrix.ros_distro }} | ||
| load: true | ||
| push: false | ||
| cache-from: type=gha,scope=teleop-ros2-${{ matrix.ros_distro }} | ||
| cache-to: type=gha,mode=min,scope=teleop-ros2-${{ matrix.ros_distro }} | ||
|
||
|
|
||
| - name: Smoke test (ROS 2 + rclpy) | ||
| run: | | ||
|
|
@@ -208,7 +215,7 @@ jobs: | |
| tar -xvf isaacteleop-install.tar -C install | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| uses: docker/setup-buildx-action@v4.0.0 | ||
|
|
||
| - name: Run Tests with CloudXR | ||
| env: | ||
|
|
||
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.
🧹 Nitpick | 🔵 Trivial
Redundant pattern at line 10.
Line 10 (
!deps/cloudxr/) is redundant because line 18 (!deps/) already re-includes the entiredeps/directory. Consider removing line 10 and its associated comment.🔧 Suggested fix
🤖 Prompt for AI Agents