Debian Codegraph @

project/bundles/CD/ContinuousDeploy.txt

raw
1 Architecture and configuration to setup a continuous deployment computer.
2 --------------------------------------------------------------------------
3
4 1/ Host computer and local network
5
6 - Intel Xeon 24 cores
7 - 32 Gb of RAM (48Gb highly recommended)
8 - 2 SSD 1Tb (one to host base system, one to host VMs)
9 - Host system Linux Mageia 7.1
10 - VirtualBox version 6.x:
11
12 * Host must define a private local network configured with default settings:
13 network 192.168.56.1/25
14 DHCP server 192.168.56.100/24 @[101-254]
15
16 * Each VM must have 2 network ifaces: one to use Internet using NAT
17 one to use private local network
18
19 * Private local network will allow to be connected to VMs locally with ssh.
20
21 * Extension Pack installed (https://www.virtualbox.org/wiki/Downloads).
22
23 * 3 VMs:
24 one running MacOS Catalina to compile PKG installer.
25 Name: VX.
26 8 cores.
27 4Gb RAM (8Gb highly recommended to compile QtWebEngine).
28 128Mb video.
29 Disk: 120Gb. (40 Gb free are required at least to update later XCode)
30 eth0: auto IP/DNS with DHCP (VM:NAT)
31 eth1: manual IP/DNS: 192.168.56.101/24/192.168.56.1/192.168.56.100 (VM:private local Net)
32
33 one running XBuntu 18.04 to compile Windows installer.
34 Name: VW.
35 8 cores.
36 4Gb RAM (8Gb highly recommended to compile QtWebkit).
37 128Mb video.
38 Disk: 120Gb (/).
39 /home : 20Gb on a separated partition.
40 /tmp : 20Gb on a separated partition.
41 /var : 20Gb on a separated partition.
42 swap : 20Gb on a separated partition.
43 eth0: auto IP/DNS with DHCP Metric:0 (VM:NAT)
44 eth1: manual IP/DNS: 192.168.56.102/24/192.168.56.1/192.168.56.100 Metric:10 (VM:private local Net)
45 Desktop: Plasma or XFCE
46
47 one running XBuntu 18.04 to compile AppImage bundle
48 Name: VA.
49 8 cores.
50 4Gb RAM (8Gb highly recommended to compile QtWebEngine).
51 128Mb video.
52 Disk: 120Gb (/).
53 /home : 20Gb on a separated partition.
54 /tmp : 20Gb on a separated partition.
55 /var : 20Gb on a separated partition.
56 swap : 20Gb on a separated partition.
57 eth0: auto IP/DNS with DHCP Metric:0 (VM:NAT)
58 eth1: manual IP/DNS: 192.168.56.103/24/192.168.56.1/192.168.56.100 Metric:10 (VM:private local Net)
59 Desktop: XFCE
60
61 2/ Virtual Machines
62
63 - MacOS Catalina: system is installed using this GitHub repository: https://github.com/myspaghetti/macos-virtualbox (git revision b47fbd977e9d6103fb7113651839c22937d58af1),
64 and using Macports procedure.
65 * @IP: 192.168.56.101
66 * Apply the patch to macos-guest-virtualbox.patch and run the script to create the VM.
67 * Don't touch mouse and keyboard will installing as form recognition is used to automate all operations (aka partitions creating and formatting).
68 * MacOS Catalina will be installed and first run assistant must appear.
69 * Create a main user account with admin rights, disable Siri, TimeScreen, Analytics, Accessibility, TimeMachine, and don't setup an AppleID.
70 * Using Mac Deploy Stick - MDS tool to download macOS ISO for update system (https://twocanoes.com/products/mac/mac-deploy-stick/), download the last DMG public release of BigSur
71 * MacOS BigSur will be installed and first run assistant will appear where nothing special must be changed compared to Catalina.
72 * From MacOS System Preferences Panel/Software Update disable auto up-to-date.
73 * From macOS System Preferences Panel/Users & Groups change user account shell from zsh to bash and reboot the virtual machine.
74 * From macOS System Preferences Panel/Energy Saver turn off all sleeping options.
75 * From macOS System Preferences Panel/Desktop & Screen Saver Set no image background and turn off screen saver.
76 * From macOS System Preferences Panel/Sound Effects disable all.
77 * From macOS System Preferences Panel/Sharing enable remote login.
78 * From macOS System Preferences Panel/Mouse disable natural scroll direction.
79 * From macOS System Preferences Panel/Spotlight disable all categories.
80 * From macOS System Preferences Panel/Siri disable all.
81 * From macOS System Preferences Panel/Security & Privacy turn off screen lock.
82 * From macOS System Preferences Panel/Notifications disable all.
83 * From macOS System Preferences Panel/Display disable mirroring option in menu bar.
84 * From macOS System Preferences Panel/Keyboard disable input option in menu bar.
85 * From macOS System Preferences Panel/Dock & Menu Bar disable all control options in menu bar.
86 * Register a valid account in AppleStore and download XCode (usually an account taken to developer.apple.com is enough).
87 * Open XCode and wait to update components with sudo right.
88 * From a Terminal, install XCode Command Line Tools with "sudo xcode-select --install".
89 * From a Terminal, valid XCode license with "sudo xcodebuild -license".
90 * Install Packages for macOS (http://s.sudre.free.fr/Software/Packages/about.html).
91 * From macOS System Preferences Panel/Security & Privacy files listed below with Rights to Full Disk Access:
92 + Terminal
93 + Packages.app
94 + /usr/local/bin/packagesbuild
95 + /Library/PrivilegedHelperTools/??.whitebox.packages/packages_builder
96 + /Library/PrivilegedHelperTools/??.whitebox.packages/packages_dispatcher
97 * Install .bashrc_profile, .gitconfig, and macports_update.sh to the home directory.
98 * Install your public and private ssh keys for your KDE account to your home directory.
99 * Change /etc/sudoers properties to run sudo without password: "%admin ALL = (ALL) ALL" => "%admin ALL = (ALL) NOPASSWD: ALL"
100 * Clone digiKam git repository in your home repository (git clone [email protected]:graphics/digikam.git).
101 * From local digiKam git repository, run project/bundles/macports/makeall.sh.
102 * To update Macports PKG all the days at 13h00, run "macports_update.sh" script in background with screen CLI tool.
103
104 - XUBuntu 18.04: system is installed using MXE procedure.
105 * @IP: 192.168.56.102
106 * To update Windows installer all the days at 15h00, run "mxe_update.sh" script in background with screen CLI tool.
107
108 - XUBuntu 18.04: system is installed using AppImage procedure.
109 * @IP: 192.168.56.103
110 * To update Linux bundle all the days at 11h00, run "appimage_update.sh" script in background with screen CLI tool.
111
112 - To start VM without GUI from command line:
113
114 * VBoxManage startvm --type headless VW
115 * VBoxManage startvm --type headless VA
116 * VBoxManage startvm --type headless VX
117
118 - To stop VM without GUI from command line:
119
120 * VBoxManage controlvm VW acpipowerbutton
121 * VBoxManage controlvm VA acpipowerbutton
122 * VBoxManage controlvm VX acpipowerbutton