Skip to content
Closed

3.1 #222

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3afd6a7
remove watchtower, mongo-express and auto-updates
geoffhouse Dec 4, 2025
7a146f9
tidy up system UI
geoffhouse Dec 4, 2025
987fa27
upgrade mui and react
geoffhouse Dec 11, 2025
f30b618
fix list border
geoffhouse Dec 11, 2025
8840f89
fix menu buttons
geoffhouse Dec 11, 2025
e45ed17
update gitignore
geoffhouse Dec 11, 2025
01967a9
Delete TODO.md
geoffhouse Dec 11, 2025
8231e73
Merge branch '3.1' of https://github.com/bbc/bug into 3.1
geoffhouse Dec 11, 2025
b7f18d1
fix grid layout for mui 7
geoffhouse Dec 11, 2025
b90894d
fix bugtimepicker
geoffhouse Dec 12, 2025
d9eff7a
upgrade react-router to v6
geoffhouse Dec 17, 2025
c97943e
upgrade reduxjs
geoffhouse Dec 17, 2025
ed31666
remove moment.js
geoffhouse Dec 17, 2025
a355d7f
upgrade axios
geoffhouse Dec 17, 2025
7c81f5b
upgrade react-clock
geoffhouse Dec 17, 2025
b730609
remove "react-scale-text"
geoffhouse Dec 17, 2025
726c4cd
appear-x: fix memory limit
geoffhouse Dec 17, 2025
0c4f679
remove react-countup
geoffhouse Dec 17, 2025
6e8baf9
update react-scrollbars
geoffhouse Dec 17, 2025
e86ce47
round build progress
geoffhouse Dec 17, 2025
bd7bd91
notes: fix button -> button warning
geoffhouse Dec 18, 2025
2090d16
tidy and update notes module
geoffhouse Dec 18, 2025
097d3a9
fix warning on user edit
geoffhouse Dec 18, 2025
e48c32a
tidy layout in system/about
geoffhouse Dec 18, 2025
6098556
migrate from create-react-app to vite
geoffhouse Jan 6, 2026
877f069
fix websockets
geoffhouse Jan 6, 2026
0243b24
fix nodemon restart on config change
geoffhouse Jan 6, 2026
ca95cdc
fix docker build process after folder layout change
geoffhouse Jan 7, 2026
537c61a
add index with timeout to panelbuildstatus
geoffhouse Jan 7, 2026
31bdcb4
silence proxy errors on restart
geoffhouse Jan 7, 2026
ba49460
update deploy workflow
geoffhouse Jan 7, 2026
8de63c5
add manual trigger to deploy action
geoffhouse Jan 7, 2026
efd2543
update dockerfile
geoffhouse Jan 7, 2026
5f27dba
update dockerfile
geoffhouse Jan 7, 2026
59b0df8
fix deploy
geoffhouse Jan 7, 2026
a6138f2
add dockerfile location
geoffhouse Jan 7, 2026
3bb899c
add --legacy-peer-deps
geoffhouse Jan 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 11 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: BUG Deploy
env:
regsitry: "ghcr.io"
registry: "ghcr.io"

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -20,7 +21,7 @@ jobs:
packages: write
defaults:
run:
working-directory: ./src
working-directory: ./src/server
steps:
# get the latest version of the repository
- name: Checkout
Expand All @@ -38,12 +39,13 @@ jobs:
name: Get Backend Version
id: backend-version
with:
path: ./src
path: ./
- uses: martinbeentjes/npm-get-version-action@master
name: Get Frontend Version
id: frontend-version
with:
path: ./src/client

- name: Print Current Versions
run: echo Building BUG with backend version ${{ steps.backend-version.outputs.current-version }} and frontend version ${{ steps.frontend-version.outputs.current-version }}

