openMF / web-app

Mifos X Web App is the revamped version of the Mifos X Community App built on top of the Fineract Platform leveraging the popular Angular framework.
https://openmf.github.io/web-app/
Mozilla Public License 2.0
230 stars 523 forks source link

Installing with Docker-compose is failing #1523

Closed adamsaghy closed 2 years ago

adamsaghy commented 2 years ago

Description

Running docker-compose up -d is failing during the build

Steps to Reproduce

Run docker-compose up -d

Expected Behaviour

Actual Behaviour

web-app git:(master) docker-compose up -d
Creating network "web-app_default" with the default driver
Building mifosx-web-app
[+] Building 236.3s (16/17)                                                                                                                                                                                                                                                   
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 1.39kB                                                                                                                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                        0.0s
 => => transferring context: 178B                                                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/nginx:1.19.3                                                                                                                                                                                                          1.5s
 => [internal] load metadata for docker.io/library/node:16-alpine                                                                                                                                                                                                        1.5s
 => [stage-1 1/2] FROM docker.io/library/nginx:1.19.3@sha256:ed7f815851b5299f616220a63edac69a4cc200e7f536a56e421988da82e44ed8                                                                                                                                            0.0s
 => CACHED [builder  1/10] FROM docker.io/library/node:16-alpine@sha256:2c405ed42fc0fd6aacbe5730042640450e5ec030bada7617beac88f742b6997b                                                                                                                                 0.0s
 => [internal] load build context                                                                                                                                                                                                                                        2.1s
 => => transferring context: 13.87MB                                                                                                                                                                                                                                     2.0s
 => [builder  2/10] RUN apk add --no-cache git                                                                                                                                                                                                                           3.0s
 => [builder  3/10] WORKDIR /usr/src/app                                                                                                                                                                                                                                 0.0s
 => [builder  4/10] COPY ./ /usr/src/app/                                                                                                                                                                                                                                0.5s
 => [builder  5/10] RUN npm cache clear --force                                                                                                                                                                                                                          1.3s 
 => [builder  6/10] RUN npm config set fetch-retry-maxtimeout 120000                                                                                                                                                                                                     1.0s
 => [builder  7/10] RUN npm config set registry https://registry.npmjs.org/ --location=global                                                                                                                                                                            1.2s
 => [builder  8/10] RUN npm install --location=global @angular/cli@12.2.17                                                                                                                                                                                              15.6s
 => [builder  9/10] RUN npm install                                                                                                                                                                                                                                    209.8s
 => ERROR [builder 10/10] RUN ng build --output-path=/dist "--configuration production"                                                                                                                                                                                  2.3s
------
 > [builder 10/10] RUN ng build --output-path=/dist "--configuration production":
#16 2.225 Project 'production"' does not exist.
------
executor failed running [/bin/sh -c ng build --output-path=/dist $BUILD_ENVIRONMENT_OPTIONS]: exit code: 1
ERROR: Service 'mifosx-web-app' failed to build : Build failed

Settings

Screenshots, if any

adamsaghy commented 2 years ago

PR: https://github.com/openMF/web-app/pull/1524