Skip to content

Instantly share code, notes, and snippets.

@tvon
Last active February 9, 2017 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvon/2a9f633546d951b9a083edf680702fca to your computer and use it in GitHub Desktop.
Save tvon/2a9f633546d951b9a083edf680702fca to your computer and use it in GitHub Desktop.
minikube-iso-builder
docker build --rm -t minikube-iso-builder .
cd /path/to/kubernetes/minikube
docker run --rm -it -v "$PWD:/usr/local/src" minikube-iso-builder make minikube-iso
FROM golang:1.6
RUN dpkg --add-architecture i386 \
&& apt-get -q update \
&& apt-get -q -y upgrade \
&& apt-get -y install \
automake \
bc \
build-essential \
bzr \
cpio \
cvs \
gcc-multilib \
git \
gnupg \
golang-go \
libc6:i386 \
libncurses5-dev \
libtool \
locales \
mercurial \
p7zip-full \
python \
rsync \
subversion \
unzip \
vim \
wget \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -c -f UTF-8 -i en_US en_US.UTF-8
WORKDIR /usr/local/src
VOLUME /usr/local/src
CMD ["/bin/bash"]
@tvon
Copy link
Author

tvon commented Feb 9, 2017

Build fails on

gpg2 --trusted-key  --verify-files "/usr/local/src/out/buildroot/dl"/rkt-v1.23.0.tar.gz.asc
gpg: `--verify-files' is not a valid long keyID

This is from deploy/iso/minikube-iso/package/rkt-bin/rkt-bin.mk:

  gpg2 \
    --trusted-key $(shell gpg2 --with-colons --keyid-format LONG -k security@coreos.com | egrep ^pub | cut -d ':' -f5) \
    --verify-files $(BR2_DL_DIR)/rkt-v$(RKT_BIN_VERSION).tar.gz.asc

The $(shell gpg2 --with-colons --keyid-format LONG -k security@coreos.com | egrep ^pub | cut -d ':' -f5) comes back empty in this context, though if I get the key (by running that commend in the build and copying the value out) the gpg2 command succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment