~likan/toolbox/+git/ppa:wip/rishi/remove-group-add

Last commit made on 2019-05-17
Get this branch:
git clone -b wip/rishi/remove-group-add https://git.launchpad.net/~likan/toolbox/+git/ppa

Branch merges

Branch information

Name:
wip/rishi/remove-group-add
Repository:
lp:~likan/toolbox/+git/ppa

Recent commits

cc42c69... by Debarshi Ray <email address hidden>

Revert "Ensure that the toolbox user runs with 'wheel' as an ..."

The --group-add option only affects the entry point of the toolbox
container.

This reverts commit 4bda42d4146f3d3baa8003428d1c0fa4b71239bd.

https://github.com/debarshiray/toolbox/pull/165

39806d9... by Debarshi Ray <email address hidden>

Drop the prefix from spinner messages

The prefixed spinner messages look odd because neither the download
confirmation prompts nor the hints on how to enter a container have
them. It's better to only prefix the debug and error messages so as to
disambiguate their origins.

https://github.com/debarshiray/toolbox/pull/164

8b84b5e... by Debarshi Ray <email address hidden>

Drop the Buildah dependency and the user-specific customized image

This works by configuring the toolbox container after it has been
created, instead of before. The toolbox script itself is mentioned as
the entry point of the container, which does 'exec sleep +Inf' once the
initialization is done.

A new command 'init-container' was added to perform the initialization.
It is primarily meant to be used as the entry point for all toolbox
containers, and must be run inside the container that's to be
initialized. It is not expected to be directly invoked by humans, and
cannot be used on the host.

As a result, the default name for the toolbox containers is now
fedora-toolbox-<version-id>, not fedora-toolbox-<user>-<version-id>.
For backwards compatibility, 'toolbox enter' and 'toolbox run' will
continue to work with containers using the old naming scheme.

https://github.com/debarshiray/toolbox/pull/160

dadb21d... by Debarshi Ray <email address hidden>

Shuffle some code around

A subsequent commit will create toolbox container names based on both
the base image and the user-specific customized image. This will make
it easier to read.

https://github.com/debarshiray/toolbox/pull/160

affcede... by Debarshi Ray <email address hidden>

Check for /run/.toolboxenv later to accommodate entry point commands

A subsequent commit will add a new command to configure a toolbox
container after it has been created. This command is meant to be the
container's entry point, which runs before /run/.toolboxenv gets
created. Given that the entry point will be set by 'toolbox create'
it's safe to assume that it's a toolbox container anyway.

https://github.com/debarshiray/toolbox/pull/160

f1d4560... by Debarshi Ray <email address hidden>

Check for flatpak-spawn(1) later - right before actually using it

A subsequent commit will add a new command to configure a toolbox
container after it has been created. This command is meant to run
inside the container without being forwarded to the host. Therefore,
just running inside a container doesn't mean that flatpak-spawn(1) is
mandatory.

This should help with toolbox containers created from images which
don't have flatpak-spawn(1) in them. eg., the fedora-toolbox base image
for Fedora 28.

https://github.com/debarshiray/toolbox/pull/160

85f5b3e... by Debarshi Ray <email address hidden>

Shuffle some code around

Consolidate the code to forward commands to the host in one place
instead of doing it repeatedly for each command. This reduces the
levels of indentation in the code, making it easier to read.

https://github.com/debarshiray/toolbox/pull/160

f74400f... by Debarshi Ray <email address hidden>

Run the entry point as root:root

A subsequent commit will add a new command to configure a toolbox
container after it has been created. This command is meant to be the
container's entry point, and will need to do things as root:root
relative to the user namespace.

Even though root:root is the default in 'podman create', explicitly
specifying it overrides any other value inherited from the
user-specific customized image. eg., older images had $USER as the
default user.

https://github.com/debarshiray/toolbox/pull/160

fd08a98... by Debarshi Ray <email address hidden>

Add c.gh.debarshiray.toolbox to the container during 'podman create'

Commit 8127daa29ea08f35 added the com.github.debarshiray.toolbox label
to the user-specific customized image generated by the 'create'
command, which gets inherited by toolbox containers using the image.
However, there might be really old images lying around in users' caches
that don't have the label, and in those cases the damage can be
limited by adding it directly to the newly created toolbox container.

Moreover, a subsequent commit will remove the need for the
user-specific customized image, and which will make this change
mandatory.

https://github.com/debarshiray/toolbox/pull/160

48ddffb... by Debarshi Ray <email address hidden>

Tweak the debug output

This will make a subsequent commit easier to read.

https://github.com/debarshiray/toolbox/pull/160