Skip to content

allow customizing chromium flags#11

Merged
rgarcia merged 3 commits into
mainfrom
raf/kernel-33-configurable-browsers-residential-proxies-captcha-byo
Jun 4, 2025
Merged

allow customizing chromium flags#11
rgarcia merged 3 commits into
mainfrom
raf/kernel-33-configurable-browsers-residential-proxies-captcha-byo

Conversation

@rgarcia
Copy link
Copy Markdown
Contributor

@rgarcia rgarcia commented Jun 3, 2025

also splitting up build and run for the unikernel stuff (similar to docker)

@rgarcia rgarcia requested review from Copilot and mertcelebi June 3, 2025 16:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables customizable Chromium startup flags via an environment variable, splits the unikernel workflow into separate build and run scripts, and updates documentation accordingly.

  • Replace hard-coded Chromium flags with the CHROMIUM_FLAGS variable in both the unikernel wrapper and Dockerfile
  • Add build.sh and run.sh, and remove the old deploy.sh, to separate build and run steps
  • Update README files and introduce start-buildkit.sh to streamline the build environment setup

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
unikernels/unikraft-cu/wrapper.sh Use CHROMIUM_FLAGS env in place of hard-coded Chromium flags
unikernels/unikraft-cu/build.sh New script for packaging and pushing the unikernel image
unikernels/unikraft-cu/run.sh New script to launch the unikernel instance with custom flags
unikernels/unikraft-cu/deploy.sh Removed legacy deploy script
unikernels/unikraft-cu/README.md Updated steps: build then run instead of deploy
shared/start-buildkit.sh New helper to install/start BuildKit container
containers/docker/README.md Document passing CHROMIUM_FLAGS when running the Docker image
containers/docker/Dockerfile Use CHROMIUM_FLAGS env for Chromium startup flags
Comments suppressed due to low confidence (1)

unikernels/unikraft-cu/run.sh:7

  • The --start line is missing a trailing backslash (\) for proper line continuation; add it to ensure the -M 8192 argument is passed to kraft cloud inst create.
--start 

Comment thread shared/start-buildkit.sh Outdated
Comment thread shared/start-buildkit.sh

test "$(docker container inspect -f '{{.State.Running}}' buildkit 2> /dev/null)" = "true"
if test $? -eq 0; then
echo "Container 'buidlkitd' is already running. Nothing to do."
Copy link

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

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

Typo in the container name: 'buidlkitd' should be 'buildkit'.

Suggested change
echo "Container 'buidlkitd' is already running. Nothing to do."
echo "Container 'buildkit' is already running. Nothing to do."

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rgarcia rgarcia requested review from mertcelebi and removed request for mertcelebi June 4, 2025 14:27
@rgarcia rgarcia merged commit bdaa54f into main Jun 4, 2025
@rgarcia rgarcia deleted the raf/kernel-33-configurable-browsers-residential-proxies-captcha-byo branch June 4, 2025 19:14
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