diff --git a/README.md b/README.md index a2829f4..8c6f087 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,16 @@ Create and start a new container with: 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 + +### Webbuild web interface With a browser access the `webbuild` interface at: `http://localhost` @@ -37,10 +46,37 @@ Spawn a shell into the running container with: Or as `autodist` user: `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 -Stop with: -`docker stop buildvm` +`/etc/sysconfig/autoport` -Restart with: -`docker start buildvm` +Autoport needs to be globally enabled with setting: + +`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`