Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Documentation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hamara-developers
Documentation
Compare Revisions
d430a141806b5c618339973af55505894b507224...5a44291f0dcbb0cbd179e8fa657f7a10bd55af03
Source
5a44291f0dcbb0cbd179e8fa657f7a10bd55af03
Select Git revision
...
Target
d430a141806b5c618339973af55505894b507224
Select Git revision
Compare
Commits (3)
Delete howto.md
· 28165e4d
Syam G K
authored
May 20, 2021
28165e4d
Add hamara2.0 svastik setup and build process doc
· 93d0b263
Syam G K
authored
May 20, 2021
93d0b263
Merge branch 'jenkins-setup' into 'master'
· 5a44291f
Vik
authored
May 24, 2021
Add Hamara2.0 svastik build process doc See merge request
!14
5a44291f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
0 deletions
+84
-0
hamara2.0_svastik.md
docs/hamara2.0_svastik.md
+84
-0
No files found.
docs/hamara2.0_svastik.md
0 → 100644
View file @
5a44291f
# Hamara2.0 Svastik
An ISO image produced by building hamara-packages, fetching upstream debian mirrors
and merging them into one.
```
┌─────────────────────────────┐
│ │
│ Debian Testing │
│ - main │
│ - contrib ├───────────►
│ - non-free │ │
│ │ │
└─────────────────────────────┘ │
│ ┌───────────────────┐
│ │ │
│ │ │
│ │ │
└─────────►│ Hamara 2.0 │
┌──────────────────────────────┐ ▲ │ - svastik │
│ hamara-packages │ │ │ │
│ ├──────────┘ │ │
└──────────────────────────────┘ └───────────────────┘
```
## Infrastructure-setup
https://git.hamaralinux.org/hamara-developers/hamara-infra/blob/master/hetzner_setup.md
## Build process
### 1. Build hamara packages:
Source Code: https://git.hamaralinux.org/devel/packages/swastik
Build job: https://builds.hamaralinux.org/job/Hamara-Packages/
This job will build the packages and copy them over to aptly container
### 2. Create repo, clone upstream mirrors:
Ref: https://git.hamaralinux.org/hamara-developers/Documentation/blob/master/aptly/aptly-based-repository-setup.md
Upstream Ref: https://www.aptly.info/doc/commands/
```
# create a repo for adding hamara-packages
aptly repo create hamara-packages
```
```
# add the packages delivered by jenkins job to repo
aptly repo add hamara-packages /opt/aptly/hamara_custom_packages/
```
```
# Create a snapshot of custom hamara-packages
aptly create snapshot hamara-svastik-inhouse-<date> from repo hamara-packages
```
```
# Merge all snapshots into one
aptly snapshot merge hamara-svastik-merged hamara-svastik-inhouse-19052021 hamara-sugam-v3-non-free-18012021 hamara-sugam-v3-main-18012021 hamara-sugam-v3-contrib-18012021
```
```
# Publish the snapshot Note: this step will ask for gpg password can get it from vault.hamaralinux.org
aptly publish snapshot -architectures=amd64 -distribution=svastik hamara-svastik-merged
```
```
# For updating mirrors
aptly mirror update <mirror-name>
```
### 3. Building the ISO image
Once the snapshot is published by aptly the HamaralinuxISObuilder job can be triggered to build and publish ISO image.
Jenkins Job: https://builds.hamaralinux.org/job/HamaralinuxISObuilder/
Source code: https://git.hamaralinux.org/hamara-developers/hamara-live-build