Expand All @@ -62,7 +64,7 @@ jobs:
- name: Login to GHCR Registry
uses: docker/login-action@v3
with:
registry: ${{ env.regsitry }}
registry: ${{ env.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false
Expand All @@ -71,12 +73,13 @@ jobs:
- name: Build and push to registry
uses: docker/build-push-action@v6
with:
context: "./src"
platforms: linux/amd64,linux/arm64
context: "."
file: ./src/server/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{env.regsitry}}/${{ github.repository_owner }}/bug:latest
${{env.regsitry}}/${{ github.repository_owner }}/bug:${{steps.backend-version.outputs.current-version}}
${{env.registry}}/${{ github.repository_owner }}/bug:latest
${{env.registry}}/${{ github.repository_owner }}/bug:${{steps.backend-version.outputs.current-version}}
outputs: type=registry
labels: |
author=${{github.actor}}
Expand Down
25 changes: 15 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
node_modules

#Logs
/src/logs/*
!/src/logs/.gitkeep
/logs/*
!/logs/.gitkeep

#Backup Data
/src/data/*
!/src/data/.gitkeep
/src/server/data/*
!/src/server/data/.gitkeep

# Panel Configs
/src/config/panels/*.json
!/src/config/panels/.gitkeep
/src/server/config/panels/*.json
!/src/server/config/panels/.gitkeep

# Global Config
/src/config/global/*.json
!/src/config/global/.gitkeep
/src/server/config/global/*.json
!/src/server/config/global/.gitkeep

# Module Dockerfiles
Dockerfile*
!/src/Dockerfile
!/src/server/Dockerfile
!/src/server/services/dockerfile-write.js

# Global Environment Files
.env.development
Expand All @@ -29,14 +30,16 @@ Dockerfile*

# Client
src/client/.pnp
src/client/dist/*
.pnp.js

# Testing
src/client/coverage
src/routes/logs
src/server/routes/logs

# Client Production Build
/src/client/build/*
/src/client/dist/*
!/src/client/build/.gitkeep

# Storybook Static Files
Expand All @@ -48,3 +51,5 @@ docs/assets/storybook
npm-debug.log*
yarn-debug.log*
yarn-error.log*

TODO.md
File renamed without changes.
1 change: 0 additions & 1 deletion TODO.md

This file was deleted.

52 changes: 7 additions & 45 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ networks:
services:
app:
container_name: bug
build: "./src"
build:
context: .
dockerfile: ./src/server/Dockerfile
restart: unless-stopped
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./src:/home/node/bug
- .:/home/node/bug
- /home/node/bug/node_modules
environment:
MODULE_PORT: 3200
MODULE_HOME: /home/node/module
Expand All @@ -26,17 +29,18 @@ services:
BUG_LOG_FOLDER: logs
BUG_LOG_NAME: bug
BUG_REGISTRY_FQDN: ghcr.io/bbc
BUG_UPDATE_CHECK: "false"
PORT: 3000
NODE_ENV: development
SESSION_SECRET: aSecretForYourSessions
working_dir: /home/node/bug
depends_on:
- mongo
networks:
- bug
ports:
- 3000:3000
- 3101:3101
command: npm run dev
logging:
driver: "json-file"
options:
Expand All @@ -56,45 +60,3 @@ services:
options:
max-size: "10m"
max-file: "1"

watchtower:
container_name: bug-watchtower
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- bug
ports:
- 8080:8080
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
environment:
WATCHTOWER_DEBUG: "true"
WATCHTOWER_HTTP_API_UPDATE: "true"
WATCHTOWER_HTTP_API_TOKEN: bugupdatetoken
WATCHTOWER_LABEL_ENABLE: "true"
mongo-web:
image: mongo-express
container_name: bug-mongo-express
restart: unless-stopped
ports:
- 3202:8081
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
environment:
ME_CONFIG_OPTIONS_EDITORTHEME: "ambiance"
ME_CONFIG_MONGODB_SERVER: "bug-mongo"
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: bugdev
hostname: mongo-web
networks:
- bug
depends_on:
- mongo
Loading
Loading