Hi

・Amazon linux2
・docker+redash

Docker version 18.09.9-ce, build 039a7df
docker-compose version 1.24.1, build 4667896b

I try to install redash on docker.

The following error is displayed and container creation stops

[root@ip-172-31-30-40 redash]# npm update caniuse-lite browserslist
[root@ip-172-31-30-40 redash]# docker-compose up -d
Building server
Step 1/22 : FROM node:10 as frontend-builder
—> e45bc9197ec9
Step 2/22 : WORKDIR /frontend
—> Using cache
—> 7acae33b0519
Step 3/22 : COPY package.json package-lock.json /frontend/
—> Using cache
—> b0007290007b
Step 4/22 : RUN npm install
—> Using cache
—> f0245cef1ef5
Step 5/22 : COPY client /frontend/client
—> Using cache
—> 4c3184d8e4bd
Step 6/22 : COPY webpack.config.js /frontend/
—> Using cache
—> ccd77be7b3ba
Step 7/22 : RUN npm run build
—> Running in ed79c10e2270

> redash-client@9.0.0-alpha build /frontend
> npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack

> redash-client@9.0.0-alpha clean /frontend
> rm -rf ./client/dist/

Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist

I was referenced The following URL : https://redash.io/help/open-source/dev-guide/docker

Please tell me how to resolve.

I’ve found that it usually hangs here for some minutes and then moves on. How long did you wait?

It’s not actually hanging here. The caniuse-lite warning displays right before NPM builds all the static resources (CSS, JS, images etc.). This happens silently. Depending on the box you use this can take thirty seconds or a few minutes.

Hi @jesse, @ayazabbas

Is there a problem with the warning being displayed?

There is no change in the displayed content even after 20 minutes.

Please let me know if you have any work to do in advance.

Below is the executed command
ーーーーーーーーーーーーーーーーーーーーーーーーー

◆docker install
sudo yum install -y docker

docker -v
Docker version 18.09.9-ce, build 039a7df

sudo systemctl start docker
sudo systemctl enable docker

◆docker compose install
sudo curl -L “https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version
docker-compose version 1.24.1, build 4667896b

◆node.js install
curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash - sudo yum -y install nodejs

node --version
npm --version

◆redash
yum install git -y
git clone https://github.com/getredash/redash.git
cd /redash
docker-compose up -d

After waiting about an hour, I got the following error:

redash-client@9.0.0-alpha clean /frontend
rm -rf ./client/dist/

Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! redash-client@9.0.0-alpha build: npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the redash-client@9.0.0-alpha build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-11T02_27_40_245Z-debug.log
ERROR: Service ‘server’ failed to build: The command ‘/bin/sh -c npm run build’ returned a non-zero code: 137

I think this is mem error right?

I am using Docker for Mac and have allowed my Docker vm to use 2 CPUs and 6gb of ram. Maybe you need to increase your limits.