483071ed8655540578733b86b7c99679f92d39a3
Scripts for building containers for the Proxmox home server
Inital Setup
The fist step is to build the containers needed for building all other containers. This can be done on a Minimal debian CT (make sure to enable nesting) on the new proxmox server or any other debian install
- Clone this repo
- cd in to cloned repo
- run
bash Scripts/FirstSetup.sh, to genate the container images - upload the
Debian-imgbuilder.tar.xzto the proxmox server and create a privileged container - Follow the steps under Container Setup > imgbuilder
- Follow the steps under Container Setup > Jenkins
List of containers
Container Setup
imgbuilder
This container shoud be set up as privileged
- Enable features: Fuse, Nesting and 'Create Device Nodes'
- Add a mountpoint to /LXCBuild on a accesable place for the Proxmox Server
- Add this location to datastore for LXC templates to Proxmox
- Set the
jenkinsuser password usingpasswd jenkinsin the container - Create folders on mountpoint using
mkdir /LXCBuild/template/cache - Set permissions on the folder
chmod o+w -R /LXCBuild - Write down the ip of this server (for use in the jenkins container)
Jenkins
- In the container configure the setup script
nano /opt/Setup/Scripts/FirstRun.sh - In the container run the setup script
bash /opt/Setup/Scripts/FirstRun.sh - Acces Jenkins using
http://<ip>:8080 - Press the
Xto skip the fist time setup - Delete the
Adminuser go to 'Manage Jenkins' > 'Manage Users' > Admin > Delete - Add credentials for imgbuilder-CT go to 'Manage Jenkins' > 'Manage Nodes and Clouds' > LXCBuilder1 > configure
Under Credentials click 'Add', enter 'jenkins' as username, and set the password that was set in the imgbuilder CT Then select the created credential and click save - Click 'Relaunch agent'
- Now you can build container images
Description
Languages
Shell
95.3%
PHP
3.6%
Python
1.1%