Added functions.sh to support opkg-install https://dev.openwrt.org/brows... #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jeff, I had a terrible time trying to get busybox/Dockerfile to run. Everytime I attempted to build it would error out with:
vagrant@dockerbuntu:~/busybox$ docker build .
Sending build context to Docker daemon 11.4 MB
Sending build context to Docker daemon
Step 0 : FROM scratch
---> 511136ea3c5a
Step 1 : MAINTAINER Jeff Lindsay progrium@gmail.com
---> Using cache
---> f7c868d1d092
Step 2 : ADD ./rootfs.tar /
---> Using cache
---> 19fd31a41b13
Step 3 : ADD ./opkg.conf /etc/opkg.conf
---> Using cache
---> b32f6f6626ab
Step 4 : ADD ./opkg-install /usr/bin/opkg-install
---> Using cache
---> 04d9c0b14f20
Step 5 : RUN opkg-cl install http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/libgcc_4.8-linaro-1_x86_64.ipk
---> Running in 16cdc12799cf
Downloading http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/libgcc_4.8-linaro-1_x86_64.ipk.
Installing libgcc (4.8-linaro-1) to root...
//usr/lib/opkg/info/libgcc.postinst: .: line 3: can't open '/lib/functions.sh'
Configuring libgcc.
Collected errors:
2014/10/11 17:27:30 The command [/bin/sh -c opkg-cl install http://downloads.openwrt.org/snapshots/trunk/x86_64/packages/base/libgcc_4.8-linaro-1_x86_64.ipk] returned a non-zero code: 255
Turns out functions.sh (https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/functions.sh) was missing, I'm not 100% sure why this file isn't included in opkg or if it's deliberate but using wget and putting into /lib solved the issue for me.
Decided to add the file to the container.
Thanks