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

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

@rgarcia
rgarcia requested review from Copilot and mertcelebiJune 3, 2025 16:59

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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
FileDescription
unikernels/unikraft-cu/wrapper.shUse CHROMIUM_FLAGS env in place of hard-coded Chromium flags
unikernels/unikraft-cu/build.shNew script for packaging and pushing the unikernel image
unikernels/unikraft-cu/run.shNew script to launch the unikernel instance with custom flags
unikernels/unikraft-cu/deploy.shRemoved legacy deploy script
unikernels/unikraft-cu/README.mdUpdated steps: build then run instead of deploy
shared/start-buildkit.shNew helper to install/start BuildKit container
containers/docker/README.mdDocument passing CHROMIUM_FLAGS when running the Docker image
containers/docker/DockerfileUse 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 threadshared/start-buildkit.sh Outdated

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."

CopilotAIJun 3, 2025

Copy link

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 mertcelebiJune 4, 2025 14:27
@rgarcia
rgarcia merged commit bdaa54f into mainJun 4, 2025
@rgarcia
rgarcia deleted the raf/kernel-33-configurable-browsers-residential-proxies-captcha-byo branch June 4, 2025 19:14
Sign up for freeto 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

@rgarcia@mertcelebi