Skip to content

Commit

Permalink
chore(core):start-of-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
James Crowley committed Nov 22, 2023
1 parent 69656bb commit e96d093
Show file tree
Hide file tree
Showing 5 changed files with 646 additions and 156 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1 - Create yarn install skeleton layer
FROM node:16 AS packages
FROM node:18 AS packages

WORKDIR /app
COPY package.json yarn.lock ./
Expand All @@ -11,7 +11,7 @@ COPY packages packages
RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} \+

# Stage 2 - Install dependencies and build packages
FROM node:16 AS build
FROM node:18 AS build

ARG BASE_URL="http://localhost:7007"

Expand All @@ -26,7 +26,7 @@ RUN yarn tsc
RUN yarn --cwd packages/backend backstage-cli package build

# Stage 3 - Build the actual backend image and install production dependencies
FROM node:16-buster-slim
FROM node:18-buster-slim

WORKDIR /app

Expand Down
24 changes: 12 additions & 12 deletions app-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Backstage override configuration for your local development environment
app:
title: SourceFuse Backstage
baseUrl: ${FRONTEND_BASE_URL}
baseUrl: ${BASE_URL}

organization:
name: SourceFuse
Expand Down Expand Up @@ -41,16 +41,16 @@ backend:

integrations:
github:
- host: github.com
token: ${GITHUB_TOKEN}
orgs: [ sourcefuse ]
# apps:
# - appId: ${INTEGRATION_GITHUB_APP_ID}
# webhookUrl: ${INTEGRATION_GITHUB_WEBHOOK_URL}
# clientId: ${INTEGRATION_GITHUB_CLIENT_ID}
# clientSecret: ${INTEGRATION_GITHUB_CLIENT_SECRET}
# webhookSecret: ${INTEGRATION_GITHUB_WEBHOOK_SECRET}
# privateKey: ${INTEGRATION_GITHUB_PRIVATE_KEY}
# - host: github.com
# token: ${GITHUB_TOKEN}
# orgs: [ sourcefuse ]
apps:
- appId: ${INTEGRATION_GITHUB_APP_ID}
webhookUrl: ${INTEGRATION_GITHUB_WEBHOOK_URL}
clientId: ${INTEGRATION_GITHUB_CLIENT_ID}
clientSecret: ${INTEGRATION_GITHUB_CLIENT_SECRET}
webhookSecret: ${INTEGRATION_GITHUB_WEBHOOK_SECRET}
privateKey: ${INTEGRATION_GITHUB_PRIVATE_KEY}

# Reference documentation http://backstage.io/docs/features/techdocs/configuration
# Note: After experimenting with basic setup, use CI/CD to generate docs
Expand Down Expand Up @@ -92,7 +92,7 @@ catalog:
# filters:
# branch: 'main' # string
# repository: '.*' # Regex
# schedule: # optional; same options as in TaskScheduleDefinition
# schedule: # optional; same options as in TaskScheduleDefinitionll
# # supports cron, ISO duration, "human duration" as used in code
# frequency: { minutes: 1440 }
# # supports ISO duration, "human duration" as used in code
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
INTEGRATION_GITHUB_PRIVATE_KEY: ${INTEGRATION_GITHUB_PRIVATE_KEY-secret}
SNYK_TOKEN: ${SNYK_TOKEN-secret}
BASE_URL: ${BASE_URL-http://localhost:7007}
ENABLE_GITHUB_SYNC: "true"
ports:
- '7007:7007'
networks:
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@backstage/plugin-techdocs-backend": "^1.6.2",
"@gitbeaker/node": "^34.6.0",
"@octokit/rest": "^18.5.3",
"@sourceloop/cli": "^4.2.1",
"@sourceloop/cli": "^5.0.0",
"app": "link:../app",
"better-sqlite3": "^8.0.0",
"dockerode": "^3.3.1",
Expand Down
Loading

0 comments on commit e96d093

Please sign in to comment.