Skip to content

Conversation

smccarthy
Copy link
Contributor

@smccarthy smccarthy commented Apr 25, 2017

I get the latest Firefox nightly image, and I also get the latest geckodriver too. I didn't know if it would be best to get the latest GeckoDriver, or have it set in the Dockerfile.

If this is wanted, I could also add the a standalone, standalone debug, and node debug image for nightly as well.

@cvakiitho
Copy link
Contributor

cvakiitho commented Sep 19, 2017

Hi @smccarthy , I'd love to use this image ( due to mozilla/geckodriver#858 ), but I'm getting following error when building it:

Step 1/20 : FROM selenium/node-base:

invalid reference format

Were you able to build this image on docker hub?

EDIT: Ok it seems that DockerFile was generated badly for me.

If anyone wants to give this a try: https://hub.docker.com/r/cvakiitho/firefox/

(ugh, node-base now has config generate in /opt/bin instead of /opt/selenium, fix is making its way into my image, but docker hub is now not building anything...)

@diemol
Copy link
Member

diemol commented Oct 31, 2017

Hi @smccarthy,

I am sorry that time passed and we didn't give you feedback.

In general, it is a good idea to have the nightly FF as an option. Nevertheless it is not optimal to add one image more to maintain.

Do you think that it is possible to make this work with the current Dockerfile for FF? Perhaps to have it working in the same way as the one for Chrome, where one can just specify the version as a parameter (such as google-chrome-beta) and then the image gets built.

Let me know your thoughts,

@smccarthy
Copy link
Contributor Author

@diemol I like that idea. That was actually the feedback I got on Slack when I first opened this PR, but I haven't had the time to update the PR. Maybe this week.

@smccarthy smccarthy closed this Dec 30, 2017
@smccarthy smccarthy reopened this Dec 30, 2017
RUN apt-get update -qqy \
RUN FIREFOX_DOWNLOAD_URL=$(if [ $FIREFOX_VERSION = "nightly" ]; then echo "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US"; else echo "https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2"; fi) \
&& apt-get update -qqy \
&& apt-get -qqy --no-install-recommends install firefox \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this in there. Is this needed if we get Firefox from Mozilla directly ?

Makefile Outdated
cd ./NodeFirefoxDebug && docker build $(BUILD_ARGS) -t $(NAME)/node-firefox-debug:$(VERSION) .

tag_nightly:
docker tag $(NAME)/node-firefox:$(VERSION) $(NAME)/node-firefox:nightly
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I delete this tag if I call docker build with -t on line 59?

@diemol diemol merged commit fbac4e8 into SeleniumHQ:master Jan 12, 2018
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

Successfully merging this pull request may close these issues.

4 participants