Adding the expect script to sign
This commit is contained in:
@@ -3,7 +3,7 @@ FROM quay.io/podman/stable:latest
|
|||||||
# Adding on the docker alias, docker-compose and other useful stuff
|
# Adding on the docker alias, docker-compose and other useful stuff
|
||||||
RUN dnf install -y podman-docker buildah skopeo docker-compose \
|
RUN dnf install -y podman-docker buildah skopeo docker-compose \
|
||||||
util-linux ansible-core openssh-clients krb5-devel krb5-libs krb5-workstation git jq unzip coreutils \
|
util-linux ansible-core openssh-clients krb5-devel krb5-libs krb5-workstation git jq unzip coreutils \
|
||||||
helm doctl kubernetes-client gnupg2 pinentry
|
helm doctl kubernetes-client gnupg2 pinentry expect
|
||||||
|
|
||||||
# Adding the Azure CLI
|
# Adding the Azure CLI
|
||||||
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc \
|
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc \
|
||||||
@@ -21,6 +21,9 @@ RUN dnf install -y rpm-build rpm-sign rubygems ruby-devel gcc gcc-c++ make libff
|
|||||||
|
|
||||||
RUN gem install ffi \
|
RUN gem install ffi \
|
||||||
&& gem install fpm
|
&& gem install fpm
|
||||||
|
COPY rpm-sign-expect /usr/bin
|
||||||
|
|
||||||
|
RUN chmod +x /usr/bin/rpm-sign-expect
|
||||||
|
|
||||||
# Remove the Emulate Docker CLI using podman messages
|
# Remove the Emulate Docker CLI using podman messages
|
||||||
RUN touch /etc/containers/nodocker
|
RUN touch /etc/containers/nodocker
|
||||||
13
rpm-sign-expect
Normal file
13
rpm-sign-expect
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/expect -f
|
||||||
|
|
||||||
|
set rpm [lindex $argv 0]
|
||||||
|
set passphrase [lindex $argv 1]
|
||||||
|
set email [lindex $argv 2]
|
||||||
|
set name [lindex $argv 3]
|
||||||
|
|
||||||
|
### rpm-sign-expect -- Sign RPMs by sending passphrase and other elements
|
||||||
|
|
||||||
|
spawn rpm --define "_gpg_name $name <$email>" --addsign $rpm
|
||||||
|
expect -exact "Enter pass phrase: "
|
||||||
|
send -- "$passphrase\r"
|
||||||
|
expect eof
|
||||||
Reference in New Issue
Block a user