Skip to content

Rune to run koji in a container #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/project/development-process/koji-initial-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,30 @@ In some cases, we've found that the `cert` directive in `~/.koji/config ` was no
## Test your connection
`koji moshimoshi`. If it greats you (in any language), then your connection to the server works.

## Koji in Docker container

When your Linux distribution doesn't have a useable `koji`, you can always run it in a container.

Prepare an image:
```
docker build -t koji:latest - <<EOF
FROM fedora:41
RUN dnf install -qy koji
EOF
```

Then, to run koji with it, which will use the `~/.koji` directory that you've prepared outside the container:
```
docker run -it --rm -v$HOME/.koji:/root/.koji:ro koji:latest koji moshimoshi
```

### Alternative as a one-liner

This command does the same as above, but relies on docker caching the result of a `docker build`:
```
docker run -it --rm -v$HOME/.koji:/root/.koji:ro $(docker build -q - <<<$'FROM fedora:41\nRUN dnf install -qy koji') koji moshimoshi
```

## Useful commands

Just a quick list. Make sure to have read and understood our [development process tour](../../../category/development-process).
Expand Down