Comments (7)
Hey, @knaggita , not sure about the react build failing, but I've occasionally experienced issues with docker-compose builds failing and dealt with them by restarting Docker, have you tried that?
from baobab.
Hey @Carvalho96v2, yes I did restart Docker but nothing changed. I still get that error.
from baobab.
Hi @knaggita ,
Could you please send attach the whole stack trace.
Also just confirm which docker-compose file you ran (which folder)?
from baobab.
Hello @KaleabTessera
I ran docker-compose build in the Baobab folder.
Below is the trace
db uses an image, skipping
redis uses an image, skipping
Building webapp
Step 1/10 : FROM node:8 as build-deps
---> 55b43107a63d
Step 2/10 : WORKDIR /webapp
---> Using cache
---> 7287cb9c6aa7
Step 3/10 : COPY package.json yarn.lock ./
---> Using cache
---> e33e82ce7781
Step 4/10 : RUN yarn
---> Using cache
---> 2cae64fe483a
Step 5/10 : COPY . ./
---> Using cache
---> 64f43c4c83f1
Step 6/10 : RUN yarn build
---> Running in 644f2ab6ff31
yarn run v1.12.3
$ react-scripts build
/bin/sh: 1: react-scripts: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Service 'webapp' failed to build: The command '/bin/sh -c yarn build' returned a non-zero code: 1
from baobab.
Okay I tried to replicate the error and I was unable to.
Have you tried:
- Removing the images for Baobab and having them download again?
docker image ls
Then find the image of the Baobab project images and delete them. E.g:
docker image rm baobab_webapp baobab_web
Then build again.
- If the above doesn't work. Try upgrading your docker and docker-compose versions.
from baobab.
@knaggita , any luck with the above?
I think the issue is the cached node modules -
Step 4/10 : RUN yarn
---> Using cache
---> 2cae64fe483a
So the above should have fixed it.
from baobab.
Closing this ticket.
from baobab.
Related Issues (20)
- Response List Page UI Updates HOT 1
- Add Journal Events to model
- Reword application form nominations to submission
- Remove dates for Continuous Journal Event Type HOT 1
- Use Profile Page
- Remove Dates for Continuous Journal
- Error when using Google Translate
- Journal Submission: Email Admin
- Add Review State to Review Assignment
- Offer and outcome management
- Update travel and acommodation grants to work with tags. HOT 3
- Add tag filters to review assignment
- Add Outcome to Response
- Add reviews to response page
- Send email when a flag is added to a user
- Add document upload functionality
- Depends on question... functionality doesn't seem to work HOT 1
- Event editor not working for extending application deadlines
- Assigning reviewers to individual applications (bug)
- General attendees who haven't registered and haven't paid can still be checked-in
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baobab.