Skip to content

Instantly share code, notes, and snippets.

@ruario
Last active January 11, 2020 22:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ruario/4873ba66977ce00fe8bf to your computer and use it in GitHub Desktop.
Save ruario/4873ba66977ce00fe8bf to your computer and use it in GitHub Desktop.
Using an Ubuntu 14.04 Docker image to build the Vivaldi Source code package

Install docker via your distro's package manager and configure it for your user.

Use the "vivaldibld.docker" docker template file as follows, to build an appropriate Docker image:

docker build -t vivaldibld - < vivaldibld.docker

After this completes successfully, you can run the docker image, like so:

docker run -t -i vivaldibld /bin/bash

To build the Vivaldi source code, within the image:

curl https://vivaldi.com/source/vivaldi-source_1.0.303.tar.xz | tar xJ
cd vivaldi-source
python scripts/runhooks.py
ninja -C out/Release vivaldi
FROM ubuntu:14.04
MAINTAINER Ruari Oedegaard "docker@ro.mm.st"
# Install build dependencies
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty multiverse" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -qy git build-essential clang curl
WORKDIR /tmp
RUN curl -sSLO https://src.chromium.org/chrome/trunk/src/build/install-build-deps.sh \
&& chmod +x install-build-deps.sh \
&& ./install-build-deps.sh --no-prompt --no-arm --no-chromeos-fonts --no-nacl \
&& rm install-build-deps.sh
# Create a non-root account for building
RUN useradd -m antoniovivaldi
USER antoniovivaldi
ENV HOME /home/antoniovivaldi
WORKDIR /home/antoniovivaldi
# Install Chromium's depot_tools for the Antonio Vivaldi user
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $HOME/depot_tools
RUN printf "\n# Include utils needed for Vivaldi build in PATH\nexport PATH=\"\$PATH:\$HOME/depot_tools\"\n" >> .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment