Skip to content

Instantly share code, notes, and snippets.

@PhieF
Forked from ruario/README.md
Last active October 16, 2017 13:00
Show Gist options
  • Save PhieF/753a6fb4c9b09de5d3bf074d44e942ae to your computer and use it in GitHub Desktop.
Save PhieF/753a6fb4c9b09de5d3bf074d44e942ae 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://chromium.googlesource.com/chromium/src/+/lkgr/build/install-build-deps.sh?format=TEXT \
&& base64 --decode install-build-deps.sh\?format=TEXT > 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