README.md: update with instructions for autoport setup

This commit is contained in:
Silvan Calarco 2024-04-19 13:20:10 +02:00
parent 8643a7a57a
commit ce935177bd

View File

@ -17,7 +17,16 @@ Create and start a new container with:
A different name and local port mapping may be used as needed. A different name and local port mapping may be used as needed.
### Container management
Stop with:
`docker stop buildvm`
Restart with:
`docker start buildvm`
## Usage ## Usage
### Webbuild web interface
With a browser access the `webbuild` interface at: With a browser access the `webbuild` interface at:
`http://localhost` `http://localhost`
@ -37,10 +46,37 @@ Spawn a shell into the running container with:
Or as `autodist` user: Or as `autodist` user:
`docker exec -it --user autodist buildvm /bin/bash` `docker exec -it --user autodist buildvm /bin/bash`
### Autoport cron job
autoport is specifically intented for openmamba maintainer to port packages to required architectures.
The involced configuration is file:
## Management `/etc/sysconfig/autoport`
Stop with:
`docker stop buildvm`
Restart with: Autoport needs to be globally enabled with setting:
`docker start buildvm`
`AUTOPORT_ENABLE=1`
Port configurations are defined in the same file inside array variables, in this example we use
the first configuration with array index of `0`:
`AUTOPORT_ARCH[0]=aarch64
AUTOPORT_DISABLE[0]=
AUTOPORT_CHROOT_USER[0]=autodist
AUTOPORT_NATIVE[0]=1
AUTOPORT_REPOSITORIES[0]="devel-makedist devel-kernel devel-autodist devel-misc"
AUTOPORT_PORT_REPOSITORY[0]="#SELF"
AUTOPORT_BASE_REPOSITORY[0]="devel-autodist"
AUTOPORT_IMPORT_REPOSITORIES[0]="$AUTOPORT_DEVEL_IMPORT_REPOSITORIES"`
The command to run autoport batch process for configuration with index `0` is:
`docker exec -it buildvm /usr/bin/autoport-launcher 0`
Maintainer wants to add autoport as a cron job.
To do this you may set the cron job on the docker **host** by running `crontab -e` and adding the line:
`0 * * * * docker exec -it buildvm /usr/bin/autoport-launcher 0`
You may see a resume of port processes by opening the page:
`http://localhost/autobuilds.html`