add some fixes for prod
This commit is contained in:
parent
97b991f90f
commit
73a1d1a7e8
@ -1,6 +1,6 @@
|
|||||||
FROM alpine:latest AS build
|
FROM alpine:latest AS build
|
||||||
RUN apk add jq curl tar xz git vim
|
RUN apk add jq curl tar xz git vim
|
||||||
RUN curl --output /zig.tar.xz "$(curl -s 'https://ziglang.org/download/index.json' | jq -r '.master."86_64-linux".tarball')"
|
RUN curl --output /zig.tar.xz "$(curl -s 'https://ziglang.org/download/index.json' | jq -r '.master."aarch64-linux".tarball')"
|
||||||
|
|
||||||
RUN mkdir /zig
|
RUN mkdir /zig
|
||||||
WORKDIR /zig
|
WORKDIR /zig
|
||||||
@ -13,7 +13,7 @@ RUN /zig/zig-*/zig build -Denvironment=production install
|
|||||||
|
|
||||||
run mkdir /jetzig
|
run mkdir /jetzig
|
||||||
WORKDIR /jetzig
|
WORKDIR /jetzig
|
||||||
RUN git clone https://github.com/yuzudev/jetzig .
|
RUN git clone https://git.yuzucchii.xyz/yuzucchii/jetzig .
|
||||||
WORKDIR ./cli
|
WORKDIR ./cli
|
||||||
RUN /zig/zig-*/zig build install
|
RUN /zig/zig-*/zig build install
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@
|
|||||||
// Once all dependencies are fetched, `zig build` no longer requires
|
// Once all dependencies are fetched, `zig build` no longer requires
|
||||||
// internet connectivity.
|
// internet connectivity.
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.jetzig = .{
|
|
||||||
.url = "https://github.com/jetzig-framework/jetzig/archive/bb724b48f62605ca63dca5bb21805b2ed1683557.tar.gz",
|
|
||||||
.hash = "jetzig-0.0.0-IpAgLf5aDwCfevsEIt-MOj1YUZI0IdhNCCuEBYXQcEkc",
|
|
||||||
},
|
|
||||||
.uuid = .{
|
.uuid = .{
|
||||||
.url = "git+https://github.com/r4gus/uuid-zig#9d66e23e32cd7208d1becb4fd9352f8a27f89551",
|
.url = "git+https://github.com/r4gus/uuid-zig#9d66e23e32cd7208d1becb4fd9352f8a27f89551",
|
||||||
.hash = "uuid-0.3.0-oOieIYF1AAA_BtE7FvVqqTn5uEYTvvz7ycuVnalCOf8C",
|
.hash = "uuid-0.3.0-oOieIYF1AAA_BtE7FvVqqTn5uEYTvvz7ycuVnalCOf8C",
|
||||||
},
|
},
|
||||||
|
.jetzig = .{
|
||||||
|
.url = "git+https://git.yuzucchii.xyz/yuzucchii/jetzig#6baa8c114ad739e5461584dfc79df5b7792557bf",
|
||||||
|
.hash = "jetzig-0.0.0-IpAgLURbDwD5jrmRznyPbGcMGFusxX1xXU1_FVFozIBL",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
.paths = .{
|
.paths = .{
|
||||||
"build.zig",
|
"build.zig",
|
||||||
|
35
compose.yml
35
compose.yml
@ -1,16 +1,16 @@
|
|||||||
services:
|
services:
|
||||||
# server:
|
server:
|
||||||
# env_file: ".env"
|
env_file: ".env"
|
||||||
# build:
|
build:
|
||||||
# context: .
|
context: .
|
||||||
# dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
# ports:
|
ports:
|
||||||
# - "8080:8080"
|
- "8080:8080"
|
||||||
# restart: unless-stopped
|
restart: unless-stopped
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - postgres
|
- postgres
|
||||||
# networks:
|
networks:
|
||||||
# - postgres-network
|
- postgres-network
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
@ -22,10 +22,9 @@ services:
|
|||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/:/var/lib/postgresql/data/
|
- ./data/:/var/lib/postgresql/data/
|
||||||
# networks:
|
networks:
|
||||||
# - postgres-network
|
- postgres-network
|
||||||
|
|
||||||
# networks:
|
|
||||||
# postgres-network:
|
|
||||||
# driver: bridge
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
postgres-network:
|
||||||
|
driver: bridge
|
||||||
|
@ -19,9 +19,9 @@ fn generateRss(items: []const RssItem, allocator: std.mem.Allocator) ![]u8 {
|
|||||||
\\<rss version="2.0">
|
\\<rss version="2.0">
|
||||||
\\<channel>
|
\\<channel>
|
||||||
\\<title>yuzucchii.xyz</title>
|
\\<title>yuzucchii.xyz</title>
|
||||||
\\<link>yuzucchii.xyz</link>
|
\\<link>https://yuzucchii.xyz</link>
|
||||||
\\<description>Personal blog of Yuzu with all kinds of different articles</description>
|
\\<description>Personal blog of Yuzu with all kinds of different articles</description>
|
||||||
\\<atom:link xmlns:atom="http://www.w3.org/2005/Atom" href="https://yuzucchii.xyz/rss.xml" rel="self" type="application/rss+xml"/>
|
\\<atom:link xmlns:atom="http://www.w3.org/2005/Atom" href="https://yuzucchii.xyz/rss" rel="self" type="application/rss+xml"/>
|
||||||
, .{});
|
, .{});
|
||||||
|
|
||||||
for (items) |item| {
|
for (items) |item| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user