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

Template for new jails #84

Closed
Jip-Hop opened this issue Feb 13, 2024 Discussed in #21 · 1 comment
Closed

Template for new jails #84

Jip-Hop opened this issue Feb 13, 2024 Discussed in #21 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Jip-Hop
Copy link
Owner

Jip-Hop commented Feb 13, 2024

Discussed in #21

Originally posted by spusuf August 13, 2023
On every jail I've made I found myself using the same few scripts, and it would be nice to have these all done in one "base" or "template" jail to then copy to new installs for an outdated but ready to run install without even having to open the jail's shell.

For now I'd simply have a jail automatically install curl, openssh, and docker, but it would be nice to not start from scratch for different needs.

My (basic) commands on every install currently are:
apt update, install openssh, install curl, curl get docker convenience script, run docker install script.


I'm working on templates for new jails. It's implemented by allowing the user to provide a config file during jlmkr create or by executing jlmkr create mydockerjail /mnt/tank/path/to/docker/config. The new initial_setup config value can contain commands to run in the jail before the jail is started for the first time.

This feature is available for testing on the develop branch. See this docker template for example. I hope to release a new version of jailmaker with this feature included in the upcoming weeks.

@Jip-Hop Jip-Hop added the enhancement New feature or request label Feb 13, 2024
@Jip-Hop Jip-Hop self-assigned this Feb 13, 2024
@Jip-Hop
Copy link
Owner Author

Jip-Hop commented Mar 2, 2024

Included in v1.1.0. See the readme for instructions.

@Jip-Hop Jip-Hop closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant