Compare commits
7 Commits
248c1d3327
...
0.0.3
Author | SHA1 | Date | |
---|---|---|---|
d0d3a3deea | |||
7be8dc7bc2 | |||
fdf23dd510 | |||
fa9303b792 | |||
f9f86dcc8b | |||
eeb250a7c5 | |||
039c16ff3e |
53
.drone.yml
Normal file
53
.drone.yml
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Step 1: Install dependencies & build Node.js app
|
||||||
|
- name: install-and-build
|
||||||
|
image: node:20-alpine
|
||||||
|
commands:
|
||||||
|
- echo "Installing dependencies..."
|
||||||
|
- npm ci
|
||||||
|
- echo "Building app..."
|
||||||
|
- npm run build
|
||||||
|
|
||||||
|
# Step 2: Build Docker image with dynamic Git tag
|
||||||
|
- name: build-image
|
||||||
|
image: docker:24
|
||||||
|
environment:
|
||||||
|
DOCKER_HOST: unix:///var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- IMAGE_TAG=${DRONE_TAG:-latest}
|
||||||
|
- echo "Building Docker image apps/homepage:$IMAGE_TAG ..."
|
||||||
|
- docker build -t apps/homepage:$IMAGE_TAG .
|
||||||
|
|
||||||
|
# Step 3: Stop old container if exists
|
||||||
|
- name: stop-old
|
||||||
|
image: docker:24
|
||||||
|
environment:
|
||||||
|
DOCKER_HOST: unix:///var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- IMAGE_TAG=${DRONE_TAG:-latest}
|
||||||
|
- echo "Stopping old container..."
|
||||||
|
- docker rm -f homepage || true
|
||||||
|
|
||||||
|
# Step 4: Run container with dynamic tag
|
||||||
|
- name: run-container
|
||||||
|
image: docker:24
|
||||||
|
environment:
|
||||||
|
DOCKER_HOST: unix:///var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- IMAGE_TAG=${DRONE_TAG:-latest}
|
||||||
|
- echo "Starting container apps/homepage:$IMAGE_TAG ..."
|
||||||
|
- docker run -d \
|
||||||
|
--name homepage \
|
||||||
|
-p 3001:3000 \
|
||||||
|
-e NODE_ENV=production \
|
||||||
|
apps/homepage:$IMAGE_TAG
|
||||||
|
|
||||||
|
# Trigger pipeline on Git tags
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
@@ -6,64 +6,34 @@ import Link from "@mui/material/Link";
|
|||||||
import Grid from "@mui/material/Grid";
|
import Grid from "@mui/material/Grid";
|
||||||
import Paper from "@mui/material/Paper";
|
import Paper from "@mui/material/Paper";
|
||||||
|
|
||||||
|
|
||||||
export function meta() {
|
export function meta() {
|
||||||
return [
|
return [
|
||||||
{title: "Material UI - React Router example in TypeScript"},
|
{ title: "Aetoskia Hideout" },
|
||||||
{
|
{
|
||||||
name: "description",
|
name: "description",
|
||||||
content:
|
content: "Welcome to Aetoskia's Hideout!",
|
||||||
"Welcome to Material UI - React Router example in TypeScript!",
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
const services = {
|
const services = {
|
||||||
media: [
|
media: [
|
||||||
{
|
{ name: "Jellyseerr", url: "http://jellyseerr.aetoskia.com", desc: "Summon films and series from the digital void.", external: true },
|
||||||
name: "Jellyseerr",
|
{ name: "Sonarr", url: "http://sonarr.aetoskia.com", desc: "Keep the endless chronicles of TV under iron control.", external: true },
|
||||||
url: "http://jellyseerr.aetoskia.com",
|
{ name: "Radarr", url: "http://radarr.aetoskia.com", desc: "Command the legions of cinema, enforce cinematic order.", external: true },
|
||||||
desc: "Request movies & TV shows",
|
{ name: "qBit", url: "http://qbit.aetoskia.com", desc: "Torrent war engine, fetching data across the nether realms.", external: true },
|
||||||
},
|
|
||||||
// {
|
|
||||||
// name: "Ombi",
|
|
||||||
// url: "http://ombi.aetoskia.com",
|
|
||||||
// desc: "Request movies & TV shows",
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
name: "Sonarr",
|
|
||||||
url: "http://sonarr.aetoskia.com",
|
|
||||||
desc: "TV series management",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Radarr",
|
|
||||||
url: "http://radarr.aetoskia.com",
|
|
||||||
desc: "Movie management",
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// name: "Prowlarr",
|
|
||||||
// url: "http://prowlarr.aetoskia.com",
|
|
||||||
// desc: "Indexer management",
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
name: "qBittorrent",
|
|
||||||
url: "http://qbit.aetoskia.com",
|
|
||||||
desc: "Download client & torrent manager",
|
|
||||||
external: true,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
core: [
|
codebase: [
|
||||||
{
|
{ name: "Gitea", url: "http://gitea.aetoskia.com", desc: "Forge and safeguard code like a sacred relic.", external: true },
|
||||||
name: "Gitea",
|
{ name: "Registry", url: "http://registry.aetoskia.com", desc: "Monitor core constructs of the digital empire.", external: true },
|
||||||
url: "http://gitea.aetoskia.com",
|
{ name: "Drone", url: "http://drone.aetoskia.com", desc: "Automaton architect, building pipelines of perfection.", external: true },
|
||||||
desc: "Hosted on Core Server",
|
],
|
||||||
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() {
|
||||||
// @ts-ignore
|
|
||||||
return (
|
return (
|
||||||
<Container maxWidth="lg">
|
<Container maxWidth="lg">
|
||||||
<Box
|
<Box
|
||||||
@@ -77,43 +47,28 @@ export default function Home() {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Spacer pushes bottom part down */}
|
|
||||||
<Box sx={{ flex: 1 }} />
|
<Box sx={{ flex: 1 }} />
|
||||||
|
|
||||||
{/* Bottom dashboard: only 50% height of viewport */}
|
<Box sx={{ height: "60vh", overflowY: "auto", p: 2 }}>
|
||||||
<Box
|
|
||||||
sx={{
|
|
||||||
height: "60vh", // 50% of viewport height
|
|
||||||
overflowY: "auto", // scroll if content overflows
|
|
||||||
p: 2,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Container
|
<Container
|
||||||
maxWidth="lg"
|
maxWidth="lg"
|
||||||
sx={{
|
sx={{ bgcolor: "#1a1a1a", borderRadius: 3, p: 3, boxShadow: 6 }}
|
||||||
bgcolor: "#1a1a1a", // dark background
|
|
||||||
borderRadius: 3,
|
|
||||||
p: 3,
|
|
||||||
boxShadow: 6,
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
|
{Object.entries(services).map(([sectionName, serviceList]) => (
|
||||||
|
<React.Fragment key={sectionName}>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h5"
|
variant="h5"
|
||||||
align="center"
|
align="center"
|
||||||
sx={{ color: "warning.main", mt: 4, mb: 2 }}
|
sx={{ color: "warning.main", mt: 4, mb: 2 }}
|
||||||
>
|
>
|
||||||
Core Services
|
{sectionName.charAt(0).toUpperCase() + sectionName.slice(1)} Services
|
||||||
</Typography>
|
</Typography>
|
||||||
<Grid container spacing={3} justifyContent="center">
|
<Grid container spacing={3} justifyContent="center">
|
||||||
{services.core.map((s) => (
|
{serviceList.map((s) => (
|
||||||
<Paper
|
<Paper
|
||||||
|
key={s.name}
|
||||||
elevation={3}
|
elevation={3}
|
||||||
sx={{
|
sx={{ p: 2, textAlign: "center", bgcolor: "#2d2d2d", borderRadius: 2 }}
|
||||||
p: 2,
|
|
||||||
textAlign: "center",
|
|
||||||
bgcolor: "#2d2d2d",
|
|
||||||
borderRadius: 2,
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
href={s.url}
|
href={s.url}
|
||||||
@@ -130,44 +85,11 @@ export default function Home() {
|
|||||||
</Paper>
|
</Paper>
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</React.Fragment>
|
||||||
<Typography
|
|
||||||
variant="h5"
|
|
||||||
align="center"
|
|
||||||
sx={{color: "warning.main", mt: 4, mb: 2}}
|
|
||||||
>
|
|
||||||
Media Services
|
|
||||||
</Typography>
|
|
||||||
<Grid container spacing={3} justifyContent="center">
|
|
||||||
{services.media.map((s) => (
|
|
||||||
<Paper
|
|
||||||
elevation={3}
|
|
||||||
sx={{
|
|
||||||
p: 2,
|
|
||||||
textAlign: "center",
|
|
||||||
bgcolor: "#2d2d2d",
|
|
||||||
borderRadius: 2,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Link
|
|
||||||
href={s.url}
|
|
||||||
target={s.external ? "_blank" : undefined}
|
|
||||||
rel="noopener"
|
|
||||||
underline="none"
|
|
||||||
sx={{fontSize: 18, fontWeight: "bold", color: "success.main"}}
|
|
||||||
>
|
|
||||||
{s.name}
|
|
||||||
</Link>
|
|
||||||
<Typography variant="body2" sx={{mt: 1, color: "#ccc"}}>
|
|
||||||
{s.desc}
|
|
||||||
</Typography>
|
|
||||||
</Paper>
|
|
||||||
))}
|
))}
|
||||||
</Grid>
|
|
||||||
</Container>
|
</Container>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
13
docker-compose.yaml
Normal file
13
docker-compose.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
homepage:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
# network: host
|
||||||
|
container_name: homepage
|
||||||
|
image: apps/homepage:0.0.3
|
||||||
|
ports:
|
||||||
|
- "3001:3000" # map host port 3000 to container
|
||||||
|
environment:
|
||||||
|
NODE_ENV: production
|
||||||
|
restart: unless-stopped
|
Reference in New Issue
Block a user