-
Notifications
You must be signed in to change notification settings - Fork 15.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: migrate libcc's Dockerfile to electron and update it
- Loading branch information
Showing
4 changed files
with
687 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* | ||
!tools/xvfb-init.sh | ||
!tools/run-electron.sh | ||
!build/install-build-deps.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
FROM electronbuilds/libchromiumcontent:0.0.4 | ||
FROM ubuntu:18.04 | ||
|
||
USER root | ||
RUN groupadd --gid 1000 builduser \ | ||
&& useradd --uid 1000 --gid builduser --shell /bin/bash --create-home builduser | ||
|
||
# Set up HOME directory | ||
ENV HOME=/home | ||
RUN chmod a+rwx /home | ||
# Set up TEMP directory | ||
ENV TEMP=/tmp | ||
RUN chmod a+rwx /tmp | ||
|
||
# Install node.js | ||
# Install Linux packages | ||
ADD build/install-build-deps.sh /setup/install-build-deps.sh | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN apt-get install -y nodejs | ||
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
libnotify-bin \ | ||
locales \ | ||
lsb-release \ | ||
nodejs \ | ||
python-dbusmock \ | ||
python-pip \ | ||
python-setuptools \ | ||
vim-nox \ | ||
wget \ | ||
&& /setup/install-build-deps.sh --syms --no-prompt --no-chromeos-fonts --no-nacl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install wget used by crash reporter | ||
RUN apt-get install -y wget | ||
RUN pip install -U crcmod | ||
|
||
# Install python-dbusmock | ||
RUN apt-get install -y python-dbusmock | ||
|
||
# Install libnotify | ||
RUN apt-get install -y libnotify-bin | ||
RUN mkdir /tmp/workspace | ||
RUN chown builduser:builduser /tmp/workspace | ||
|
||
# Add xvfb init script | ||
ADD tools/xvfb-init.sh /etc/init.d/xvfb | ||
RUN chmod a+x /etc/init.d/xvfb | ||
|
||
USER builduser | ||
WORKDIR /home/builduser |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.