Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: .travis/Dockerfile

Issue 29663688: Issue 6220 - add travis-ci configuration for adblockpluscore (Closed) Base URL: github.com:adblockplus/adblockpluscore
Patch Set: rebase & fix openssl version on osx Created March 1, 2018, 10:52 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 FROM my-base-ubuntu-image:latest
2 MAINTAINER Sergei Zabolotskikh <sergei@adblockplus.org>
3
4 ARG buildtype
5 ENV BUILDTYPE $buildtype
6
7 # https://wiki.debian.org/Multistrap/Environment#debconf
8 ENV DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
9
10 RUN apt-get update -qqy
11
12 RUN apt-get install -yqq \
13 build-essential \
14 git-core \
15 python \
16 python3-pip \
17 wget \
18 unzip
19
20 # Chormium deps
21 # https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
22 RUN apt-get install -qyy \
23 gconf-service \
24 libasound2 \
25 libatk1.0-0 \
26 libc6 \
27 libcairo2 \
28 libcups2 \
29 libdbus-1-3 \
30 libexpat1 \
31 libfontconfig1 \
32 libgcc1 \
33 libgconf-2-4 \
34 libgdk-pixbuf2.0-0 \
35 libglib2.0-0 \
36 libgtk-3-0 \
37 libnspr4 \
38 libpango-1.0-0 \
39 libpangocairo-1.0-0 \
40 libstdc++6 \
41 libx11-6 \
42 libx11-xcb1 \
43 libxcb1 \
44 libxcomposite1 \
45 libxcursor1 \
46 libxdamage1 \
47 libxext6 \
48 libxfixes3 \
49 libxi6 \
50 libxrandr2 \
51 libxrender1 \
52 libxss1 \
53 libxtst6 \
54 ca-certificates \
55 fonts-liberation \
56 libappindicator1 \
57 libnss3 \
58 lsb-release \
59 xdg-utils \
60 wget
61
62 # Add normal user
63 ENV NORMAL_USER application
64 ENV NORMAL_GROUP ${NORMAL_USER}
65 ENV NORMAL_USER_UID 998
66 ENV NORMAL_USER_GID 997
67 RUN groupadd -g ${NORMAL_USER_GID} ${NORMAL_GROUP} \
68 && useradd ${NORMAL_USER} --uid ${NORMAL_USER_UID} \
69 --shell /bin/bash --gid ${NORMAL_USER_GID} \
70 --create-home
71
72 ENV NORMAL_USER_HOME /home/${NORMAL_USER}
73 ENV TRAVIS_BUILD_DIR /home/${NORMAL_USER}/project
74
75 RUN mkdir ${NORMAL_USER_HOME}/.ssh \
76 && ssh-keyscan github.com >> ${NORMAL_USER_HOME}/.ssh/known_hosts
77
78 RUN chown -R ${NORMAL_USER}:${NORMAL_GROUP} ${NORMAL_USER_HOME}/.ssh \
79 && chmod -R 400 ${NORMAL_USER_HOME}/.ssh \
80 && chmod 500 ${NORMAL_USER_HOME}/.ssh \
81 && chmod 600 ${NORMAL_USER_HOME}/.ssh/known_hosts
82
83 RUN mkdir ${TRAVIS_BUILD_DIR}
84 COPY . ${TRAVIS_BUILD_DIR}
85 RUN chown -R ${NORMAL_USER}:${NORMAL_GROUP} ${TRAVIS_BUILD_DIR}
86
87 USER ${NORMAL_USER}
88 WORKDIR ${NORMAL_USER_HOME}
89
90 RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
91
92 RUN bash ${TRAVIS_BUILD_DIR}/.travis/docker-run.sh
OLDNEW
« .travis.yml ('K') | « .travis.yml ('k') | .travis/activate-nodejs.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld