commit aefc35a9d29ee447af515098f26bfe129176a112 Author: Sebastian Hugentobler Date: Thu May 30 18:03:54 2024 +0200 initial commit diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml new file mode 100644 index 0000000..e48b3fd --- /dev/null +++ b/.gitea/workflows/container.yaml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..af0faab --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +.DS_Store +*.swp diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..633922c --- /dev/null +++ b/Containerfile @@ -0,0 +1,21 @@ +FROM docker.io/golang:1.22-alpine3.20 as builder + +ENV CGO_ENABLED=0 + +RUN apk --no-cache add \ + git + +WORKDIR /build + +ENV VERSION=v0.99.18 +RUN git clone https://github.com/matrix-org/sliding-sync.git +WORKDIR /build/sliding-sync +RUN git checkout $VERSION + +RUN go build ./cmd/syncv3 + +FROM scratch + +COPY --from=builder /build/sliding-sync/syncv3 /syncv3 +ENTRYPOINT [ "/syncv3" ] +EXPOSE 8008 diff --git a/README.md b/README.md new file mode 100644 index 0000000..4055148 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +[Sliding sync proxy](https://github.com/matrix-org/sliding-sync) for the +[matrix](http://matrix.org/) network. + +# Environment Variables + +Look in the +[project readme](https://github.com/matrix-org/sliding-sync?tab=readme-ov-file#setup) +for supported environment variables. + +At least `SYNCV3_SERVER`, `SYNCV3_DB`, `SYNCV3_SECRET` and `SYNCV3_BINDADDR` +must be set. + +# Ports + +- 8080