selenoid
selenoid copied to clipboard
Raspberry Pi support ?
Hey guys ! I was wondering if raspberry pi support was an option ? I tried to install without success
Thanks !
You just have to compile binary itself.
чт, 20 февр. 2020 г., 07:08 Alexandre VLADOVICH [email protected]:
Hey guys ! I was wondering if raspberry pi support was an option ? I tried to install without success
Thanks !
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/875?email_source=notifications&email_token=AAKY23O4FLSIXHPKU7D3VCLRDX64ZA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IO3R34A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23ORC7MSLULZWFO3YKDRDX64ZANCNFSM4KYGXTPA .
Thanks for the reply.
I'm trying to compile but no success.
Did you mean go run main.go
?
Sorry I'm not familiar with Go language
edit:
go build main.go
is not working either :
./main.go:245:87: undefined: create
./main.go:246:45: undefined: proxy
./main.go:247:31: undefined: status
./main.go:248:32: undefined: welcome
./main.go:269:78: undefined: getSerial
./main.go:273:15: undefined: serial
./main.go:279:28: undefined: jsonParam
./main.go:280:3: undefined: listFilesAsJson
./main.go:327:18: undefined: request
./main.go:339:43: undefined: vnc
./main.go:339:43: too many errors
Ok I found a solution : built cm. Seems to be working. You can close this issue :)
Would you please share your experience to use selenoid on Raspberry PI? What is use case?
чт, 20 февр. 2020 г., 16:28 Alexandre VLADOVICH [email protected]:
Ok I found a solution : built cm. Seems to be working. You can close this issue :)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/875?email_source=notifications&email_token=AAKY23LFOBXWH4OINCHOTMDRD2AQXA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMN4KZQ#issuecomment-589022566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23IYU6FFMJAXVHAUYJLRD2AQXANCNFSM4KYGXTPA .
Hey sorry for not answering, been a bit busy lately.
What I want to do is to use selenoid for webscraping with my raspberry pi.
And no matter what I do, the docker container on the raspberry pi keeps restarting. I think it's because of ARM platform.
If you have a solution for that, that would be awesome.
@vlidu any log entries from Selenoid container would definitely help to diagnose.
@vania-pooh I get this error every time the container reboosts
standard_init_linux.go:211: exec user process caused "exec format error"
@vlidu yeah, this is because you have a Linux binary inside Docker container, whereas you need ARM. Just compile Selenoid from sources with GOARCH=arm
and build Docker image as shown here: https://aerokube.com/selenoid/latest/#_contributing_development.
But also you need browsers containers built for arm architecture...
ср, 26 февр. 2020 г., 16:43 Ivan Krutov [email protected]:
@vlidu https://github.com/vlidu yeah, this is because you have a Linux binary inside Docker container, whereas you need ARM. Just compile Selenoid from sources with GOARCH=arm and build Docker image as shown here: https://aerokube.com/selenoid/latest/#_contributing_development.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/875?email_source=notifications&email_token=AAKY23KITURG2RQFTALFSIDREZWZXA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENAIWTA#issuecomment-591432524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23LXQFLNRALV23YD2MLREZWZXANCNFSM4KYGXTPA .
I was able to build selenoid and selenoid ui and get both working on rpi4. The thing is with selenoid-images. I built with go build
selenium-images project and with GOARCH=arm and then i triggered executable directly on rpi4. It didn’t work.
Do you have any hints? How can i build browser images? Is it even possible atm?
Here is output:
pi@raspberrypi:~/SELENOID $ sudo ./selenoid-images firefox -b 79.0+build1-0ubuntu0.18.04.1 -d 0.26.0 --selenoid-version 1.10.0 -t selenoid/firefox:79.0
2020/09/02 17:08:36 running command: docker build -t selenoid/dev_firefox:79.0 --build-arg VERSION=79.0+build1-0ubuntu0.18.04.1 /tmp/selenoid-images356934398/firefox/apt
Sending build context to Docker daemon 2.56kB
Step 1/6 : FROM selenoid/base:7.0
7.0: Pulling from selenoid/base
7595c8c21622: Already exists
d13af8ca898f: Already exists
70799171ddba: Already exists
b6c12202c5ef: Already exists
f379101a4bec: Already exists
0737f1313e86: Already exists
0a73680ce893: Already exists
5671c717bacd: Already exists
a28729393224: Already exists
4dfbc92ae15e: Already exists
ba7dfb858f4e: Already exists
Digest: sha256:372a4c261f97abbf23627d197a30ab0687972cf6f6fdff285d33ce9949696abc
Status: Downloaded newer image for selenoid/base:7.0
---> f176a86368e1
Step 2/6 : ARG VERSION
---> Running in e64a7f4e4a5d
Removing intermediate container e64a7f4e4a5d
---> 1be329b4e713
Step 3/6 : ARG PACKAGE=firefox
---> Running in 096d946c7f47
Removing intermediate container 096d946c7f47
---> c0be2dfb78e1
Step 4/6 : ARG PPA
---> Running in 249aef7559a5
Removing intermediate container 249aef7559a5
---> c5f347e99c2b
Step 5/6 : LABEL browser=$PACKAGE:$VERSION
---> Running in 8e2dcc88e7c6
Removing intermediate container 8e2dcc88e7c6
---> e725730db7c3
Step 6/6 : RUN ( [ "$PPA" != "" ] && apt-get update && apt-get install -y software-properties-common && apt-get update && add-apt-repository -y $PPA ) || true && apt-get update && apt-get -y --no-install-recommends install iproute2 libavcodec57 $PACKAGE=$VERSION && ( [ "$PACKAGE" != "firefox" ] && ln /usr/bin/$PACKAGE /usr/bin/firefox ) || true && firefox --version && rm -Rf /tmp/* && rm -Rf /var/lib/apt/lists/*
---> Running in bdf7279767e7
standard_init_linux.go:211: exec user process caused "exec format error"
The command '/bin/sh -c ( [ "$PPA" != "" ] && apt-get update && apt-get install -y software-properties-common && apt-get update && add-apt-repository -y $PPA ) || true && apt-get update && apt-get -y --no-install-recommends install iproute2 libavcodec57 $PACKAGE=$VERSION && ( [ "$PACKAGE" != "firefox" ] && ln /usr/bin/$PACKAGE /usr/bin/firefox ) || true && firefox --version && rm -Rf /tmp/* && rm -Rf /var/lib/apt/lists/*' returned a non-zero code: 1
2020/09/02 17:08:44 command error: build dev image: command execution error: exit status 1
@mjevtovic that's strange because everything is expected to run inside Docker container. However knowing that Docker is reusing host machine kernel - probably firefox --version
command is causing this issue. Anyway we did not test building browser images under ARM, we are doing everything under Ubuntu amd64.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.