-
Notifications
You must be signed in to change notification settings - Fork 10
/
Earthfile
259 lines (177 loc) · 6.82 KB
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
VERSION 0.8
FROM debian:bookworm
WORKDIR /app
runtime:
FROM debian:bookworm
RUN apt-get update && apt-get install -y \
curl \
wget \
unzip \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
deps:
FROM golang:1.23
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
SAVE ARTIFACT go.mod
everything:
FROM +deps
COPY . .
RUN mkdir -p bin
RUN --mount=type=cache,target=/root/.cache GOBIN=$(pwd)/bin go install ./...
SAVE ARTIFACT bin
aerial:
FROM +runtime
COPY +everything/bin/aerial /app/bin/aerial
CMD ["/app/bin/aerial"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/aerial:latest
amano:
FROM +runtime
COPY +everything/bin/amano /app/bin/amano
CMD ["/app/bin/amano"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/amano:latest
aura:
FROM +runtime
RUN apt-get update && apt-get install -y \
streamripper vim jq \
&& rm -rf /var/lib/apt/lists/*
COPY +everything/bin/aura /app/bin/aura
CMD ["/app/bin/aura"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/aura:latest
future-sight:
FROM +runtime
COPY +everything/bin/future-sight /app/bin/future-sight
CMD ["/app/bin/future-sight"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/future-sight:latest
hdrwtch:
FROM +runtime
COPY +everything/bin/hdrwtch /app/bin/hdrwtch
CMD ["/app/bin/hdrwtch", "--port=8080", "--database-loc=/data/hdrwtch.db"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push registry.fly.io/hdrwtch:latest
hlang:
FROM +runtime
COPY +everything/bin/hlang /app/bin/hlang
CMD ["/app/bin/hlang", "--port=8080"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/hlang:latest
mi:
FROM +runtime
COPY +everything/bin/mi /app/bin/mi
CMD ["/app/bin/mi"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/mi:latest
mimi:
FROM +runtime
RUN apt-get update && apt-get install -y \
imagemagick \
&& rm -rf /var/lib/apt/lists/*
COPY +everything/bin/mimi /app/bin/mimi
CMD ["/app/bin/mimi"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/mimi:latest
relayd:
FROM +runtime
COPY +everything/bin/relayd /app/bin/relayd
CMD ["/app/bin/relayd"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/relayd:latest
sanguisuga:
FROM +runtime
COPY +everything/bin/sanguisuga /app/bin/sanguisuga
CMD ["/app/bin/sanguisuga"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/sanguisuga:latest
sapientwindex:
FROM +runtime
COPY +everything/bin/sapientwindex /app/bin/sapientwindex
CMD ["/app/bin/sapientwindex"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/sapientwindex:latest
stealthmountain:
FROM +runtime
COPY +everything/bin/stealthmountain /app/bin/stealthmountain
CMD ["/app/bin/stealthmountain"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/stealthmountain:latest
todayinmarch2020:
FROM +runtime
COPY +everything/bin/todayinmarch2020 /app/bin/todayinmarch2020
CMD ["/app/bin/todayinmarch2020", "--port=8080"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/todayinmarch2020:latest
within-website:
FROM +runtime
COPY +everything/bin/within.website /app/bin/within.website
CMD ["/app/bin/within.website", "--port=8080"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push ghcr.io/xe/x/within-website:latest
xedn-static:
RUN apt-get update && apt-get install -y \
tar \
gzip \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app/static
RUN wget https://registry.npmjs.org/@xeserv/xeact/-/xeact-0.69.71.tgz \
&& tar -xzf xeact-0.69.71.tgz \
&& mkdir -p /app/static/pkg/xeact/0.69.71 \
&& cp -r package/* /app/static/pkg/xeact/0.69.71 \
&& rm -rf xeact-0.69.71.tgz package
RUN wget https://registry.npmjs.org/@xeserv/xeact/-/xeact-0.70.0.tgz \
&& tar -xzf xeact-0.70.0.tgz \
&& mkdir -p /app/static/pkg/xeact/0.70.0 \
&& cp -r package/* /app/static/pkg/xeact/0.70.0 \
&& rm -rf xeact-0.70.0.tgz package
RUN wget https://registry.npmjs.org/@xeserv/xeact/-/xeact-0.71.0.tgz \
&& tar -xzf xeact-0.71.0.tgz \
&& mkdir -p /app/static/pkg/xeact/0.71.0 \
&& cp -r package/* /app/static/pkg/xeact/0.71.0 \
&& rm -rf xeact-0.71.0.tgz package
RUN mkdir -p /app/static/css /app/static/pkg/iosevka
RUN wget https://cdn.xeiaso.net/file/christine-static/dl/iosevka-iaso.tgz \
&& (cd /app/static/pkg/iosevka && tar -xzf /app/iosevka-iaso.tgz) \
&& ln -s /app/static/pkg/iosevka /app/static/css/iosevka \
&& rm -f /iosevka-iaso.tgz
COPY ./xess/dist/*.css /app/static/pkg/xess/
COPY ./xess/xess.css /app/static/css/xess.css
COPY ./xess/xess.css /app/static/pkg/xess/xess.css
COPY ./xess/static/podkova.css /app/static/pkg/podkova/family.css
COPY ./xess/static/podkova.woff2 /app/static/pkg/podkova/podkova.woff2
RUN ln -s /app/static/pkg/podkova /app/static/css/podkova
SAVE ARTIFACT /app/static
xedn:
FROM +runtime
COPY +everything/bin/xedn /app/bin/xedn
COPY +everything/bin/uplodr /app/bin/uplodr
COPY +xedn-static/static /app/static
CMD ["/app/bin/xedn"]
ENV XEDN_STATIC=/app
ENV UPLODR_BINARY=/app/bin/uplodr
LABEL org.opencontainers.image.source="https://github.com/Xe/x"
SAVE IMAGE --push registry.fly.io/xedn:latest
all:
BUILD --platform=linux/amd64 +aerial
BUILD --platform=linux/amd64 +amano
BUILD --platform=linux/amd64 +aura
BUILD --platform=linux/amd64 +future-sight
BUILD --platform=linux/amd64 +hdrwtch
BUILD --platform=linux/amd64 +hlang
BUILD --platform=linux/amd64 +mi
BUILD --platform=linux/amd64 +mimi
BUILD --platform=linux/amd64 +relayd
BUILD --platform=linux/amd64 +sanguisuga
BUILD --platform=linux/amd64 +sapientwindex
BUILD --platform=linux/amd64 +stealthmountain
BUILD --platform=linux/amd64 +todayinmarch2020
BUILD --platform=linux/amd64 +within-website
BUILD --platform=linux/amd64 +xedn
BUILD --platform=linux/amd64 ./kube/alrest/staticsites/caddy1+all
BUILD --platform=linux/amd64 ./migroserbices/falin+run