diff --git a/Gallus_Pub_v1/.woodpecker.yml b/Gallus_Pub_v1/.woodpecker.yml new file mode 100644 index 0000000..b4cae4f --- /dev/null +++ b/Gallus_Pub_v1/.woodpecker.yml @@ -0,0 +1,26 @@ +pipeline: + build: + image: node:20-alpine + commands: + - npm ci + - npm run build + when: + branch: main + event: [push, pull_request] + deploy: + depends_on: [build] + image: flyio/flyctl:latest + secrets: [fly_api_token] + commands: + - flyctl deploy --remote-only + when: + branch: main + event: push + +branches: + include: [main, dev] + +cache: + mount: + - node_modules + - .npm \ No newline at end of file diff --git a/Gallus_Pub_v1/Dockerfile b/Gallus_Pub_v1/Dockerfile new file mode 100644 index 0000000..e521d68 --- /dev/null +++ b/Gallus_Pub_v1/Dockerfile @@ -0,0 +1,25 @@ +FROM node:20-alpine AS build + +WORKDIR /app + +COPY package*.json ./ +RUN npm ci + +COPY . . + +RUN npm run build + +FROM node:20-alpine AS production + +WORKDIR /app + +RUN npm install -g serve + +COPY --from=build /app/dist /app + +EXPOSE 3000 + +CMD ["serve", "-s", ".", "-l", "3000"] + +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ + CMD wget -qO- http://localhost:3000/ || exit 1 \ No newline at end of file diff --git a/Gallus_Pub_v1/fly.toml b/Gallus_Pub_v1/fly.toml new file mode 100644 index 0000000..a139256 --- /dev/null +++ b/Gallus_Pub_v1/fly.toml @@ -0,0 +1,42 @@ +app = "gallus-pub" +primary_region = "fra" # Frankfurt region, change if needed +kill_signal = "SIGINT" +kill_timeout = 5 + +[build] + dockerfile = "Dockerfile" + +[env] + PORT = "3000" + NODE_ENV = "production" + +[http_service] + internal_port = 3000 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 0 + processes = ["app"] + + [http_service.concurrency] + type = "connections" + hard_limit = 1000 + soft_limit = 500 + + [[http_service.checks]] + interval = "30s" + timeout = "5s" + grace_period = "10s" + method = "GET" + path = "/" + protocol = "http" + tls_skip_verify = false + +[metrics] + port = 9091 + path = "/metrics" + +[[vm]] + memory = "512MB" + cpu_kind = "shared" + cpus = 1 \ No newline at end of file diff --git a/Gallus_Pub_v1/public/images/Welcome.png b/Gallus_Pub_v1/public/images/Welcome.png new file mode 100644 index 0000000..e8af216 Binary files /dev/null and b/Gallus_Pub_v1/public/images/Welcome.png differ diff --git a/Gallus_Pub_v1/public/pdf/Menu.pdf b/Gallus_Pub_v1/public/pdf/Menu.pdf new file mode 100644 index 0000000..b11da1c Binary files /dev/null and b/Gallus_Pub_v1/public/pdf/Menu.pdf differ diff --git a/Gallus_Pub_v1/src/components/Drinks.astro b/Gallus_Pub_v1/src/components/Drinks.astro new file mode 100644 index 0000000..6534194 --- /dev/null +++ b/Gallus_Pub_v1/src/components/Drinks.astro @@ -0,0 +1,25 @@ +--- +import "../../styles/components/Drinks.css" +--- +
-
+
+
-
+
Hier findest du alle aktuellen und kommenden Drinks im Gallus Pub.
- -