Giter VIP home page Giter VIP logo

docker-openwrt-buildroot's People

Contributors

andrewshulgin avatar cron410 avatar ddrown avatar noonien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-openwrt-buildroot's Issues

Error while pulling docker image

Hi, the following error message propped up as I used the following command, after running docker search.
Error:

FATA[0006] Tag latest not found in repository noonien/openwrt-buildroot

Is there any tag you need to update?

version on Docker Hub is outdated

... as I get:

Build dependency: Please install unzip.
Build dependency: Please install python.
Build dependency: Please install wget.

Make error because it tries openssl-1.0.1j.tar.gz (unavailable), instead of available openssl-1.0.1k.tar.gz

Probably something upstream, but I post it here anyway as the docker container is still not working for me. :-(

In the make, I have a problem with openssl. See logging below. Root cause seems to be the make is tyring to get openssl-1.0.1j.tar.gz on different URL, but that does not exist anymore; version is openssl-1.0.1k.tar.gz. That is availabe on ftp://ftp.openssl.org/source/openssl-1.0.1k.tar.gz

I don't know how to correct that.

EDIT:

$ grep 1.0.1 package/libs/openssl/*
package/libs/openssl/Makefile:PKG_VERSION:=1.0.1j

... so changed that to 1.0.1k and trying make again. TBC.

make[3]: Leaving directory '/home/openwrt/openwrt/package/libs/ocf-crypto-headers'
make[3]: Entering directory '/home/openwrt/openwrt/package/libs/openssl'
WARNING: skipping libopenssl -- package not selected
mkdir -p /home/openwrt/openwrt/dl
/home/openwrt/openwrt/scripts/download.pl "/home/openwrt/openwrt/dl" "openssl-1.0.1j.tar.gz" "f7175c9cd3c39bb1907ac8bba9df8ed3" "http://www.openssl.org/source/" "ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source" "ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/"
--2015-01-08 21:47:30--  http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Resolving www.openssl.org (www.openssl.org)... 185.9.166.106
Connecting to www.openssl.org (www.openssl.org)|185.9.166.106|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-01-08 21:47:30 ERROR 404: Not Found.

Download failed.
--2015-01-08 21:47:30--  ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.openssl.org/source/openssl-1.0.1j.tar.gz
           => '-'
Resolving ftp.funet.fi (ftp.funet.fi)... 193.166.3.2, 2001:708:10:9::20:2
Connecting to ftp.funet.fi (ftp.funet.fi)|193.166.3.2|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/crypt/mirrors/ftp.openssl.org/source ... 
No such directory 'pub/crypt/mirrors/ftp.openssl.org/source'.

Download failed.
--2015-01-08 21:47:31--  ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/openssl-1.0.1j.tar.gz
           => '-'
Resolving ftp.sunet.se (ftp.sunet.se)... 194.71.11.69, 2001:6b0:19::64
Connecting to ftp.sunet.se (ftp.sunet.se)|194.71.11.69|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/security/tools/net/openssl/source ... done.
==> SIZE openssl-1.0.1j.tar.gz ... done.
==> PASV ... done.    ==> RETR openssl-1.0.1j.tar.gz ... 
No such file 'openssl-1.0.1j.tar.gz'.

Download failed.
--2015-01-08 21:47:31--  http://mirror2.openwrt.org/sources/openssl-1.0.1j.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-01-08 21:47:31 ERROR 404: Not Found.

Download failed.
--2015-01-08 21:47:31--  http://downloads.openwrt.org/sources/openssl-1.0.1j.tar.gz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-01-08 21:47:31 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Makefile:201: recipe for target '/home/openwrt/openwrt/dl/openssl-1.0.1j.tar.gz' failed
make[3]: *** [/home/openwrt/openwrt/dl/openssl-1.0.1j.tar.gz] Error 2
make[3]: Leaving directory '/home/openwrt/openwrt/package/libs/openssl'
package/Makefile:173: recipe for target 'package/libs/openssl/compile' failed
make[2]: *** [package/libs/openssl/compile] Error 2
make[2]: Leaving directory '/home/openwrt/openwrt'
package/Makefile:170: recipe for target '/home/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/openwrt/openwrt'
/home/openwrt/openwrt/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2

vs. leesah/docker-openwrt-dev ?

I found that there is also a leesah/docker-openwrt-dev repository, which is published on the docker hub as openwrt/buildroot (which looks more official). This repository shared both contributors of this repository (noonien and ddrown), and is updated slightly more recently.
Which one should I use?

svn: E000113: Unable to connect to a repository at URL 'http://svn.luci.subsignal.org/luci/branches/luci-0.11/contrib/package

With

git://git.openwrt.org/12.09/openwrt.git

in Dockerfile file, I get:

Collecting package info: doneUpdating feed 'luci' from 'http://svn.luci.subsignal.org/luci/branches/luci-0.11/contrib/package' ...
svn: E000113: Unable to connect to a repository at URL 'http://svn.luci.subsignal.org/luci/branches/luci-0.11/contrib/package'
svn: E000113: Error running context: No route to host
failed.

Probably an upstream problem.
Anyway: I changed that part to

git://git.openwrt.org/14.07/openwrt.git

and have no error anymore

make: "collect2: error: ld returned 1 exit status"

Within the docker containger:

A "make" results in an error.
A "make V=s" results in detailed errors:

Tips how to solve this? Should I set things before doing the make?

Details: x86_64 system, with 512MB RAM.

cd home/openwrt/openwrt/
make
make V=s

...
make[6]: Entering directory '/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/gcc'
x86_64-linux-gnu-gcc   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o glibc-c.o \
  cc1-checksum.o libbackend.a main.o  libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lstdc++  -L/home/openwrt/openwrt/staging_dir/host/lib -L/home/openwrt/openwrt/staging_dir/host/lib -L/home/openwrt/openwrt/staging_dir/host/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -lstdc++ -L../zlib -lz
collect2: error: ld returned 1 exit status
/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04/gcc/c/Make-lang.in:78: recipe for target 'cc1' failed
make[6]: *** [cc1] Error 1
make[6]: Leaving directory '/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/gcc'
Makefile:3909: recipe for target 'all-gcc' failed
make[5]: *** [all-gcc] Error 2
make[5]: Leaving directory '/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final'
Makefile:857: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final'
Makefile:76: recipe for target '/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/.built' failed
make[3]: *** [/home/openwrt/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/.built] Error 2
make[3]: Leaving directory '/home/openwrt/openwrt/toolchain/gcc/final'
toolchain/Makefile:86: recipe for target 'toolchain/gcc/final/compile' failed
make[2]: *** [toolchain/gcc/final/compile] Error 2
make[2]: Leaving directory '/home/openwrt/openwrt'
toolchain/Makefile:85: recipe for target '/home/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install' failed
make[1]: *** [/home/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[1]: Leaving directory '/home/openwrt/openwrt'
/home/openwrt/openwrt/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2

Retrieve image?

Probably a noob question, but how does one get the image that's build out of the container? What's the workflow to get it copied to the device? Why not mount a volume?

Why one RUN?

Currently the Dockerfile only has one RUN command. This means we don't use the build cache, which means when a step fails it has to start from scratch. Why would you do it that way?
I understand from the Dockerfile best practices you shouldn't separate apt-get update and apt-get install, but why not put the rest in separate RUN's?

gcc-multilib for ARM64 CPU

It needs to be gcc-multilib-arm-linux-gnueabihf when build on ARM64 platforms or Docker build will fail.

github version: /bin/sh: 1: cannot create /etc/sudoers.d/openwrt: Directory nonexistent

I'm trying the github version on a host with Ubuntu 14.04 64-bit:

git clone https://github.com/noonien/docker-openwrt-buildroot.git
cd docker-openwrt-buildroot/
sudo docker build --no-cache -t docker-openwrt-buildroot-github .

which leads to:

Processing triggers for sgml-base ...
/bin/sh: 1: cannot create /etc/sudoers.d/openwrt: Directory nonexistent
INFO[0132] The command [/bin/sh -c apt-get update &&    apt-get install -y git-core subversion build-essential gcc-multilib                        libncurses5-dev zlib1g-dev gawk flex gettext wget unzip python &&    apt-get clean &&    useradd -m openwrt &&    echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt &&    sudo -iu openwrt git clone git://git.openwrt.org/12.09/openwrt.git &&    sudo -iu openwrt openwrt/scripts/feeds update] returned a non-zero code: 2 

Is this solvable?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.