Skip to content

Conversation

@cgwalters
Copy link
Contributor

No description provided.

I had been trying hard to use goose because I like Rust
and some of the core code is good, but opencode seems to be
nicer and well maintained.

Add infra to inject bits from npm and use it to install.

rsync is needed for my dotfiles install and is generally useful.

Signed-off-by: Colin Walters <walters@verbum.org>
These files are no longer used after forking the Containerfile into
Containerfile.debian and Containerfile.c10s variants. The package
lists have been split into packages-common.txt plus distro-specific
files (packages-debian.txt, packages-c10s.txt, build-deps-debian.txt,
build-deps-c10s.txt).

Assisted-by: OpenCode (Claude Sonnet 4)
Signed-off-by: Colin Walters <walters@verbum.org>
@gemini-code-assist
Copy link

Summary of Changes

Hello @cgwalters, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request streamlines and refactors the development environment setup by eliminating a monolithic Containerfile and its associated package lists. The changes consolidate package installations into distribution-specific Dockerfiles, enhancing modularity and reducing code duplication. Furthermore, it integrates the opencode-ai npm package and the rsync utility into the development environment, while also cleaning up outdated build dependencies for a more efficient setup.

Highlights

  • Dockerfile Refactoring: The generic devenv/Containerfile and its associated packages.txt and build-deps.txt have been removed. This indicates a significant refactoring to consolidate and modularize the development environment setup into distribution-specific Containerfiles (Containerfile.debian and Containerfile.c10s).
  • New Tool: opencode-ai: The opencode-ai npm package (version 1.0.163) has been introduced and will now be installed globally in both the Debian and C10S development environments via a new npm.txt file.
  • New Utility: rsync: The rsync utility has been added to the packages-common.txt, making it a standard common package available in the development environment.
  • Dependency Cleanup: The ostree build dependency has been removed from the build-deps.txt file, streamlining the build process.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the devenv setup to support multiple distributions (Debian and CentOS Stream 10) by splitting the monolithic Containerfile into Containerfile.debian and Containerfile.c10s. This also involves splitting package lists into common and distribution-specific files. As part of this, opencode-ai and rsync are added as new dependencies. The changes are well-structured and improve maintainability. I've added a couple of minor suggestions to improve the robustness of package installation scripts.

dnf clean all
EORUN
COPY npm.txt /run/src
RUN grep -vEe '^#' npm.txt | /bin/time -f '%E %C' xargs npm i -g

Choose a reason for hiding this comment

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

medium

For robustness, it's a good practice to use the --no-run-if-empty (or -r) flag with xargs. This prevents xargs from running npm i -g if npm.txt is empty or contains only comments, which avoids an unnecessary command execution.

RUN grep -vEe '^#' npm.txt | /bin/time -f '%E %C' xargs -r npm i -g

apt clean && rm -rf /var/lib/apt/lists/*
EORUN
COPY npm.txt /run/src
RUN grep -vEe '^#' npm.txt | /bin/time -f '%E %C' xargs npm i -g

Choose a reason for hiding this comment

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

medium

For robustness, it's a good practice to use the --no-run-if-empty (or -r) flag with xargs. This prevents xargs from running npm i -g if npm.txt is empty or contains only comments, which avoids an unnecessary command execution.

RUN grep -vEe '^#' npm.txt | /bin/time -f '%E %C' xargs -r npm i -g

Copy link

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

@cgwalters cgwalters merged commit dbc0159 into bootc-dev:main Dec 16, 2025
9 checks passed
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.

3 participants