19 lines
604 B
Fish
Executable file
19 lines
604 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
set -l container_name internet-login
|
|
set -l container_volumes_dir ~/volumes/$container_name
|
|
|
|
buildah rm builder &>/dev/null
|
|
buildah from --pull --name builder registry.fedoraproject.org/fedora:latest
|
|
buildah run builder -- dnf upgrade -y
|
|
buildah run builder -- dnf install -y iputils
|
|
buildah run builder -- dnf autoremove -y
|
|
buildah run builder -- dnf clean all
|
|
|
|
buildah commit --rm builder $container_name
|
|
|
|
podman-default-create \
|
|
$container_name \
|
|
-v $container_volumes_dir:/volumes/script:Z,ro \
|
|
localhost/$container_name:latest \
|
|
/volumes/script/login.sh monitor
|