Giter Site home page Giter Site logo

anki-sync-server-docker's Introduction

README

Build status

用自编译 Rust 二进制可执行程序作为服务组件来封装的Anki 自托管同步服务器项目

编译镜像

手动编译

修改配置文件中的版本号之后,执行编译

docker build -t anki/syncd:v24.06.2 .

GitHub action 自动编译

在仓库的 GitHub Actions 设置中,新增 GITEA_USERGITEA_TOKEN GITEA_SERVICE 这三个 secrets 键值对,然后手动运行 GitHub Actions 即可。

GITEA_USERGITEA_TOKEN GITEA_SERVICE 这三个 secrets 键值对可以考虑任意兼容 docker pull 的包仓库对应参数,如果不需要使用包仓库也可以注释 GitHub Actions 中对应部分

关于 anki-sync-server 的版本更新方式:

.github/VERSION.txt 中的版本号,GitHub Actions 会自动运行编译。

部署项目

git clone https://github.com/kenyon-wong/anki-sync-server-docker.git --depth 1 anki-sync-server
cd anki-sync-server

# 编译镜像
docker buildx build . --build-arg VERSION=24.06.2 --file Dockerfile --tag anki_syncd:v24.06.2
# 或者
docker pull gitea.online/anki/anki_syncd:v24.06.2

修改 envs 目录下的 users.env,设置自己的用户名和密码(可以按需设置多个,每行一对用户名和密码的对应键),修改完成之后再启动容器

docker-compose up -d

参考资料

anki-sync-server-docker's People

Contributors

opscoffee avatar kenyon-wong avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

opscoffee

anki-sync-server-docker's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.