Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linuxops
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
websites
linuxops
Commits
00f5f643
Commit
00f5f643
authored
1 month ago
by
Ben Morrice
Browse files
Options
Downloads
Plain Diff
Merge branch 'aio' into 'master'
Addition of KOJI AIO install See merge request
!140
parents
6807cf8e
fd261e3f
Branches
Branches containing commit
No related tags found
1 merge request
!140
Addition of KOJI AIO install
Pipeline
#12076111
passed
1 month ago
Stage: .pre
Stage: scan-policies
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/koji/aio.md
+73
-0
73 additions, 0 deletions
docs/koji/aio.md
mkdocs.yml
+1
-0
1 addition, 0 deletions
mkdocs.yml
with
74 additions
and
0 deletions
docs/koji/aio.md
0 → 100644
+
73
−
0
View file @
00f5f643
# All In One (AIO) Koji
An all in one koji instance is designed for safe development. It is your own self contained private koji.
It consists of a koji hub, koji builder, koji web and a kojira service all using a PostgreSQL server running on
the same host.
The kojiclient on the same host is configured to talk directly to this AIO instance.
## Prerequisites
Install a machine in the hostgroup
`lsb/allinone`
. This can be within your private Openstack Project for instance.
For example
`exampleaio.cern.ch`
.
Configure a koji client, e.g on AIADM to use this koji instance by creating a
`~/.koji/config.d/aio.conf`
:
```
ini
[aio]
server
=
https://exampleaio.cern.ch:8443/kojihub
weburl
=
https://exampleaio.cern.ch
topurl
=
https://exampleaio.cern.ch/kojifiles
topdir
=
https://exampleaio.cern.ch/kojifiles
authtype
=
kerberos
```
*
Note that kojihub port is different to the production service. (This is required as web/hub are unique apache vhosts)
*
The koji client on the AIO server will use the very same AIO server
## Manual Steps
*
Login as root and generate a Kerberos ticket:
`kinit <username>@CERN.CH`
*
Add the host( koji builder) to itself ( koji hub) with:
`/root/koji_add-host.sh`
*
A koji instance with zero tags and repositories is now in place.
*
It may be necessary to start kojira
`systemctl start kojira`
as it is only started once a day via a cron....
## Test the Installation
Check the API:
```
bash
koji
-p
aio moshimoshi
```
Check the web interface
`https://exampleaio.cern.ch`
## Generate an OS tag set
**
DO NOT FORGET the
`PROFILE=aio`
below or else production will be targeted.
**
These scripts are described on the
[
koji bootstrap page
](
bootstrapping.md
)
and can be run from AIADM.
```
bash
git clone https://:@gitlab.cern.ch:8443/linuxsupport/lxdist-build.git
cd
bin/tags
# Followed by one or all of the OS bootstraps.
env
ARCHES
=
x86_64
PROFILE
=
aio ./bootstrap_10al.sh
env
ARCHES
=
x86_64
PROFILE
=
aio ./bootstrap_10el.sh
env
ARCHES
=
x86_64
PROFILE
=
aio ./bootstrap_9al.sh
```
This will create a set of tags plus the
`mytag`
tag.
## Finally Build a Package
In this case 9al but adjust as required.
```
koji -p aio add-pkg --owner <username> mytag9al-testing myrpm
koji -p aio build mytag9al ./myrpm-1.2.3-56.al9.srpm
```
This diff is collapsed.
Click to expand it.
mkdocs.yml
+
1
−
0
View file @
00f5f643
...
...
@@ -67,6 +67,7 @@ nav:
-
'
Upgrading
koji'
:
koji/upgrading.md
-
'
Bootstrapping
a
new
distro'
:
koji/bootstrapping.md
-
'
Troubleshooting'
:
koji/troubleshooting.md
-
'
All
in
one
koji'
:
koji/aio.md
-
'
Resources'
:
koji/resources.md
-
'
References'
:
koji/references.md
-
'
Nomad'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment