-
Notifications
You must be signed in to change notification settings - Fork 68
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 Build, Change config to be read from env variables, and pip requirements #3
Conversation
… for config, and pip requirements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just back from holidays, will have a look and test...
Hi @ned-kelly,
Any idea where this could come from? I've tried on Ubuntu 16.04 |
Hi @lolouk44
What happens if you run:
Do you get the terminal, or do you see the same error? Also in another note, I noticed you pushed the image up to your Docker Hub -- Could I suggest you add arguments to build for Have an awesome weekend! |
Thanks. The errors were due to Windows CRLF vs LF in ubuntu. I've fixed
that by converting the files using dos2unix on both files in src folder.
I'll look into the additional arch docker stuff tomorrow. Thanks mate
…On Sun, 15 Sep 2019 at 00:51, ned-kelly ***@***.***> wrote:
Any idea where this could come from? I've tried on Ubuntu 16.04
Hi @lolouk44 <https://github.com/lolouk44>
standard_init_linux.go:190 generally means the binary can't be found
(inside the container) -- so chances are the CMD or ENTRYPOINT file is
not where is should be in the container, OR you're trying to run a custom
command that's not installed in the container...
What happens if you run:
docker run --rm -it --privileged mi-scale_mi-scale bash
Do you get the terminal, or do you see the same error?
------------------------------
Also in another note, I noticed you pushed the image up to your Docker Hub
-- Could I suggest you add arguments to build for armv6 and armv7
<https://developer.ibm.com/linuxonpower/2017/07/27/create-multi-architecture-docker-image/#targetText=An%20individual%20manifest%20describes%20the,you%20group%20multiple%20images%20together.&targetText=When%20a%20user%20does%20a,on%20which%20it%20is%20running.>so
users can run your image on the raspberry/orange pi architectures also -
not just a regular x86_64 pc.
Have an awesome weekend!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=ABDABYULYIOU5HCH5T4JKCDQJV2JBA5CNFSM4ISZJN62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6XGF6Q#issuecomment-531522298>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDABYUT4L2GXMHVSBBQSNLQJV2JBANCNFSM4ISZJN6Q>
.
|
Think i've just managed to add at least an armv7 to my container. |
Looking at your tags on docker hub I'm pretty sure you're ok -- Users now just need to 'pull' the image, rather than build it on the device (which is a good thing since it's much quicker to just pull the pre-built image than build on the device). Unfortunately I can't test ARMv7, however if you do a ARMv6 build (Pi 1, model A & B) I'll test it as I'm running it on a Pi v1 - (and change my current setup to use your image) :) |
Thanks mate. |
Any idea why the command |
Hi @lolouk44 - Shouldn't be any issues manually building the container on a pi1 - HOWEVER you may find that your network adapter is too slow if you're trying to build over wifi and not with an ethernet pugged in, and that can cause all sorts of issues (including timeouts) -- That was my problem at least when trying to build it, and I couldn't be bothered running an ethernet cable to where my PI's located... The easiest thing to do is build the image locally on your pc (but in an emulated armv6 environment) then copy the built files onto the pi .... If you do end up building multi-arch images (like on the blog post linked) then you can just tag and push those images up to Dockerhub with a Manifest file, and you're done - You'll have multi-arch support for the miscale images :) The other option (if you're like me and you never update your software chances are you may be running an old docker without For example: Host with reliable Internet
On your pi
Then you can just do a docker build/ Last thing to note, is that Docker for the piv1 is pretty crappy in Raspbian -- You're better running Hypriotos on the earlier PI's - and putting EVERYTHING in a docker container (makes it easier to rebuild when your SD fails anyway ;) ) |
Thanks for all your help mate. Think I've just done it. If you don't mind trying and confirming please. |
Hi @lolouk44, Still not quite there... You need to include the TAGS for each arch in your docker repo --- Have a look at the tags for the different arch's on another project i've built as an example... I have a shell script to do the work on my CI/CD server, but you can adapt it for this project also if you like... Example: setup-multi-arch-build.sh.zip |
Thanks. Will look into your links, though I thought using docker desktop buildx allowed everything to be under the same latest tag? |
Took me a while but I think I managed to create the multi-arch tag. |
Add support for: