Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

fix: update chrome and pm2 to fix unhealthy rum instance #270

Merged
merged 3 commits into from
Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ FROM python:3.7
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get -yqq update && \
apt-get -yqq install google-chrome-stable && \
apt-get -yqq install google-chrome-unstable && \
rm -rf /var/lib/apt/lists/*
RUN curl -SLO https://chromedriver.storage.googleapis.com/$(curl -o- https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
apt-get -yqq update && apt install -yqq --no-install-recommends unzip && \
unzip -d /usr/local/bin/ chromedriver_linux64.zip chromedriver && \
rm -rf /var/lib/apt/lists/*
unzip -d /usr/local/bin/ chromedriver_linux64.zip chromedriver && \
rm -rf /var/lib/apt/lists/*

COPY requirements.txt requirements.txt
RUN pip install -q -r requirements.txt
Expand Down
9 changes: 5 additions & 4 deletions docker/opbeans/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
FROM node:8
FROM node:8-slim

RUN apt-get -qq update && apt-get -qq install -y \
libgconf-2-4 \
apt-transport-https \
ca-certificates \
curl \
gnupg \
gnupg \
--no-install-recommends \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get -qq update && apt-get -qq install -y \
google-chrome-stable \
google-chrome-unstable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Add Chrome as a user
RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome \
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome

WORKDIR /home/chrome

Expand Down
2 changes: 1 addition & 1 deletion docker/opbeans/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "Load generator for opbeans frontend app",
"dependencies": {
"chromeless": "^1.5.2",
"pm2": "^3.0.3"
"pm2": "^3.2.8"
}
}
2 changes: 2 additions & 0 deletions docker/opbeans/frontend/processes.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ module.exports = {
args: "--remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --disable-gpu --headless",
exec_interpreter: "none",
exec_mode: "fork",
watch: true,
restart_delay: 2000
}, {
name: "worker",
script: "./tasks.js",
watch: true,
instances: 1,
}]
}
9 changes: 5 additions & 4 deletions docker/opbeans/rum/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
FROM node:8
FROM node:8-slim

RUN apt-get -qq update && apt-get -qq install -y \
libgconf-2-4 \
apt-transport-https \
ca-certificates \
curl \
gnupg \
gnupg \
--no-install-recommends \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get -qq update && apt-get -qq install -y \
google-chrome-stable \
google-chrome-unstable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Add Chrome as a user
RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome \
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome

WORKDIR /home/chrome

Expand Down
Loading