conjurdemos / openkube

[DEPRECATED] Port of kubernetes demo that works with either Kubernetes minikube or Openshift minishift
4 stars 2 forks source link

authn-k8s 0.5.0-pre not playing nice with Docker container image #15

Open infamousjoeg opened 6 years ago

infamousjoeg commented 6 years ago
[root@openkube conjur_server_build]# curl -L -O https://github.com/conjurinc/authn-k8s/releases/download/0.5.0-pre/conjur-authn-k8s_0.5.0.1-5a91c89_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9    0     9    0     0     20      0 --:--:-- --:--:-- --:--:--    20
[root@openkube conjur_server_build]# cd ../..
[root@openkube openkube]# ./1_build_all.sh
~/openkube/build/conjur_server_build ~/openkube
Sending build context to Docker daemon   5.12kB
Step 1/8 : FROM conjur-appliance:4.9-stable
 ---> 605938c74267
Step 2/8 : ENV AUTHN_K8S_VERSION 0.5.0.1-5a91c89
 ---> Using cache
 ---> 009cf2bbfe33
Step 3/8 : COPY conjur-authn-k8s_${AUTHN_K8S_VERSION}_amd64.deb /tmp
 ---> Using cache
 ---> eb1ece97e8fa
Step 4/8 : RUN dpkg -i /tmp/conjur-authn-k8s_${AUTHN_K8S_VERSION}_amd64.deb
 ---> Running in 13365fa4aff0
dpkg-deb: error: `/tmp/conjur-authn-k8s_0.5.0.1-5a91c89_amd64.deb' is not a debian format archive
dpkg: error processing archive /tmp/conjur-authn-k8s_0.5.0.1-5a91c89_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /tmp/conjur-authn-k8s_0.5.0.1-5a91c89_amd64.deb
The command '/bin/sh -c dpkg -i /tmp/conjur-authn-k8s_${AUTHN_K8S_VERSION}_amd64.deb' returned a non-zero code: 1
[root@openkube openkube]#

I downloaded from GitHub Releases 0.5.0-pre into ./build/conjur_server_build then re-attempted the newly committed 1_build_all.sh to no avail.

infamousjoeg commented 6 years ago

Tested in current authn-k8s release v0.4.0:

[root@openkube openkube]# ./1_build_all.sh                                                                        
~/openkube/build/conjur_server_build ~/openkube                                                                   
Sending build context to Docker daemon   5.12kB                                                                   
Step 1/8 : FROM conjur-appliance:4.9-stable                                                                       
 ---> 605938c74267                                                                                                
Step 2/8 : ENV AUTHN_K8S_VERSION 0.4.0.1-5a91c89                                                                  
 ---> Running in 94243a0bc9f6                                                                                     
 ---> bc96ed110e6c                                                                                                
Removing intermediate container 94243a0bc9f6                                                                      
Step 3/8 : COPY conjur-authn-k8s_${AUTHN_K8S_VERSION}_amd64.deb /tmp                                              
 ---> eee5ca1ea1f2                                                                                                
Step 4/8 : RUN dpkg -i /tmp/conjur-authn-k8s_${AUTHN_K8S_VERSION}_amd64.deb                                       
 ---> Running in 2edd0f9383ba                                                                                     
dpkg-deb: error: `/tmp/conjur-authn-k8s_0.4.0.1-5a91c89_amd64.deb' is not a debian format archive                 
dpkg: error processing archive /tmp/conjur-authn-k8s_0.4.0.1-5a91c89_amd64.deb (--install):                       
 subprocess dpkg-deb --control returned error exit status 2                                                       
Errors were encountered while processing:                                                                         
 /tmp/conjur-authn-k8s_0.4.0.1-5a91c89_amd64.deb                                                                  
The command '/bin/sh -c dpkg -i /tmp/conjur-authn-k8s_${AUTHN_K8S_VERSION}_amd64.deb' returned a non-zero code: 1 

Same error.