Skip to content

Commit

Permalink
Fix UI does not build
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhoan-axonivy committed Jul 19, 2024
1 parent cb248f3 commit a7bf9eb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
sed -i "s/^SERVICE_MONGODB_USER=.*$/SERVICE_MONGODB_USER=$SERVICE_USERNAME/" $ENV_FILE
sed -i "s/^SERVICE_MONGODB_PASSWORD=.*$/SERVICE_MONGODB_PASSWORD=$SERVICE_PASSWORD/" $ENV_FILE
sed -i "s/^MARKET_GITHUB_TOKEN=.*$/MARKET_GITHUB_TOKEN=$GH_TOKEN/" $ENV_FILE
sed -i "s/^MARKETPLACE_INSTALLATION_URL=.*$/MARKETPLACE_INSTALLATION_URL=dummy/" $ENV_FILE
- name: Refresh Docker images
working-directory: ./marketplace-build
run: |
docker compose down
docker compose -f docker-compose.yml up -d
docker compose up -d
3 changes: 2 additions & 1 deletion marketplace-build/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ SERVICE_MONGODB_HOST=
SERVICE_MONGODB_USER=
SERVICE_MONGODB_PASSWORD=
SERVICE_MONGODB_DATABASE=
MARKET_GITHUB_TOKEN=
MARKET_GITHUB_TOKEN=
MARKETPLACE_INSTALLATION_URL=
1 change: 1 addition & 0 deletions marketplace-build/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ services:
- MONGODB_USERNAME=${SERVICE_MONGODB_USER}
- MONGODB_PASSWORD=${SERVICE_MONGODB_PASSWORD}
- MARKET_GITHUB_TOKEN=${MARKET_GITHUB_TOKEN}
- MARKETPLACE_INSTALLATION_URL=${MARKETPLACE_INSTALLATION_URL}
build:
context: ../marketplace-service
dockerfile: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion marketplace-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm run build --prod
# Stage 2: Serve Angular app using Nginx
FROM nginx:alpine
COPY --from=build-angular /app/dist/browser /usr/share/nginx/html
COPY --from=assets ./config/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=assets config/nginx/nginx.conf /etc/nginx/nginx.conf
27 changes: 0 additions & 27 deletions marketplace-ui/nginx.conf

This file was deleted.

0 comments on commit a7bf9eb

Please sign in to comment.