Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Use only one docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
misi committed Oct 25, 2023
1 parent 32ff1a5 commit bd76c3c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions static/chrome/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ COPY entrypoint.sh /

RUN \
chmod +x /usr/bin/chromedriver && \
chown -R selenium:nogroup /etc/opt/chrome/policies/managed/
chown -R selenium:nogroup /etc/opt/chrome/policies/managed/ && \
echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf

RUN echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf
USER selenium

EXPOSE 4444
Expand Down
6 changes: 3 additions & 3 deletions static/chromium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM selenoid/dev_chromium:$VERSION
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
COPY entrypoint.sh /

RUN chmod +x /usr/bin/chromedriver

RUN echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf
RUN \
chmod +x /usr/bin/chromedriver && \
echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf

USER selenium

Expand Down
6 changes: 3 additions & 3 deletions static/edge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
COPY msedgedriver /usr/bin/
COPY entrypoint.sh /

RUN chmod +x /usr/bin/msedgedriver

RUN echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf
RUN \
chmod +x /usr/bin/msedgedriver && \
echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf

USER selenium

Expand Down
6 changes: 3 additions & 3 deletions static/opera/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM selenoid/dev_opera:$VERSION
COPY operadriver_linux64/operadriver /usr/bin/
COPY entrypoint.sh /

RUN chmod +x /usr/bin/operadriver

RUN echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf
RUN \
chmod +x /usr/bin/operadriver && \
echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf

USER selenium

Expand Down
5 changes: 4 additions & 1 deletion static/yandex/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ FROM selenoid/dev_yandex:$VERSION
COPY yandexdriver /usr/bin/
COPY entrypoint.sh /

RUN chmod +x /usr/bin/yandexdriver
RUN \
chmod +x /usr/bin/yandexdriver && \
echo "cookie-file = ~/.config/pulse/cookie" >> /etc/pulse/client.conf

USER selenium

EXPOSE 4444
Expand Down

0 comments on commit bd76c3c

Please sign in to comment.