tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Dockerfile (1950B)


      1 # Lean image for running the bulk of the NSS CI tests on taskcluster.
      2 FROM ubuntu:jammy
      3 
      4 VOLUME /builds/worker/checkouts
      5 VOLUME /builds/worker/.cache
      6 VOLUME /builds/worker/workspace
      7 
      8 # %include-run-task
      9 
     10 ENV DEBIAN_FRONTEND noninteractive
     11 RUN dpkg --add-architecture i386
     12 RUN apt-get update \
     13 && apt-get install -y --no-install-recommends \
     14    build-essential \
     15    ca-certificates \
     16    clang \
     17    curl \
     18    g++-multilib \
     19    git \
     20    gyp \
     21    libxml2-utils \
     22    lib32z1-dev \
     23    linux-libc-dev:i386 \
     24    llvm-dev \
     25    locales \
     26    mercurial \
     27    ninja-build \
     28    pkg-config \
     29    sqlite3 \
     30    zlib1g-dev \
     31    python3 \
     32    python3-pip \
     33    rsync \
     34    iproute2 \
     35    libnss3-tools \
     36    expect \
     37    gnutls-bin \
     38    crypto-policies \
     39 && rm -rf /var/lib/apt/lists/* \
     40 && apt-get autoremove -y && apt-get clean -y
     41 
     42 ENV SHELL /bin/bash
     43 ENV USER worker
     44 ENV LOGNAME $USER
     45 ENV HOME /builds/worker
     46 ENV LANG en_US.UTF-8
     47 ENV LC_ALL $LANG
     48 ENV HOST localhost
     49 ENV DOMSUF localdomain
     50 
     51 RUN locale-gen $LANG \
     52 && dpkg-reconfigure locales
     53 
     54 RUN useradd -d $HOME -s $SHELL -m $USER && \
     55    mkdir -p /builds/worker/workspace && \
     56    mkdir -p /builds/worker/artifacts && \
     57    chown -R $USER /builds/worker && \
     58    pip install tmt && \
     59    echo '#!/bin/bash\n\nexit 0' >/usr/bin/fakedora && \
     60    chmod +x /usr/bin/fakedora && \
     61    ln -s /usr/bin/fakedora /usr/bin/rpm && \
     62    ln -s /usr/bin/fakedora /usr/bin/dnf && \
     63    ln -s /usr/bin/fakedora /usr/local/bin/rhts-report-result && \
     64    ln -s /usr/bin/fakedora /usr/local/bin/tmt-file-submit && \
     65    ln -s /usr/bin/python3 /usr/bin/python && \
     66    update-crypto-policies --set DEFAULT && \
     67    cd $HOME && \
     68    curl -L -o beakerlib.tgz 'https://github.com/beakerlib/beakerlib/archive/refs/tags/1.31.4.tar.gz' && \
     69    tar xf beakerlib.tgz && \
     70    cd beakerlib-* && \
     71    make install && \
     72    echo done
     73 WORKDIR $HOME
     74 
     75 # Set a default command for debugging.
     76 CMD ["/bin/bash", "--login"]