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

added docker example #42

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JohnRudolfLewis
Copy link

added example of packing up in to a docker container using rules_oci and rules_pkg

closes GH-10

MODULE.bazel Outdated Show resolved Hide resolved
MODULE.bazel Outdated Show resolved Hide resolved
# to run the roslaunch command.
oci_image(
name = "chatter_oci_image",
base = "@com_github_mvukov_rules_ros_base_image",
Copy link
Contributor

@hofbi hofbi Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
base = "@com_github_mvukov_rules_ros_base_image",
base = "@rules_ros_base_image",

JohnRudolfLewis and others added 2 commits September 10, 2024 06:43
Co-authored-by: Markus Hofbauer <[email protected]>
Co-authored-by: Markus Hofbauer <[email protected]>
Comment on lines +16 to +27
bazel_dep(name = "rules_oci", version = "2.0.0")

oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "rules_ros_base_image",
image = "python:3.10-bookworm",
digest = "sha256:428430918ab72109921ef55d5f8bdd3a02a90734fd79ee920146cf385a13c110",
platforms = ["linux/amd64"],
)
use_repo(oci, "rules_ros_base_image", "rules_ros_base_image_linux_amd64")

bazel_dep(name = "rules_pkg", version = "1.0.1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the refactorings made in #43, we might want to move this into examples/MODULE.bazel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add back examples for archiving binaries and assembling Docker images
2 participants