Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker error Windows 7 #27

Open
peterbmckinley opened this issue May 7, 2023 · 5 comments
Open

Docker error Windows 7 #27

peterbmckinley opened this issue May 7, 2023 · 5 comments

Comments

@peterbmckinley
Copy link

Docker

@DrPicklez
Copy link

Try this:
docker build --no-cache --output type=tar,dest=- . | tar x -f - -C dist

I found that on windows you have to specify the file "-f" , which in this case is the pipe "-"

@MyVanitar
Copy link

@DrPicklez

I face this error in Windows:

$ docker build --output type=tar,dest=- . | (mkdir -p dist && tar x -C dist)
Dockerfile:22
--------------------
  20 |     # reset Buildroot config and trigger Linux kernel rebuild
  21 |     WORKDIR /root/buildroot
  22 | >>> RUN BR2_EXTERNAL=/root/licheepi-nano make licheepi_nano_defconfig
  23 |     RUN cd output/build/uboot-v2021.01-f1c100s-4/ && rm .stamp_built .stamp_*installed
  24 |     RUN cd output/build/host-uboot-tools-2021.07/ && rm .stamp_built .stamp_*installed
--------------------
ERROR: failed to solve: process "/bin/sh -c BR2_EXTERNAL=/root/licheepi-nano make licheepi_nano_defconfig" did not complete successfully: exit code: 2

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/brp1m6xkvni0ppxe8xe9xd0ae
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

@DrPicklez
Copy link

Sorry this is a while ago I looked at this, it looks like tar is complaining. Maybe it's the arguments.
Try
docker build --output type=tar,dest=- . | (mkdir -p dist && tar -x -C dist)
Notice the `-x' not 'x'

Otherwise I think this board is on u-boot.

@MyVanitar
Copy link

Thank you for your reply but the same error

The problem is this line in the Docker file: BR2_EXTERNAL=/root/licheepi-nano make licheepi_nano_defconfig

The GitHub owner does not maintain or update this repo, so I think it's waste of time

@DrPicklez
Copy link

Agreed, and might be outdated.
Good luck!
If you are after a quick image to test your board I think I got an image straight from the sipeed website, they're also very quick to reply by email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants