Remove disabeling service before build
This commit is contained in:
parent
7c6f2ea842
commit
33ad7df5cc
2 changed files with 0 additions and 12 deletions
containers
|
@ -4,10 +4,6 @@ set -l container_name advlabdb
|
|||
set -l container_volumes_dir ~/volumes/$container_name
|
||||
set -l repo_dir ~/code/advlabdb
|
||||
|
||||
if systemctl --user is-enabled container-$container_name
|
||||
systemctl --user disable --now container-$container_name
|
||||
end
|
||||
|
||||
cd $repo_dir
|
||||
buildah build --layers -t $container_name:latest
|
||||
|
||||
|
|
|
@ -10,14 +10,6 @@ buildah run builder -- dnf install -y iputils
|
|||
buildah run builder -- dnf autoremove -y
|
||||
buildah run builder -- dnf clean all
|
||||
|
||||
if systemctl --user is-enabled container-$container_name
|
||||
systemctl --user disable --now container-$container_name
|
||||
end
|
||||
|
||||
if podman image exists $container_name
|
||||
podman rmi $container_name
|
||||
end
|
||||
|
||||
buildah commit --rm builder $container_name
|
||||
|
||||
podman-default-create \
|
||||
|
|
Loading…
Add table
Reference in a new issue