|
|
|
# System upgrade
|
|
|
|
```
|
|
|
|
zypper --releasever=15.3 lr -u
|
|
|
|
zypper --releasever=15.3 ref
|
|
|
|
zypper --releasever=15.3 dup
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Check repo URLs
|
|
|
|
2. Refresh repositories
|
|
|
|
3. Perform distribution upgrade
|
|
|
|
|
|
|
|
Run in a screen session.
|
|
|
|
|
|
|
|
# Start gitlab-runner
|
|
|
|
After system update start gitlab-runner:
|
|
|
|
```
|
|
|
|
sudo /usr/sbin/rcgitlab-runner start
|
|
|
|
```
|
|
|
|
|
|
|
|
~~And for now start gitlab-runner with podman custom executor:~~
|
|
|
|
```
|
|
|
|
sudo su
|
|
|
|
su gitlab-runner
|
|
|
|
/usr/sbin/gitlab-runner run
|
|
|
|
```
|
|
|
|
# Setting up POWER8/9 openSUSE for CI
|
|
|
|
|
|
|
|
1. Install `podman` and `fuse3`
|
|
|
|
2. Add user to subuids and subgids as described in this [ticket](https://github.com/containers/libpod/issues/1182) or better by executing as suggested in [ticket 2542](https://github.com/containers/libpod/issues/2542):
|
|
|
|
```
|
|
|
|
sudo touch /etc/sub{u,g}id
|
|
|
|
sudo usermod --add-subuids 10000-75535 gitlab-runner
|
|
|
|
sudo usermod --add-subgids 10000-75535 gitlab-runner
|
|
|
|
rm /run/user/gitlab-runner/libpod/pause.pid
|
|
|
|
```
|
|
|
|
if you see this error from `podman version`
|
|
|
|
```
|
|
|
|
ERRO[0000] cannot find mappings for user <user>: No subuid ranges found for user "<user>" in /etc/subuid
|
|
|
|
```
|
|
|
|
# Uploading initial openSUSE Leap image
|
|
|
|
You can skip this step, now. Podman configuration includes the openSUSE docker repository.
|
|
|
|
|
|
|
|
For reference we keep this section.
|
|
|
|
|
|
|
|
See [container-registry-opensuse](https://github.com/gbraad/container-registry-opensuse) on github.
|
|
|
|
|
|
|
|
Find image at [openSUSE registry](https://registry.opensuse.org/cgi-bin/cooverview)
|
|
|
|
```
|
|
|
|
podman pull docker://registry.opensuse.org/opensuse/leap:15.1
|
|
|
|
podman tag leap:15.1.1.165 gitlab.haskell.org/trommler/leap:15.1.1.165
|
|
|
|
podman push gitlab.haskell.org/trommler/leap:15.1.1.165
|
|
|
|
```
|
|
|
|
# Add gitlab-runner custom executor
|
|
|
|
Follow the [instructions](https://tech.immerda.ch/2019/10/gitlab-ci-with-podman/)
|
|
|
|
by Immerda of Switzerland.
|
|
|
|
|
|
|
|
A [repository](https://github.com/jonasbb/podman-gitlab-runner) with further information and interesting links. Also check out [issue 5](https://github.com/jonasbb/podman-gitlab-runner/issues/5).
|
|
|
|
|
|
|
|
# Required packages
|
|
|
|
* `dejavu-fonts`
|
|
|
|
|
|
|
|
# Use Buildah instead of dind
|
|
|
|
Follow [instructions](https://medium.com/prgcont/using-buildah-in-gitlab-ci-9b529af19e42). [Best practices](https://developers.redhat.com/blog/2019/08/14/best-practices-for-running-buildah-in-a-container)
|
|
|
|
explains configurations we might want to consider.
|
|
|
|
|
|
|
|
# Use podman with docker executor
|
|
|
|
From version 15.3 GitLab supports podman as a drop-in replacement for docker. Check out [documentation](https://docs.gitlab.com/runner/executors/docker.html#use-podman-to-run-docker-commands).
|
|
|
|
|
|
|
|
# Kaniko images
|
|
|
|
Project-Kaniko stopped building debug images for powerpc64le at some point. I want to resurrect debug images and while I am waiting to upstream my work I want to be able to use it to build CI images here.
|
|
|
|
## Remap Google's Docker repository
|
|
|
|
# System upgrade
|
|
|
|
```
|
|
|
|
zypper --releasever=15.3 lr -u
|
|
|
|
zypper --releasever=15.3 ref
|
|
|
|
zypper --releasever=15.3 dup
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Check repo URLs
|
|
|
|
2. Refresh repositories
|
|
|
|
3. Perform distribution upgrade
|
|
|
|
|
|
|
|
Run in a screen session.
|
|
|
|
|
|
|
|
# Install gitlab-runner
|
|
|
|
```
|
|
|
|
zypper ar https://download.opensuse.org/repositories/home:/ptrommler:/branches:/home:/darix:/apps/\$releasever gitlab
|
|
|
|
zypper mr -f 1 # enable auto refresh on gitlab repository
|
|
|
|
zypper in gitlab-runner
|
|
|
|
zypper in gitlab-runner-docker
|
|
|
|
```
|
|
|
|
|
|
|
|
# Start gitlab-runner
|
|
|
|
After system update start gitlab-runner:
|
|
|
|
```
|
|
|
|
sudo /usr/sbin/rcgitlab-runner start
|
|
|
|
```
|
|
|
|
|
|
|
|
~~And for now start gitlab-runner with podman custom executor:~~
|
|
|
|
```
|
|
|
|
sudo su
|
|
|
|
su gitlab-runner
|
|
|
|
/usr/sbin/gitlab-runner run
|
|
|
|
```
|
|
|
|
# Setting up POWER8/9 openSUSE for CI
|
|
|
|
|
|
|
|
1. Install `podman` and `fuse3`
|
|
|
|
2. Add user to subuids and subgids as described in this [ticket](https://github.com/containers/libpod/issues/1182) or better by executing as suggested in [ticket 2542](https://github.com/containers/libpod/issues/2542):
|
|
|
|
```
|
|
|
|
sudo touch /etc/sub{u,g}id
|
|
|
|
sudo usermod --add-subuids 10000-75535 gitlab-runner
|
|
|
|
sudo usermod --add-subgids 10000-75535 gitlab-runner
|
|
|
|
rm /run/user/gitlab-runner/libpod/pause.pid
|
|
|
|
```
|
|
|
|
if you see this error from `podman version`
|
|
|
|
```
|
|
|
|
ERRO[0000] cannot find mappings for user <user>: No subuid ranges found for user "<user>" in /etc/subuid
|
|
|
|
```
|
|
|
|
# Uploading initial openSUSE Leap image
|
|
|
|
You can skip this step, now. Podman configuration includes the openSUSE docker repository.
|
|
|
|
|
|
|
|
For reference we keep this section.
|
|
|
|
|
|
|
|
See [container-registry-opensuse](https://github.com/gbraad/container-registry-opensuse) on github.
|
|
|
|
|
|
|
|
Find image at [openSUSE registry](https://registry.opensuse.org/cgi-bin/cooverview)
|
|
|
|
```
|
|
|
|
podman pull docker://registry.opensuse.org/opensuse/leap:15.1
|
|
|
|
podman tag leap:15.1.1.165 gitlab.haskell.org/trommler/leap:15.1.1.165
|
|
|
|
podman push gitlab.haskell.org/trommler/leap:15.1.1.165
|
|
|
|
```
|
|
|
|
# Add gitlab-runner custom executor
|
|
|
|
Follow the [instructions](https://tech.immerda.ch/2019/10/gitlab-ci-with-podman/)
|
|
|
|
by Immerda of Switzerland.
|
|
|
|
|
|
|
|
A [repository](https://github.com/jonasbb/podman-gitlab-runner) with further information and interesting links. Also check out [issue 5](https://github.com/jonasbb/podman-gitlab-runner/issues/5).
|
|
|
|
|
|
|
|
# Required packages
|
|
|
|
* `dejavu-fonts`
|
|
|
|
|
|
|
|
# Use Buildah instead of dind
|
|
|
|
Follow [instructions](https://medium.com/prgcont/using-buildah-in-gitlab-ci-9b529af19e42). [Best practices](https://developers.redhat.com/blog/2019/08/14/best-practices-for-running-buildah-in-a-container)
|
|
|
|
explains configurations we might want to consider.
|
|
|
|
|
|
|
|
# Use podman with docker executor
|
|
|
|
From version 15.3 GitLab supports podman as a drop-in replacement for docker. Check out [documentation](https://docs.gitlab.com/runner/executors/docker.html#use-podman-to-run-docker-commands).
|
|
|
|
|
|
|
|
# Kaniko images
|
|
|
|
Project-Kaniko stopped building debug images for powerpc64le at some point. I want to resurrect debug images and while I am waiting to upstream my work I want to be able to use it to build CI images here.
|
|
|
|
## Remap Google's Docker repository
|
|
|
|
I need a way to remap Google's docker repo to mine on gitlab. Refer to Redhat's [documentation](https://www.redhat.com/sysadmin/manage-container-registries) Sections "Remapping references" and "Advanced configuration management via drop-on config files". |
|
|
\ No newline at end of file |