#!/bin/bash
printf "\n\n================== ENTER DOCKER CONTAINER\n"

# Run private ENV variables
source ./private/private-env.sh

# Run docker (privileged mock/chroot, same caps as fedora:36 pkg_base)
docker run \
	--privileged \
	--cap-add=SYS_ADMIN \
	-e PKGBASEDIR \
	-e REPOUSERNAME \
	-e REPOURL \
	-e REPOSSHPORT \
	-v "$PKGPRIVATEBASEDIR/private/mount":/private-files \
	-v "$PKGPRIVATEBASEDIR/yumrepo/mount":/home/pkg/rsyslog-pkg-rhel-centos/yumrepo \
	-ti --rm rsyslog/rsyslog_dev_pkg_base_rocky:9
