Compare commits
10 Commits
617e95ee16
...
269df6a0c2
Author | SHA1 | Date | |
---|---|---|---|
269df6a0c2 | |||
df5346edca | |||
42a4823c6a | |||
225148bf9b | |||
b3c270d389 | |||
a916765ae9 | |||
8e738fe52c | |||
f7e58f1942 | |||
d217375670 | |||
31a9e580a1 |
12
.gitea/workflows/container.yaml
Normal file
12
.gitea/workflows/container.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
name: Build Multiarch Container Image
|
||||
on: [push]
|
||||
jobs:
|
||||
call-reusable-workflow:
|
||||
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
|
||||
with:
|
||||
repository: ${{ gitea.repository }}
|
||||
ref_name: ${{ gitea.ref_name }}
|
||||
sha: ${{ gitea.sha }}
|
||||
registry_url: ${{ secrets.REGISTRY_URL }}
|
||||
registry_user: ${{ secrets.REGISTRY_USER }}
|
||||
registry_pw: ${{ secrets.REGISTRY_PW }}
|
@ -1,12 +0,0 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
variables:
|
||||
IMAGE_NAME: thallian/molly-brown
|
||||
CI_BUILD_ARCHS: "linux/amd64,linux/arm64"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
|
||||
- docker buildx build --platform "$CI_BUILD_ARCHS" --progress plain --pull --tag "$IMAGE_NAME:$CI_COMMIT_SHA" --tag "$IMAGE_NAME:$CI_COMMIT_REF_NAME" --tag "$IMAGE_NAME:latest" --push .
|
@ -1,11 +1,11 @@
|
||||
FROM golang:1.15.0-alpine3.12 AS builder
|
||||
FROM docker.io/golang:1.21-alpine3.19 AS builder
|
||||
|
||||
ENV GO111MODULE=on
|
||||
|
||||
ENV VERSION=48f9a206c03c0470e1c132b9667c6daa3583dada
|
||||
RUN go get tildegit.org/solderpunk/molly-brown@$VERSION
|
||||
ENV VERSION=2068c3b02abf8f6a9160d1891d16a5237ab77a1b
|
||||
RUN go install tildegit.org/solderpunk/molly-brown@$VERSION
|
||||
|
||||
FROM thallian/confd-env:latest
|
||||
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
|
||||
|
||||
RUN addgroup -g 2222 molly-brown
|
||||
RUN adduser -h /home/molly-brown -S -D -u 2222 -G molly-brown molly-brown
|
||||
@ -14,8 +14,6 @@ RUN addgroup molly-brown tty
|
||||
RUN mkdir -p /var/gemini
|
||||
RUN chown molly-brown:molly-brown /var/gemini
|
||||
|
||||
RUN ln -sf /dev/stdout /home/molly-brown/access.log
|
||||
|
||||
RUN apk --no-cache add \
|
||||
openssl \
|
||||
coreutils
|
@ -2,14 +2,14 @@
|
||||
#
|
||||
Port = 1965
|
||||
Hostname = "{{ getenv "HOST_NAME" }}"
|
||||
CertPath = "/etc/molly-brown/keys/{{ getenv "HOST_NAME" }}-cert.pem"
|
||||
KeyPath = "/etc/molly-brown/keys/{{ getenv "HOST_NAME" }}-key.pem"
|
||||
CertPath = "/etc/molly-brown/keys/cert.pem"
|
||||
KeyPath = "/etc/molly-brown/keys/key.pem"
|
||||
DocBase = "/var/gemini/"
|
||||
HomeDocBase = "users"
|
||||
GeminiExt = "gmi"
|
||||
DefaultLang = "{{ getenv "DEFAULT_LANG" "en" }}"
|
||||
AccessLog = "/home/molly-brown/access.log"
|
||||
ErrorLog = "/home/molly-brown/access.log"
|
||||
AccessLog = "-"
|
||||
ErrorLog = ""
|
||||
ReadMollyFiles = true
|
||||
|
||||
#
|
||||
|
@ -1 +0,0 @@
|
||||
/var/gemini/ true molly-brown:molly-brown 0666 0777
|
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/dependencies
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/dependencies
Normal file
@ -0,0 +1 @@
|
||||
confd
|
3
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/run
Normal file
3
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/run
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec molly-brown -c /etc/molly-brown/molly.conf -u molly-brown
|
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/molly-brown/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
@ -1,3 +0,0 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
exec s6-setuidgid molly-brown molly-brown -c /etc/molly-brown/molly.conf
|
Loading…
Reference in New Issue
Block a user