You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will add that this is an issue for CentOS as well.
The build process runs as user vaultwarden.
Step 12 of the build process is to create the user vaultwarden.
Setp 13 of the build process is for the unprivileged user vaultwarden to update the system.
This is where the build process dies.
Describe the bug
Build process fails with both Fedora and CentOS base iagmes
To Reproduce
Steps to reproduce the behavior:
sudo ./setup.sh
Expected behavior
Builds vaultwarden docker image
Desktop (please complete the following information):
Fedora 35 base image
CentOS 8 base image
sudo su - vaultwarden -c podman build -t centos-vaultwarden:latest --build-arg admpass=HJKZffKtVBGA35as --build-arg OS=CentOS --build-arg HTTPS=443 -v /home/vaultwarden/.persistent_storage/vaultwarden:/var/lib/vaultwarden:Z -f /home/vaultwarden/.persistent_storage/project/Dockerfile
STEP 1/69: FROM scratch
STEP 2/69: LABEL maintainer="szfd9g szfd9g@live.fr"
STEP 3/69: ENV DISTTAG=f35container FGC=f35 FBR=f35 container=podman
STEP 4/69: ENV DNFOPTION="--setopt=install_weak_deps=False --nodocs"
STEP 5/69: ENV DB_BACKUP enabled
STEP 6/69: ENV LANG C.UTF8
STEP 7/69: ENV TERM=xterm
STEP 8/69: ARG admpass
STEP 9/69: ARG OS
STEP 10/69: ARG HTTPS
STEP 11/69: ADD layer.tar /
STEP 12/69: RUN printf "Create Vaultwarden user \n" && adduser -u 10502 --shell /bin/bash --comment "Vaultwarden RS User Service" --user-group -m vaultwarden
Create Vaultwarden user
STEP 13/69: RUN printf "System update \n" && dnf makecache && dnf -y upgrade dnf rpm yum libmodulemd $DNFOPTION && dnf -y upgrade $DNFOPTION
System update
CentOS Linux 8 - AppStream 105 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Error: building at STEP "RUN printf "System update \n" && dnf makecache && dnf -y upgrade dnf rpm yum libmodulemd $DNFOPTION && dnf -y upgrade $DNFOPTION": while running runtime: exit status 1
Something goes wrong during build operation centos-vaultwarden:latest
The text was updated successfully, but these errors were encountered: