Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 71177a50e6 | |||
| 887e3835c2 | |||
| c4f51a59c8 | |||
| 40f4fabfe2 | |||
| 23bce67595 | |||
| 49d1e241c3 | |||
| 438bf18325 | |||
| b69af60f87 | |||
| b69fca13cb | |||
| 95e58cef54 | |||
| edf9c08848 | |||
| a7ba9c2ea8 | |||
| cd9ed14475 | |||
| f80ffa058e | |||
| 4cc35f9422 | |||
| 58da548058 | |||
| 1d1b71d780 | |||
| f69de26c1b | |||
| 0431998723 | |||
| 69a9e8000c | |||
| 6afbc899e1 | |||
| fde6be3b18 | |||
| d27b793cd4 | |||
| 2cdee4a028 | |||
| 081e3bf2b7 | |||
| e4f40811b6 |
130
.drone.yml
130
.drone.yml
@@ -3,7 +3,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
# ARM64 platform (for your Pi runner)
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
@@ -11,80 +10,121 @@ platform:
|
|||||||
workspace:
|
workspace:
|
||||||
path: /drone/src
|
path: /drone/src
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1a: Git fetch tags locally
|
|
||||||
- name: fetch-tags
|
- name: fetch-tags
|
||||||
image: docker:24
|
image: docker:24
|
||||||
environment:
|
volumes:
|
||||||
DOCKER_HOST: unix:///var/run/docker.sock # local Docker, if needed
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache git
|
- apk add --no-cache git
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- |
|
- |
|
||||||
LATEST_TAG=$(git describe --tags --abbrev=0)
|
# Get latest Git tag and trim newline
|
||||||
|
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null | tr -d '\n')
|
||||||
echo "Latest Git tag fetched: $LATEST_TAG"
|
echo "Latest Git tag fetched: $LATEST_TAG"
|
||||||
# Save to file to share with next step
|
|
||||||
echo $LATEST_TAG > /drone/src/LATEST_TAG.txt
|
|
||||||
|
|
||||||
# Step 1b: Check if image exists on remote LAN Docker
|
# Save to file for downstream steps
|
||||||
- name: check-remote-image
|
echo "$LATEST_TAG" > /drone/src/LATEST_TAG.txt
|
||||||
image: docker:24
|
|
||||||
environment:
|
|
||||||
DOCKER_HOST: tcp://192.168.1.111:2376 # remote Docker
|
|
||||||
commands:
|
|
||||||
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
|
|
||||||
- echo "Checking if apps/homepage:$IMAGE_TAG exists on remote Docker..."
|
|
||||||
- |
|
|
||||||
if docker image inspect apps/homepage:$IMAGE_TAG > /dev/null 2>&1; then
|
|
||||||
echo "✅ Docker image apps/homepage:$IMAGE_TAG already exists — skipping build";
|
|
||||||
exit 78; # stop pipeline gracefully
|
|
||||||
else
|
|
||||||
echo "⚙️ Docker image apps/homepage:$IMAGE_TAG not found — proceeding to build...";
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Step 2: Build Docker image (dynamic tag)
|
# Read back for verification
|
||||||
- name: build-image
|
IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
||||||
image: docker:24
|
echo "Image tag read from file: $IMAGE_TAG"
|
||||||
environment:
|
|
||||||
DOCKER_HOST: tcp://192.168.1.111:2376
|
# Validate
|
||||||
commands:
|
|
||||||
- |
|
|
||||||
IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
|
|
||||||
if [ -z "$IMAGE_TAG" ]; then
|
if [ -z "$IMAGE_TAG" ]; then
|
||||||
echo "❌ No tag found in LATEST_TAG.txt — cannot build."
|
echo "❌ No git tags found! Cannot continue."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "🔨 Building Docker image apps/homepage:$IMAGE_TAG ..."
|
|
||||||
docker build --network=host -t apps/homepage:$IMAGE_TAG -t apps/homepage:latest .
|
|
||||||
|
|
||||||
# Step 3: Stop old container (if exists)
|
- name: check-remote-image
|
||||||
|
image: docker:24
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
||||||
|
|
||||||
|
- echo "Checking if apps/homepage:$IMAGE_TAG exists on remote Docker..."
|
||||||
|
- echo "Existing Docker tags for apps/homepage:"
|
||||||
|
- docker images --format "{{.Repository}}:{{.Tag}}" | grep "^apps/homepage" || echo "(none)"
|
||||||
|
- |
|
||||||
|
if docker image inspect apps/homepage:$IMAGE_TAG > /dev/null 2>&1; then
|
||||||
|
echo "✅ Docker image apps/homepage:$IMAGE_TAG already exists — skipping build"
|
||||||
|
exit 78
|
||||||
|
else
|
||||||
|
echo "⚙️ Docker image apps/homepage:$IMAGE_TAG not found — proceeding to build..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: build-image
|
||||||
|
image: docker:24
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
||||||
|
|
||||||
|
- echo "🔨 Building Docker image apps/homepage:$IMAGE_TAG ..."
|
||||||
|
- docker build --network=host -t apps/homepage:$IMAGE_TAG -t apps/homepage:latest /drone/src
|
||||||
|
|
||||||
|
- name: push-image
|
||||||
|
image: docker:24
|
||||||
|
environment:
|
||||||
|
REGISTRY_HOST:
|
||||||
|
from_secret: REGISTRY_HOST
|
||||||
|
REGISTRY_USER:
|
||||||
|
from_secret: REGISTRY_USER
|
||||||
|
REGISTRY_PASS:
|
||||||
|
from_secret: REGISTRY_PASS
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
||||||
|
|
||||||
|
- echo "🔑 Logging into registry $REGISTRY_HOST ..."
|
||||||
|
- echo "$REGISTRY_PASS" | docker login $REGISTRY_HOST -u "$REGISTRY_USER" --password-stdin
|
||||||
|
- echo "🏷️ Tagging images with registry prefix..."
|
||||||
|
- docker tag apps/homepage:$IMAGE_TAG $REGISTRY_HOST/apps/homepage:$IMAGE_TAG
|
||||||
|
- docker tag apps/homepage:$IMAGE_TAG $REGISTRY_HOST/apps/homepage:latest
|
||||||
|
- echo "📤 Pushing apps/homepage:$IMAGE_TAG ..."
|
||||||
|
- docker push $REGISTRY_HOST/apps/homepage:$IMAGE_TAG
|
||||||
|
- echo "📤 Pushing apps/homepage:latest ..."
|
||||||
|
- docker push $REGISTRY_HOST/apps/homepage:latest
|
||||||
|
|
||||||
- name: stop-old
|
- name: stop-old
|
||||||
image: docker:24
|
image: docker:24
|
||||||
environment:
|
volumes:
|
||||||
DOCKER_HOST: tcp://192.168.1.111:2376
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- |
|
- echo "🛑 Stopping old container..."
|
||||||
echo "🛑 Stopping old container..."
|
- docker rm -f homepage || true
|
||||||
docker rm -f homepage || true
|
|
||||||
|
|
||||||
# Step 4: Run container
|
|
||||||
- name: run-container
|
- name: run-container
|
||||||
image: docker:24
|
image: docker:24
|
||||||
environment:
|
volumes:
|
||||||
DOCKER_HOST: tcp://192.168.1.111:2376
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
|
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
||||||
|
|
||||||
|
- echo "🚀 Starting container apps/homepage:$IMAGE_TAG ..."
|
||||||
- |
|
- |
|
||||||
IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
|
|
||||||
echo "🚀 Starting container apps/homepage:$IMAGE_TAG ..."
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name homepage \
|
--name homepage \
|
||||||
-p 3001:3000 \
|
-p 3001:3000 \
|
||||||
-e NODE_ENV=production \
|
-e NODE_ENV=production \
|
||||||
|
--restart always \
|
||||||
apps/homepage:$IMAGE_TAG
|
apps/homepage:$IMAGE_TAG
|
||||||
|
|
||||||
# Trigger rules
|
# Trigger rules
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
|
||||||
- tag
|
- tag
|
||||||
- custom
|
- custom
|
||||||
|
|||||||
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import Box from '@mui/material/Box';
|
||||||
import {Grid, Paper, Link, Typography} from '@mui/material';
|
import {Grid, Paper, Link, Typography} from '@mui/material';
|
||||||
|
|
||||||
interface ServiceList {
|
interface ServiceList {
|
||||||
@@ -14,6 +15,12 @@ interface ServiceListProps {
|
|||||||
|
|
||||||
const ServiceList: React.FC<ServiceListProps> = ({serviceList}) => {
|
const ServiceList: React.FC<ServiceListProps> = ({serviceList}) => {
|
||||||
return (
|
return (
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
flex: 1,
|
||||||
|
overflowY: 'auto', // ✅ Scroll only inside this
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Grid container spacing={3} justifyContent="center">
|
<Grid container spacing={3} justifyContent="center">
|
||||||
{serviceList.map((s) => (
|
{serviceList.map((s) => (
|
||||||
<Paper
|
<Paper
|
||||||
@@ -35,6 +42,7 @@ const ServiceList: React.FC<ServiceListProps> = ({serviceList}) => {
|
|||||||
</Paper>
|
</Paper>
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,24 @@ const items = [
|
|||||||
icon: <PermMediaIcon/>,
|
icon: <PermMediaIcon/>,
|
||||||
title: 'The Vox Sanctum',
|
title: 'The Vox Sanctum',
|
||||||
serviceList: [
|
serviceList: [
|
||||||
{ name: "Jellyseerr", url: "http://jellyseerr.aetoskia.com", desc: "Summon films and series from the digital void.", external: true },
|
{
|
||||||
{ name: "Sonarr", url: "http://sonarr.aetoskia.com", desc: "Keep the endless chronicles of TV under iron control.", external: true },
|
name: "Jellyseerr",
|
||||||
{ name: "Radarr", url: "http://radarr.aetoskia.com", desc: "Command the legions of cinema, enforce cinematic order.", external: true },
|
url: "https://jellyseerr.aetoskia.com",
|
||||||
|
desc: "Summon films and series from the digital void.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Sonarr",
|
||||||
|
url: "https://sonarr.aetoskia.com",
|
||||||
|
desc: "Keep the endless chronicles of TV under iron control.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Radarr",
|
||||||
|
url: "https://radarr.aetoskia.com",
|
||||||
|
desc: "Command the legions of cinema, enforce cinematic order.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
],
|
],
|
||||||
description:
|
description:
|
||||||
"Behold the archive of visual legends, where the eternal campaigns of film and series march forth in eternal crusade against chaos and forgetfulness.",
|
"Behold the archive of visual legends, where the eternal campaigns of film and series march forth in eternal crusade against chaos and forgetfulness.",
|
||||||
@@ -29,9 +44,24 @@ const items = [
|
|||||||
icon: <CodeIcon/>,
|
icon: <CodeIcon/>,
|
||||||
title: 'The Forge Conclave',
|
title: 'The Forge Conclave',
|
||||||
serviceList: [
|
serviceList: [
|
||||||
{ name: "Gitea", url: "http://gitea.aetoskia.com", desc: "Forge and safeguard code like a sacred relic.", external: true },
|
{
|
||||||
{ name: "Registry", url: "http://registry.aetoskia.com", desc: "Monitor core constructs of the digital empire.", external: true },
|
name: "Gitea",
|
||||||
{ name: "Drone", url: "http://drone.aetoskia.com", desc: "Automaton architect, building pipelines of perfection.", external: true },
|
url: "https://gitea.aetoskia.com",
|
||||||
|
desc: "Forge and safeguard code like a sacred relic.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Registry",
|
||||||
|
url: "https://registry.aetoskia.com",
|
||||||
|
desc: "Monitor core constructs of the digital empire.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Drone",
|
||||||
|
url: "https://drone.aetoskia.com",
|
||||||
|
desc: "Automaton architect, building pipelines of perfection.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
],
|
],
|
||||||
description:
|
description:
|
||||||
"The bastion of creation — where code is forged in the fires of discipline, guarded like relics, and deployed with unyielding precision to uphold the empire's might.",
|
"The bastion of creation — where code is forged in the fires of discipline, guarded like relics, and deployed with unyielding precision to uphold the empire's might.",
|
||||||
@@ -40,8 +70,24 @@ const items = [
|
|||||||
icon: <MonitorHeartIcon/>,
|
icon: <MonitorHeartIcon/>,
|
||||||
title: 'The Vigilant Watch',
|
title: 'The Vigilant Watch',
|
||||||
serviceList: [
|
serviceList: [
|
||||||
{ name: "Portainer", url: "http://portainer.aetoskia.com", desc: "Oversee the fleet of containers with unyielding vigilance.", external: true },
|
{
|
||||||
{ name: "Traefik", url: "http://traefik.aetoskia.com", desc: "Marshal your gateways and protect the flow between realms.", external: true },
|
name: "Netdata",
|
||||||
|
url: "https://netdata.aetoskia.com",
|
||||||
|
desc: "Watch over the mechanized legions and digital armories with the unblinking eye of the Omnissiah.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Portainer",
|
||||||
|
url: "https://portainer.aetoskia.com",
|
||||||
|
desc: "Oversee the fleet of containers with unyielding vigilance.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Traefik",
|
||||||
|
url: "https://traefik.aetoskia.com",
|
||||||
|
desc: "Marshal your gateways and protect the flow between realms.",
|
||||||
|
external: true
|
||||||
|
},
|
||||||
],
|
],
|
||||||
description:
|
description:
|
||||||
"Eyes ever watchful, guarding the realm’s sanctity — these sentinels oversee the flow of life and command the paths between digital dominions.",
|
"Eyes ever watchful, guarding the realm’s sanctity — these sentinels oversee the flow of life and command the paths between digital dominions.",
|
||||||
@@ -142,7 +188,6 @@ export default function Services() {
|
|||||||
gap: 2,
|
gap: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div>
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: {xs: 'none', sm: 'flex'},
|
display: {xs: 'none', sm: 'flex'},
|
||||||
@@ -198,7 +243,6 @@ export default function Services() {
|
|||||||
handleItemClick={handleItemClick}
|
handleItemClick={handleItemClick}
|
||||||
selectedFeature={selectedFeature}
|
selectedFeature={selectedFeature}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: {xs: 'none', sm: 'flex'},
|
display: {xs: 'none', sm: 'flex'},
|
||||||
@@ -209,6 +253,7 @@ export default function Services() {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{
|
sx={{
|
||||||
display: {xs: 'none', sm: 'flex'},
|
display: {xs: 'none', sm: 'flex'},
|
||||||
|
maxHeight: '50vh',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ServiceList serviceList={selectedFeature.serviceList} />
|
<ServiceList serviceList={selectedFeature.serviceList} />
|
||||||
|
|||||||
@@ -13,23 +13,6 @@ export function meta() {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
const services = {
|
|
||||||
media: [
|
|
||||||
{ name: "Jellyseerr", url: "http://jellyseerr.aetoskia.com", desc: "Summon films and series from the digital void.", external: true },
|
|
||||||
{ name: "Sonarr", url: "http://sonarr.aetoskia.com", desc: "Keep the endless chronicles of TV under iron control.", external: true },
|
|
||||||
{ name: "Radarr", url: "http://radarr.aetoskia.com", desc: "Command the legions of cinema, enforce cinematic order.", external: true },
|
|
||||||
{ name: "qBit", url: "http://qbit.aetoskia.com", desc: "Torrent war engine, fetching data across the nether realms.", external: true },
|
|
||||||
],
|
|
||||||
codebase: [
|
|
||||||
{ name: "Gitea", url: "http://gitea.aetoskia.com", desc: "Forge and safeguard code like a sacred relic.", external: true },
|
|
||||||
{ name: "Registry", url: "http://registry.aetoskia.com", desc: "Monitor core constructs of the digital empire.", external: true },
|
|
||||||
{ name: "Drone", url: "http://drone.aetoskia.com", desc: "Automaton architect, building pipelines of perfection.", external: true },
|
|
||||||
],
|
|
||||||
monitoring: [
|
|
||||||
{ name: "Portainer", url: "http://portainer.aetoskia.com", desc: "Oversee the fleet of containers with unyielding vigilance.", external: true },
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
|
|||||||
Reference in New Issue
Block a user