Project

General

Profile

How to install and configure repository iabsis repositories » History » Revision 2

Revision 1 (Olivier Bitsch, 04/30/2020 10:37 AM) → Revision 2/3 (Olivier Bitsch, 04/30/2020 10:37 AM)

# How to install and configure repository iabsis repositories 

 We built an automated system in order to automatically create packages and publish them into a private repository. 

 ## Repository configuration for Ubuntu/Debian 

 * Install https support for apt with `apt-get install apt-transport-https` 
 * Configure the repository in the sources.list file `deb [trusted=yes] https://projects.iabsis.com/repository/<name-of-projet>/debian <debian_version> main` 
 * Optionally configure the line source : `deb-src [trusted=yes] https://projects.iabsis.com/repository/<name-of-projet>/debian <debian_version> main` 

 > `debian_version` debian_version is the version configured into `debian/changelog` file. 
 > `name-of-project` name-of-project is simply the system project name. 

 * Because all repositories requires a password, create a file called `/etc/apt/auth.conf` and paste the content 

 ``` 
 machine projects.iabsis.com 
 login <your redmine username> 
 password <your redmine password> 
 ``` 

 Limit the access to the file with: 

     chmod 600 /etc/apt/auth.conf 


 ## Repository configuration for CentOS/Redhat 

 * Create a new file under the folder /etc/yum/repos.d/iabsis.repo 
 * Paste the following content. 

 ``` 
 [iabsis-repo] 
 enabled=1 
 priority=1 
 name=Iabsis Projects Repository 
 baseurl=https://projects.iabsis.com/repository/<name-of-projet>/redhat 
 gpgcheck=0 
 ```