Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to run interactive shell in format container images and build environments #76

Merged
merged 7 commits into from
Mar 20, 2023

Conversation

rezib
Copy link
Contributor

@rezib rezib commented Mar 20, 2023

Fixes #18

rezib added 7 commits March 18, 2023 13:54
This commit replaces fatbuildrctl images command options --create,
--update, --create-envs and --update-envs by a unique operation
positional argument with the corresponding values create, update,
env-create and env-update.

The manpage is updated accordingly.
Add a shell operation to fatbuildrctl images command to open an
interactive shell in an instanciated container running the image
dedicated to a given artifact format.
This commit introduces fatbuildrctl images --distribution option to
filter the container images or build environments targeted by the
operation. It can be used in combination with --format option or not.
This commit adds the --architecture option to fatbuildrctl images
command to limit operations on build environment to a specific hardware
architecture.
This commit adds CLI fatbuildrctl images env-shell subcommand to open an
interactive shell in a build environment. The build environment must be
selected with --format, --distribution and --architecture option.

Configuration parameter shell_cmd is introduced in format:{deb,rpm}
sections to define the command to run in the format container to
instanciate this interactive shell in the build environment.

The documentation (manpage and configuration parameters) is updated
accordingly.
This commit adds to fatbuildrctl images command the -f, -d and -a short
options as an alternative to the long options --force, --distribution
and --architecture.
The $TERM environment variable in local user shell is transmitted in
images shell and env-shell tasks to be transposed in the container
environment.
@rezib rezib added this to the v2.0.0 milestone Mar 20, 2023
@rezib rezib self-assigned this Mar 20, 2023
@rezib rezib merged commit 63561fc into main Mar 20, 2023
@rezib rezib deleted the pr-shell branch March 27, 2023 06:36
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.

Add command to open shell in images and build environments
1 participant