I created the CaseSensitive volume. Copied the sh file on a directory /Volumes/CaseSensitive/elkbuild/workdir
. Here is my sequence:
docker run -it --rm -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir busybox chown -R 1000:1000 /workdir
mkdir /Volumes/CaseSensitive/elkbuild
mkdir /Volumes/CaseSensitive/elkbuild/workdir
Then I open a bash session and manually copy the file:
docker run -it --rm -v /Users/user/location/Elk/SW/:/SW -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir bash
Then I try to install the toolchain. But I get an error.
CaseSensitive $ docker run -it --rm -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir busybox chown -R 1000:1000 /workdir
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
bdbbaa22dec6: Pull complete
Digest: sha256:6915be4043561d64e0ab0f8f098dc2ac48e077fe23f488ac24b665166898115a
Status: Downloaded newer image for busybox:latest
CaseSensitive $ cp /SW/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh /workdir/
cp: directory /workdir does not exist
CaseSensitive $ docker run -it --rm -v /Users/location/Elk/SW/:/SW -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir bash
bash-5.0# cp /SW/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh /workdir/
bash-5.0# ls /workdir/
elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh
bash-5.0# exit
exit
CaseSensitive $ docker run --rm -it -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir crops/extsdk-container --url /workdir/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh
Unable to find image 'crops/extsdk-container:latest' locally
latest: Pulling from crops/extsdk-container
0a01a72a686c: Pull complete
cc899a5544da: Pull complete
19197c550755: Pull complete
716d454e56b6: Pull complete
5a3ee5b98d0c: Pull complete
583476fc4e3c: Pull complete
8aca12f7c43a: Pull complete
15774e0ad4e8: Pull complete
fb69732d8be9: Pull complete
6ad118a8a032: Pull complete
91d36b431fe1: Pull complete
Digest: sha256:7c61541a79800b427945402b73d26aacf994fedba4673b5ffb669bedc74233cb
Status: Downloaded newer image for crops/extsdk-container:latest
Traceback (most recent call last):
File "/usr/bin/esdk-launch.py", line 101, in <module>
os.chmod(esdk_installer, stat.S_IXUSR | oldmode)
OSError: [Errno 1] Operation not permitted: '/workdir/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh'
Running with sudo
gives me a different kind of error:
sudo docker run --rm -it -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir crops/extsdk-container --url /workdir/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh
Password:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
So I went back and run again:
docker run -it --rm -v /Volumes/CaseSensitive/elkbuild/workdir:/workdir busybox chown -R 1000:1000 /workdir
cp /Users/myuser/Elk/SW/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh /Volumes/CaseSensitive/elkbuild/workdir
The run this what appeared to be successful because it started like this:
ELK Poky based distribution for Yocto Project SDK installer version 1.0 =======================================================================
You are about to install the SDK to "/workdir". Proceed [Y/n]? Y
Extracting SDK........................tar: ./sysroots/x86_64-pokysdk-linux/usr/libexec/arm-elk-linux-gnueabi/gcc/arm-elk-linux-gnueabi/8.3.0/cc1plus: Wrote only 3584 of 10240 bytes
.tar: ./sysroots/x86_64-pokysdk-linux/usr/libexec/arm-elk-linux-gnueabi/gcc/arm-elk-linux-gnueabi/8.3.0/plugin/gengtype: Cannot write: No space left on device
Followed by an infinity of similar failures: tar: ./sysroots/x86_64-pokysdk-linux/lib/libnss_files-2.29.so: Cannot write: No space left on device
.
Since my volume was only 6Gb then I resized it and repeated with 22Gb this time. I got exactly the same errors.
I also tried
CaseSensitive $ docker run --rm -it -v /volumes/casesensitive/elkbuild/workdir:/workdir crops/extsdk-container
sudo: unknown user: sdkuser
sudo: unable to initialize policy plugin
I guess I am about to set up a Ubuntu machine. Can’t get docker to work on my OSX El Capitan.
Any ideas? Help. Thanks.