Skip to content

A Fedora container with mock for building packages

License

Notifications You must be signed in to change notification settings

ImBearChild/podmock

 
 

Repository files navigation

Podmock

[中文/Chinese]

A mock container image built on Fedora.

Pull

You can pull from Docker.io:

podman pull docker.io/imbearchild/podmock

Run

Create the directories to be used for the mock config files and mock build directory.

mkdir -p ~/mock/{etc,var,root,cache}

You can then run the container, since the mock command is the entrypoint you can pass any options relavent to mock.

podman run --rm --privileged --tty -i \
             -v $MOCK_DIR/etc:/etc/mock:z \
             -v $MOCK_DIR/var:/var/lib/mock:z \
             -v $MOCK_DIR/root:/root:z \
             -v $MOCK_DIR/cache:/var/cache/mock:z \
             -v /:/media/root \
             -v $(pwd):/media/workdir \
             imbearchild/podmock \
             mock

About

A Fedora container with mock for building packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 93.7%
  • Dockerfile 6.3%