Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open-build-service-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
obs
open-build-service-debian
Commits
2385d004
Commit
2385d004
authored
8 years ago
by
Andrew Lee (李健秋)
Browse files
Options
Downloads
Patches
Plain Diff
Added README.Debian.
parent
b8a491ee
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
debian/README.Debian
+87
-0
87 additions, 0 deletions
debian/README.Debian
debian/obs-api.docs
+1
-0
1 addition, 0 deletions
debian/obs-api.docs
debian/obs-server.docs
+1
-0
1 addition, 0 deletions
debian/obs-server.docs
debian/obs-worker.docs
+1
-0
1 addition, 0 deletions
debian/obs-worker.docs
with
90 additions
and
0 deletions
debian/README.Debian
0 → 100644
+
87
−
0
View file @
2385d004
Open Build Service
------------------
Setup obs-api
-------------
If you have database configured via dbconfig-common during installation.
You may run this command as root to have obs-api setup:
# /usr/share/obs/api/script/rake-tasks.sh setup
If you select not to config database via dbconfig-common during
installation. You may want to create a user in mysql and grant
permissions manually.
In mysql prompt:
> CREATE USER 'obs-api'@'localhost' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON * . * TO 'obs-api'@'localhost';
> FLUSH PRIVILEGES;
Configure the database password you have set previously:
In /etc/obs/api/config/database.yml
'''
production:
adapter: mysql2
database: obsapi
username: obs-api
password: YOUR_PASSWORD
encoding: utf8
'''
And then you may run this command as root to have obs-api setup:
# /usr/share/obs/api/script/rake-tasks.sh setup
Or you may refer to the steps in rake-tasks.sh and do the rake setup
manually to fit your configuration.
OBS frontend
------------
By default, you can see the HTML views on port 443 (e.g: https://localhost)
and the repos on port 82 (once some packages are built).
Default Admin password
----------------------
The default admin user is "Admin" with the password "opensuse".
Managing scheduler
-------------------
We have armv7hl, i586 and x86_64 schedulers setup by default.
If you want to add scheduler for specific architecture. You may run
# systemctl enable obsscheduler@*ARCH*.service
# systemctl start obsscheduler@*ARCH*.service
If you want to disable scheduler for specific architecture. You may run
# systemctl stop obsscheduler@*ARCH*.service
# systemctl disable obsscheduler@*ARCH*.service
Distributed OBS worker
----------------------
You may want to install obs-worker on distributed machine(not run on
the same host as the obs-server runs) to prevent unpredictable load
while monstrous package build that burden your OBS backend daemons.
Worker setup
------------
After you installed obs-worker package. You may edit the file
/etc/default/obsworker to set the hostname of the machine where your
obs-server is running.
We have the default hostname "obs" that you may want to change to fits
your setup:
'''
OBS_SRC_SERVER="obs:5352"
OBS_REPO_SERVERS="obs:5252"
'''
You may also set the number of build instances. (0 will automatically use the number of CPU's)
'''
OBS_WORKER_INSTANCES="0"
'''
After you placed the correct settings. Start the obsworker daemons:
# invoke-rc.d obsworker start
You may verify if the worker daemons starts correctly or not:
# invoke-rc.d obsworker status
-- Andrew Lee (李健秋) <ajqlee@debian.org> Sun, 18 Dec 2016 22:00:11 +0800
This diff is collapsed.
Click to expand it.
debian/obs-api.docs
+
1
−
0
View file @
2385d004
...
...
@@ -5,3 +5,4 @@ dist/README.SETUP
dist/README.devel
docs/openSUSE.org.xml
src/backend/README
debian/README.Debian
This diff is collapsed.
Click to expand it.
debian/obs-server.docs
+
1
−
0
View file @
2385d004
...
...
@@ -3,3 +3,4 @@ ReleaseNotes-*
dist/README.SETUP
dist/README.UPDATERS
src/backend/README
debian/README.Debian
This diff is collapsed.
Click to expand it.
debian/obs-worker.docs
0 → 100644
+
1
−
0
View file @
2385d004
debian/README.Debian
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