cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15205
Views
1
Helpful
3
Replies

building docker image for ie4k does not work

Hey Community,

I am trying to build a simple python app for ie4k. I am following this guide: https://developer.cisco.com/docs/iox/#!tutorial-build-sample-docker-type-python-simple-app/overview

So I set up ubuntu, installed docker and tried to build the image like this way:

Dockerfile:

FROM devhub-docker.cisco.com/iox-docker/ie4k/base-rootfs

RUN opkg update && opkg install python

COPY main.py /main.py

CMD python /main.py

sudo docker build -t helloiox .

Then I got the following errors:

Sending build context to Docker daemon   62.6MB

Step 1/4 : FROM devhub-docker.cisco.com/iox-docker/ie4k/base-rootfs

---> 0ec1d65ae4c6

Step 2/4 : RUN opkg update && opkg install python

---> Running in 322f49b486ac

Collected errors:

* opkg_validate_cached_file: Failed to download https://devhub.cisco.com/artifactory/IOx-Opkg//yocto-1.7.2/ie4k/464/Packages.gz headers: HTTP response code said error.

* opkg_validate_cached_file: Failed to download https://devhub.cisco.com/artifactory/IOx-Opkg//yocto-1.7.2/ie4k/ie4k_lxc/Packages.gz headers: HTTP response code said error.

* opkg_validate_cached_file: Failed to download https://devhub.cisco.com/artifactory/IOx-Opkg//yocto-1.7.2/ie4k/../all/Packages.gz headers: HTTP response code said error.

* opkg_validate_cached_file: Failed to download https://devhub.cisco.com/artifactory/IOx-Opkg-alpha//yocto-1.7.2/ie4k/464/Packages.gz headers: HTTP response code said error.

* opkg_validate_cached_file: Failed to download https://devhub.cisco.com/artifactory/IOx-Opkg-alpha//yocto-1.7.2/ie4k/ie4k_lxc/Packages.gz headers: HTTP response code said error.

* opkg_validate_cached_file: Failed to download https://devhub.cisco.com/artifactory/IOx-Opkg-alpha//yocto-1.7.2/ie4k/../all/Packages.gz headers: HTTP response code said error.

Downloading https://devhub.cisco.com/artifactory/IOx-Opkg//yocto-1.7.2/ie4k/464/Packages.gz.

Downloading https://devhub.cisco.com/artifactory/IOx-Opkg//yocto-1.7.2/ie4k/ie4k_lxc/Packages.gz.

Downloading https://devhub.cisco.com/artifactory/IOx-Opkg//yocto-1.7.2/ie4k/../all/Packages.gz.

Downloading https://devhub.cisco.com/artifactory/IOx-Opkg-alpha//yocto-1.7.2/ie4k/464/Packages.gz.

Downloading https://devhub.cisco.com/artifactory/IOx-Opkg-alpha//yocto-1.7.2/ie4k/ie4k_lxc/Packages.gz.

Downloading https://devhub.cisco.com/artifactory/IOx-Opkg-alpha//yocto-1.7.2/ie4k/../all/Packages.gz.

The command '/bin/sh -c opkg update && opkg install python' returned a non-zero code: 6

Could you tell me why this is not working?

Thanks in advance!

BR,

Oli

3 Replies 3

Steve Zhang
Cisco Employee
Cisco Employee

it is about network problem. I guess you need to add the http/https proxies for Docker in Ubuntu.

For details, please refer to https://docs.docker.com/network/proxy/.

Hi Steve,

it is no network problem. Internet connection is working fine and I do not use a proxy. I have direct internet access.

What´s the problem here? When I switch into the container and do "cat opkg.conf" I see username and pwd. I think docker -login was putting username and pwd automatically in opkg.conf. When I copy those links above in a browser, authentication and download are working fine. But not while building docker container.

Is there nobody out there, who tried to build a docker for ie4k???

or, you did not login devhub.cisco.com successfully.

Please try to refer to the guide of https://developer.cisco.com/docs/iox/#!docker-images-and-packages-repository. And please note the API key listed there is not new, it is renewed to "AKCp5bAif2TtEvpouKmHpjWk5Jc94TXHv6vbD5QhqVuRutE16ZJXKSz2eSvrZUrceL4Ve6eF1" now.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: