专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

jonlatane/jonline Docker 镜像 - 轩辕镜像

jonline
jonlatane/jonline
Pre-built images for Jonline (github.com/jonlatane/jonline)
0 次下载
🚀 生产环境还在裸拉官方镜像?一次故障=一次通宵
镜像简介版本下载
🚀 生产环境还在裸拉官方镜像?一次故障=一次通宵

Jonline is a federated, open source, community-scale social network built with Rust, React and Flutter along with gRPC and HTTP. This image runs Jonline atop a standard (not slim) Debian server. Jonline will expose its Flutter Web app on ports 80, 8000, and 443 (if TLS is enabled via environment variable), and the Jonline gRPC BE on port 27707.

Run Jonline locally
Makefile-Managed Setup

If you have make, Docker and any Postgres that provides createdb in your PATH, the easiest solution is to use Jonline's Makefiles by cloning its GitHub repo (note the use of environment variables from backend/.env-example and Make targets from backend/Makefile):

bash
git clone ***:JonLatane/jonline.git
cd jonline

# Run createdb jonline_dev, and run MinIO's Docker image locally in the background
make local_db_create local_minio_create

# Start Jonline's latest image 
docker run --rm --env-file=backend/.env-example \
    -p 27707:27707 -p 80:80 -p 8000:8000 -p 443:443 \
    jonlatane/jonline

To clean up any data when you're done, simply make local_db_delete local_minio_delete.

Postgres Setup

This is left to the reader as Postgres setup is well-documented already and varies per platform (Homebrew, apt, etc.). Ultimately, you'll want to setup a database jonline_dev, user db_user, and password secure_password such that:

  • db_user can run DB migrations (you may need to ALTER USER db_user WITH SUPERUSER as your Postgres admin user)
  • Postgres will accept connections from db_user from Docker containers
MinIO Setup

The following should setup a local MinIO (S3-compatible blob hosting service) named jonline-dev-minio, backed by a local directory jonline-minio-data in your current working directory:

bash
mkdir jonline-minio-data
docker run -d -p 9000:9000 -p 9090:9090 --name jonline-dev-minio \
   -v $(pwd)/jonline-minio-data:/data \
   -e "MINIO_ROOT_USER=ROOTNAME" \
   -e "MINIO_ROOT_PASSWORD=CHANGEME123" \
   minio/minio server /data --console-address ":9090"

You can access its console at http://localhost:9090.

Run Jonline Locally

The following should spin up the latest Jonline image against your Postgres and MinIO:

bash
docker run --rm -e DATABASE_URL=postgres://db_user:***/jonline_dev \
   -e MINIO_ENDPOINT=[***] \
   -e MINIO_REGION= \
   -e MINIO_BUCKET=jonline-dev \
   -e MINIO_ACCESS_KEY=ROOTNAME \
   -e MINIO_SECRET_KEY=CHANGEME123 \
    -p 27707:27707 -p 80:80 -p 8000:8000 -p 443:443 \
    jonlatane/jonline

Environment Variables

