Add Firefox base image
This commit is contained in:
Родитель
639cd899fc
Коммит
00c9dfc996
|
@ -64,6 +64,18 @@ workflows:
|
|||
imageName: docker
|
||||
requires:
|
||||
- build-docker
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
|
||||
- build-image:
|
||||
name: build-firefox
|
||||
imageName: firefox
|
||||
|
||||
- deploy-image:
|
||||
imageName: firefox
|
||||
requires:
|
||||
- build-firefox
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
|
@ -0,0 +1,35 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
LABEL maintainer="Michael Cooper <mcooper@mozilla.com>"
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
gnupg \
|
||||
make \
|
||||
openssh-client \
|
||||
software-properties-common
|
||||
|
||||
# Install Firefox dependencies (but not Firefox)
|
||||
RUN apt-get install -y $(apt-cache depends firefox | awk '/Depends/ {print $2}')
|
||||
|
||||
# Install node
|
||||
RUN apt-get install -y nodejs npm
|
||||
RUN apt-get install apt-transport-https
|
||||
|
||||
# Install Yarn
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install yarn
|
||||
ENV PATH="$PATH:$HOME/.yarn/bin"
|
||||
|
||||
# Install Firefox
|
||||
RUN yarn global add get-firefox
|
||||
RUN cd /opt && get-firefox --check --extract --verbose --branch release && ln -s /opt/firefox/firefox /usr/bin/firefox
|
||||
|
||||
# Cleanup
|
||||
RUN apt-get clean
|
Загрузка…
Ссылка в новой задаче