New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 624334 link

Starred by 4 users

Issue metadata

Status: Started
Owner:
User never visited
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Feature



Sign in to add a comment

add script to generate container from package name

Project Member Reported by ashishgaurav@chromium.org, Jun 29 2016

Issue description

For now, squashfs should be okay.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/691778827ade02c0e1c1ce1d3b992228fca5b282

commit 691778827ade02c0e1c1ce1d3b992228fca5b282
Author: Ashish Gaurav <ashishgaurav@google.com>
Date: Wed Jun 29 10:27:24 2016

initial revision for package_to_container, change base_image_util.sh

package_to_container takes a package and generates a minimal root dep
(squashfs for now) container. This container can be entered via
minijail0, ksanthanam@ should soon have a libcontainer utility ready
for the same. Also change build_library/base_image_util.sh to factor
out common code with package_to_container.

BUG=chromium:624334
TEST=./package_to_container --package=android-tools --board=cyan
--extra=busybox produces android-tools.sqsh with busybox in the
same dir.

Change-Id: I25e5dd93c7a85b94074abc7c7355c7cb8092894c
Reviewed-on: https://chromium-review.googlesource.com/357020
Commit-Ready: Ashish Gaurav <ashishgaurav@chromium.org>
Tested-by: Ashish Gaurav <ashishgaurav@chromium.org>
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>

[add] https://crrev.com/691778827ade02c0e1c1ce1d3b992228fca5b282/package_to_container
[modify] https://crrev.com/691778827ade02c0e1c1ce1d3b992228fca5b282/build_library/base_image_util.sh

Project Member

Comment 2 by bugdroid1@chromium.org, Jul 19 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/b9f81779c90c4446bbcc3b53749692ed5b64017b

commit b9f81779c90c4446bbcc3b53749692ed5b64017b
Author: Ashish Gaurav <ashishgaurav@google.com>
Date: Wed Jul 13 22:13:15 2016

package_to_container: fix package name nit

repo syncing from scratch and trying to emerge libcontainer_overrides
fails to find ebuilds, this fixes that by using the full package name.

BUG=chromium:624334
TEST=None

Change-Id: Icbcbbda8fbc0c0ddb47afadb73314f2e12a4e712
Reviewed-on: https://chromium-review.googlesource.com/360244
Commit-Ready: Ashish Gaurav <ashishgaurav@chromium.org>
Tested-by: Ashish Gaurav <ashishgaurav@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>

[modify] https://crrev.com/b9f81779c90c4446bbcc3b53749692ed5b64017b/package_to_container

Project Member

Comment 3 by bugdroid1@chromium.org, Aug 4 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/763040e4a6c093697b2d6c8da113bea81468e8dd

commit 763040e4a6c093697b2d6c8da113bea81468e8dd
Author: Keshav Santhanam <ksanthanam@google.com>
Date: Wed Jul 27 16:50:48 2016

package_to_container: Add option for container name

Some packages may build multiple executables, but we
want to have the container name reflect the specific
binary the container was created for. This adds an
option to allow the user to select a container name
that is different from the package name.

BUG=chromium:624334
TEST=Run package_to_container with the --name option.

Change-Id: Ib6035d3704386e9a1e819b0155d2efed4be8dd2a
Reviewed-on: https://chromium-review.googlesource.com/363504
Commit-Ready: Keshav Santhanam <ksanthanam@google.com>
Tested-by: Keshav Santhanam <ksanthanam@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>

[modify] https://crrev.com/763040e4a6c093697b2d6c8da113bea81468e8dd/package_to_container

Components: OS>Systems>Containers

Sign in to add a comment