Jonline assumes you can "securely" (yeah, okay, K8s secrets aren't "secure" 🤷🏼‍♂️) provide secrets via environment variable.

  • DATABASE_URL: The Postgres database URL Jonline should connect to (including credentials).
  • MINIO_ENDPOINT, MINIO_REGION, MINIO_BUCKET, MINIO_ACCESS_KEY, MINIO_SECRET_KEY: Amazon S3/MinIO/compatible object store credentials. Jonline Media features are built atop this and MinIO is required for now, though it may eventually be made optional again.
  • TLS_KEY, TLS_CERT: TLS key and cert. If not provided, Jonline will not try to start the secure server. If invalid, Jonline will log the errors but still run the other servers on the other ports. If the certs are set, and Tonic is able to configure itself with them, both the port 80 and 8000 web servers will use the HTTP host header to forward any requests from [***][:8000]/path/to to [***].
    • See generated_certs/README.md on GitHub for quick HTTPS/TLS setup instructions, either using Cert-Manager (recommended), some other CA or your own custom CA. This should be pretty adaptable to any provider that:
      • Offers a K8s service, with Load*** IP assignment and block storage support
      • Has DNS management with APIs that you can use for your domain
      • Has Cert-Manager support for letting the aforementioned K8s configure the aforementioned DNS manager. (Google Cloud, AWS, Azure, DigitalOcean, Scaleway, etc. all fit this bill!)
  • CA_CERT (only for advanced users, for custom CAs and/or mutual TLS setups): CA cert for Jonline BE, if you want to set up mutual TLS (as opposed to web-style TLS) on the gRPC service yourself. (Note that the secure web server on port 443 cannot support a custom CA and will probably crash when used in this configuration. The Tonic/gRPC Jonline BE itself should still run, though.)

Server Management via bash

Connecting
Connect via Docker
  • Get the Container ID running Jonline from docker container ls.
  • Open bash with docker exec -it <ContainerID> bash.
Connect via Kubernetes
  • If you use Jonline's Makefile-based K8s deployment system, from your Jonline repo, simply cd deploys and then make deploy_be_shell (or NAMESPACE=my-namespace deploy_be_shell if your namespace isn't the default value of jonline)
    • Otherwise, see deploys/Makefile for the underlying kubectl command behind the deploy_be_shell target.
Managing Your Deployment
Environment and System Tools

Jonline uses a Debian image as its base, so any Debian-based server admin tools should be easy to install and use.

  • To check CPU usage, etc., apt install htop && htop, for instance.
    • The only substantive non-Debian base packages provided in the Jonline server image are curl, psql, and a distribution of grpcurl.
  • To see the DATABASE_URL secret: echo $DATABASE_URL.
    • To test your DB and mess around with it, psql $DATABASE_URL.
  • To test your own or other Jonline servers with grpcurl, use ./opt/grpcurl (for instance, ./opt/grpcurl jonline.io:27707 list).
Jonline Tools

Jonline tools all live in /opt. They depend on the DATABASE_URL secret and so should work out-of-the-box so long as the server does.

  • To assign a user the admin role: ./opt/set_permission my_username admin on
    • This works replacing admin with any of the permissions defined in Jonline's Protocol Documentation. (Case-insensitive)
  • To delete expired auth tokens, ./opt/delete_expired_tokens.
    • The standard Jonline K8s deploy does this in a CronJob so you shouldn't need to do it yourself.
  • To delete preview images, ./opt/delete_preview_images.
    • The standard Jonline K8s deploy runs a CronJob to generate preview images, in which case they should be re-generated after you delete them.
    • Note that this image cannot generate preview screenshots as-is, so the provided /opt/generate_preview_images binary will not work. Chromium Headless is big, so I made the separate jonline_preview_generator for that. If you'd rather install Chromium Headless on your main server and use this binary, simply run the commands from deploys/docker/preview_generator/Dockerfile in the Jonline repo.
Ports

Jonline exposes the following ports:

  • 27707: The Jonline protocol port. A gRPC (with web and/or TLS) port exposing the Jonline service and gRPC reflection service.
  • 443: If TLS_KEY and TLS_CERT are valid, a secure HTTPS server serving either the Tamagui (default) or Flutter UI is spun up on port 443.
  • 80 and 8000: Insecure HTTPS servers. If TLS_KEY and TLS_CERT are valid, they redirect to the HTTPS server on port 443. Otherwise, they serve either the Tamagui (default) or Flutter UI.
Included Jonline binaries
  • /opt/jonline: The main Jonline server (and container entry point)
  • /opt/delete_expired_tokens: Task to delete expired refresh and auth tokens
  • /opt/delete_preview_images: One-off task to delete Jonline preview images (usually so jonline_preview_generator can regenerate them)
查看更多 jonline 相关镜像 →
jonlatane/jonline_preview_generator logo
jonlatane/jonline_preview_generator
Jonline的预览生成器,与Jonline类似,但包含Chromium Headless。
10K+ pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
jonlatane/jonline
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.