Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Limit concurrency to avoid yarn lstat failure #3728

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ RUN bundle install --jobs=4
ADD . /app
WORKDIR /app

RUN yarn --ignore-engines --ignore-scripts --modules-folder ./public/lib && yarn postinstall
RUN yarn --network-timeout 10000000 --network-concurrency 1 --ignore-engines --ignore-scripts --modules-folder ./public/lib && yarn postinstall
RUN passenger-config compile-nginx-engine --connect-timeout 60 --idle-timeout 60
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ redeploy-container:
docker-compose down --remove-orphans
rm -f ./tmp/pids/server.pid
docker-compose up -d
docker-compose exec -T web yarn --ignore-engines --ignore-scripts --modules-folder public/lib
docker-compose exec -T web yarn --network-concurrency 1 --ignore-engines --ignore-scripts --modules-folder public/lib
docker-compose exec -T web bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
docker-compose exec -T mailman bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
docker-compose exec -T sidekiq bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
Expand All @@ -21,7 +21,7 @@ deploy-container:
docker-compose run --rm web bash -c "sleep 5 && rake db:migrate && rake assets:precompile"
rm -f ./tmp/pids/server.pid
docker-compose up -d
docker-compose exec -T web yarn --ignore-engines --ignore-scripts --modules-folder public/lib
docker-compose exec -T web yarn --network-concurrency 1 --ignore-engines --ignore-scripts --modules-folder public/lib
docker-compose exec -T web bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
docker-compose exec -T mailman bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
docker-compose exec -T sidekiq bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
Expand All @@ -32,7 +32,7 @@ test-container:
docker-compose up -d
docker-compose exec -T web rake db:setup
docker-compose exec -T web rake db:migrate
docker-compose exec -T web yarn --ignore-engines --ignore-scripts --modules-folder public/lib
docker-compose exec -T web yarn --network-concurrency 1 --ignore-engines --ignore-scripts --modules-folder public/lib
docker-compose exec -T web rake test:all
docker-compose exec -T web rails test -d
docker-compose down
Expand All @@ -41,7 +41,7 @@ install-dev:
echo "Installing RubyGems"
bundle install --without production mysql
echo "Installing yarn Packages"
yarn --ignore-engines --ignore-scripts --modules-folder public/lib
yarn --network-concurrency 1 --ignore-engines --ignore-scripts --modules-folder public/lib
echo "Copying example configuartions"
cp db/schema.rb.example db/schema.rb
cp config/database.yml.sqlite.example config/database.yml
Expand Down