
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
** 注意 **:这是https://hub.docker.com/_/silverpeas%E7%9A%84%60amd64%60%E6%9E%B6%E6%9E%84%E6%9E%84%E5%BB%BA%E7%9A%84%E2%80%9C%E6%AF%8F%E6%9E%B6%E6%9E%84%E2%80%9D%E4%BB%93%E5%BA%93%E2%80%94%E2%80%94%E6%9B%B4%E5%A4%9A%E4%BF%A1%E6%81%AF%EF%BC%8C%E8%AF%B7%E5%8F%82%E8%A7%81%E5%AE%98%E6%96%B9%E9%95%9C%E5%83%8F%E6%96%87%E6%A1%A3%E4%B8%AD%E7%9A%84%E2%80%9Chttps://github.com/docker-library/official-images#architectures-other-than-amd64%E2%80%9D%E5%92%8C%E5%AE%98%E6%96%B9%E9%95%9C%E5%83%8FFAQ%E4%B8%AD%E7%9A%84%E2%80%9Chttps://github.com/docker-library/faq#an-images-source-changed-in-git-now-what%E2%80%9D%E3%80%82
-** 维护者 **:
https://github.com/Silverpeas/docker-silverpeas-prod
-** 获取帮助 **:
https://groups.google.com/forum/#!forum/silverpeas-users
Dockerfile链接https://github.com/Silverpeas/docker-silverpeas-prod/blob/2094ddb26caec9820d1852a9fa2bc3c2c84a1ada/Dockerfile
https://github.com/Silverpeas/docker-silverpeas-prod/blob/fb25885d1cd43172693b3acf79e9fac056a9db34/Dockerfile
-** 问题反馈 **:
https://github.com/Silverpeas/docker-silverpeas-prod/issues?q=
-** 支持的架构 **:(https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/silverpeas/
-** 已发布镜像制品详情 **:
https://github.com/docker-library/repo-info/blob/master/repos/silverpeas%EF%BC%88https://github.com/docker-library/repo-info/commits/master/repos/silverpeas%EF%BC%89
(镜像元数据、传输大小等)
-** 镜像更新 **:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fsilverpeas
https://github.com/docker-library/official-images/blob/master/library/silverpeas%EF%BC%88https://github.com/docker-library/official-images/commits/master/library/silverpeas%EF%BC%89
-** 本描述的来源 **:
https://github.com/docker-library/docs/tree/master/silverpeas%EF%BC%88https://github.com/docker-library/docs/commits/master/silverpeas%EF%BC%89
[***]
通过简单的Web浏览器或智能手机即可访问Silverpeas,它已被广泛日常使用。凭借约30个即用型应用程序及其对话和关系功能,用户可以协作工作、分享知识和良好实践,总体上提高相互同理心,从而增强协作意愿。
Silverpeas通常用作专用于协作和信息共享的内联网和外联网平台。
!https://raw.githubusercontent.com/docker-library/docs/f0d096186294d86320e52224d7c8dabf450c17eb/silverpeas/logo.png
Silverpeas的Docker镜像需要以下数据库系统之一才能使用:
Silverpeas镜像目前仅支持前两种数据库系统;由于Oracle JDBC驱动程序的非自由许可问题,Silverpeas无法默认包含这些驱动程序,因此无法将Oracle数据库系统透明地用作持久化后端。
出于相同原因,Silverpeas的Docker镜像未随Oracle JVM一起提供,而是使用OpenJDK。Silverpeas使用Wildfly应用服务器作为运行时环境。
Silverpeas镜像使用以下环境变量设置数据库访问参数:
DB_SERVERTYPE:指定Silverpeas使用的数据库系统,可选值为POSTGRESQL(PostgreSQL)、MSSQL(Microsoft SQLServer)、ORACLE(Oracle),默认值为POSTGRESQL。DB_SERVER:指定数据库系统运行的主机IP地址或名称,默认值为database,因此任何运行数据库的容器都可以以此名称链接到Silverpeas容器。DB_NAME:指定Silverpeas使用的数据库名称,默认值为Silverpeas。DB_USER:指定Silverpeas访问数据库使用的用户标识符,默认值为silverpeas(建议为每个应用程序在数据库中专用一个用户账户)。DB_PASSWORD:指定上述用户标识符关联的密码。这些环境变量也可以在Silverpeas全局配置文件config.properties中定义为属性(见下文)。
在https://hub.docker.com/%E4%B8%8A%EF%BC%8C%E7%9B%AE%E5%89%8D%E6%B2%A1%E6%9C%89Microsoft SQLServer的Docker镜像,但有许多PostgreSQL镜像。例如,使用https://hub.docker.com/_/postgres/%EF%BC%8C%E5%8F%AF%E4%BB%A5%E5%90%AF%E5%8A%A8%E4%B8%80%E4%B8%AAPostgreSQL%E5%AE%9E%E4%BE%8B%EF%BC%8C%E5%88%9D%E5%A7%8B%E5%8C%96%E4%B8%BA%E8%B6%85%E7%BA%A7%E7%94%A8%E6%88%B7%60postgres%60%EF%BC%8C%E5%AF%86%E7%A0%81%E4%B8%BA%60mysecretpassword%60%EF%BC%9A
console$ docker run --name postgresql -d \ -e POSTGRES_PASSWORD="mysecretpassword" \ -v postgresql-data:/var/lib/postgresql/data \ postgres:12.3
强烈建议将数据库文件目录挂载到主机上,以便在PostgreSQL升级到新版本时不会丢失数据(也可以使用数据卷容器)。有关如何启动PostgreSQL容器的更多信息,请参考其https://hub.docker.com/_/postgres/%E3%80%82
数据库系统运行后,必须为Silverpeas创建一个数据库,并添加一个对此数据库具有管理权限(且仅对此数据库)的用户;出于安全原因,建议为每个应用程序(包括Silverpeas)在数据库中创建专用用户账户。在本文档中,默认创建名为Silverpeas的数据库和名为silverpeas的用户。例如:
console$ docker exec -it postgresql psql -U postgres psql (12.3 (Debian 12.3-1.pgdg100+1)) Type "help" for help. postgres=# create database "Silverpeas"; CREATE DATABASE postgres=# create user silverpeas with password 'thesilverpeaspassword'; CREATE ROLE postgres=# grant all privileges on database "Silverpeas" to silverpeas; GRANT postgres=# \q $
最后,可以通过环境变量指定所需的数据库访问参数来启动Silverpeas实例。在示例中,数据库名称为Silverpeas,特权用户为silverpeas,密码为thesilverpeaspassword:
console$ docker run --name silverpeas -p 8080:8000 -d \ -e DB_NAME="Silverpeas" \ -e DB_USER="silverpeas" \ -e DB_PASSWORD="thesilverpeaspassword" \ -v silverpeas-log:/opt/silverpeas/log \ -v silverpeas-data:/opt/silverpeas/data \ --link postgresql:database \ amd64/silverpeas
默认情况下,database是Silverpeas用于其持久化后端的默认主机名。因此,由于此处PostgreSQL数据库以别名database链接,无需使用DB_SERVER环境变量显式指定其主机名。Silverpeas镜像暴露8000端口,此处将其映射到主机的8080端口。
随后可通过http://localhost:8080/silverpeas%E8%AE%BF%E9%97%AESilverpeas%E3%80%82%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E7%AE%A1%E7%90%86%E5%91%98%E8%B4%A6%E6%88%B7%60SilverAdmin%60%E5%92%8C%E5%AF%86%E7%A0%81%60SilverAdmin%60%E7%99%BB%E5%BD%95%E3%80%82%E8%AF%B7%E5%8A%A1%E5%BF%85%E6%9B%B4%E6%94%B9%E7%AE%A1%E7%90%86%E5%91%98%E8%B4%A6%E6%88%B7%E7%9A%84%E5%AF%86%E7%A0%81%E3%80%82
默认情况下,容器内会创建一些卷,以便在主机上访问它们(参考https://docs.docker.com/engine/tutorials/dockervolumes/#locating-a-volume%E6%9F%A5%E6%89%BE%E5%8D%B7%E4%BD%8D%E7%BD%AE%EF%BC%89%E3%80%82%E5%85%B6%E4%B8%AD%E5%8C%85%E6%8B%AC%60/opt/silverpeas/log%60%E5%92%8C%60/opt/silverpeas/data%60%EF%BC%9A%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%8D%B7%E5%8C%85%E5%90%ABSilverpeas%E7%94%9F%E6%88%90%E7%9A%84%E6%97%A5%E5%BF%97%EF%BC%8C%E7%AC%AC%E4%BA%8C%E4%B8%AA%E5%8D%B7%E5%8C%85%E5%90%AB%E7%94%A8%E6%88%B7%E5%9C%A8Silverpeas%E4%B8%AD%E5%88%9B%E5%BB%BA%E5%92%8C%E7%AE%A1%E7%90%86%E7%9A%84%E6%89%80%E6%9C%89%E6%95%B0%E6%8D%AE%E3%80%82%E7%94%B1%E4%BA%8E%E5%90%8E%E8%80%85%E5%9C%A8%E9%95%9C%E5%83%8F%E5%88%9B%E5%BB%BA%E6%97%B6%E5%B7%B2%E5%85%B7%E6%9C%89%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84%EF%BC%8C%E5%9B%A0%E6%AD%A4%E5%9C%A8%E5%AE%B9%E5%99%A8%E4%B8%AD%E6%8C%82%E8%BD%BD%E4%B8%BB%E6%9C%BA%E7%9B%AE%E5%BD%95%E5%88%B0%60opt/silverpeas/data%60%E4%BC%9A%E8%A6%86%E7%9B%96%E5%8D%B7%E7%9A%84%E7%8E%B0%E6%9C%89%E5%86%85%E5%AE%B9%E3%80%82%E5%9C%A8%E7%A4%BA%E4%BE%8B%E4%B8%AD%EF%BC%8C%E4%B8%BA%E4%BA%86%E4%BE%BF%E4%BA%8E%E5%AE%9A%E4%BD%8D%E8%BF%99%E4%B8%A4%E4%B8%AA%E5%8D%B7%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%BE%E5%BC%8F%E6%A0%87%E8%AE%B0%E4%B8%BA%60silverpeas-log%60%E5%92%8C%60silverpeas-data%60%EF%BC%88%E4%BD%BF%E7%94%A8https://docs.docker.com/engine/userguide/containers/dockervolumes/%E6%98%A0%E5%B0%84%60/opt/silverpeas/log%60%E5%92%8C%60/opt/silverpeas/data%60%E6%98%AF%E6%9B%B4%E5%A5%BD%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%89%E3%80%82
Silverpeas启动需要一些时间,建议查看日志以确认其完全启动(见日志部分)。
Silverpeas全局配置在/opt/silverpeas/configuration/config.properties文件中定义,其示例可在https://raw.githubusercontent.com/Silverpeas/Silverpeas-Distribution/master/src/main/dist/configuration/sample_config.properties%E6%88%96%E5%AE%B9%E5%99%A8%E7%9B%AE%E5%BD%95%60/opt/silverpeas/configuration/%60%E4%B8%AD%E6%89%BE%E5%88%B0%E3%80%82%E5%8F%AF%E4%BB%A5%E6%98%BE%E5%BC%8F%E5%88%9B%E5%BB%BA%60config.properties%60%E6%96%87%E4%BB%B6%EF%BC%8C%E9%99%A4%E6%95%B0%E6%8D%AE%E5%BA%93%E8%AE%BF%E9%97%AE%E5%8F%82%E6%95%B0%E5%A4%96%EF%BC%88%E6%AD%A4%E6%97%B6%E4%B8%8D%E8%A6%81%E5%BF%98%E8%AE%B0%E5%B0%86%60DB_SERVER%60%E5%B1%9E%E6%80%A7%E5%80%BC%E6%8C%87%E5%AE%9A%E4%B8%BA%60database%60%EF%BC%89%EF%BC%8C%E6%B7%BB%E5%8A%A0%E7%89%B9%E5%AE%9A%E7%9A%84%E9%85%8D%E7%BD%AE%E5%8F%82%E6%95%B0%EF%BC%8C%E7%84%B6%E5%90%8E%E4%BD%BF%E7%94%A8%E6%AD%A4%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%90%AF%E5%8A%A8Silverpeas%E5%AE%9E%E4%BE%8B%EF%BC%9A
console$ docker run --name silverpeas -p 8080:8000 -d \ -v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/config.properties \ -v silverpeas-log:/opt/silverpeas/log \ -v silverpeas-data:/opt/silverpeas/data \ --link postgresql:database \ amd64/silverpeas
其中/etc/silverpeas/config.properties是主机上自己的配置文件。出于安全原因,强烈建议在config.properties文件中使用SILVERPEAS_ADMIN_LOGIN和SILVERPEAS_ADMIN_PASSWORD属性显式设置管理员凭据(同时不要忘记使用SILVERPEAS_ADMIN_EMAIL属性设置管理员电子邮件地址)。
以下是此类配置文件的示例:
SILVERPEAS_ADMIN_LOGIN=SilverAdmin SILVERPEAS_ADMIN_PASSWORD=theadministratorpassword SILVERPEAS_ADMIN_EMAIL=*** DB_SERVERTYPE=POSTGRESQL DB_SERVER=database DB_NAME=Silverpeas DB_USER=silverpeas DB_PASSWORD=thesilverpeaspassword CONVERTER_HOST=libreoffice CONVERTER_PORT=8997 SMTP_SERVER=smtp.foo.com SMTP_AUTHENTICATION=true SMTP_DEBUG=false SMTP_PORT=465 SMTP_USER=silverpeas SMTP_PASSWORD=thesmtpsilverpeaspassword SMTP_SECURE=true
对于在主机(或远程主机)上运行的数据库系统(IP地址为192.168.1.14),必须在启动时将此主机指定给容器,并通过Silverpeas的全局配置文件定义它:
console$ docker run --name silverpeas -p 8080:8000 -d \ --add-host=database:192.168.1.14 \ -v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/config.properties \ -v silverpeas-log:/opt/silverpeas/log \ -v silverpeas-data:/opt/silverpeas/data \ amd64/silverpeas
其中database是/etc/silverpeas/config.properties文件中DB_SERVER参数引用的运行数据库系统的主机名,在此映射到该主机的实际IP地址。主机名将添加到容器的/etc/hosts文件中。
对于PostgreSQL数据库系统,需要进行一些配置才能从Silverpeas容器访问:
在文件postgresql.conf中,编辑listen_addresses参数,添加PostgreSQL主机的地址(示例中为192.168.1.14)
listen_addresses = 'localhost,192.168.1.14'
在文件pg_hba.conf中,为Docker子网添加条目
host all all 172.17.0.0/16 md5
不要忘记重启PostgreSQL使更改生效。
Silverpeas生成的数据需要持久化,可用于Silverpeas的后续版本,并且必须可被其他容器(如运行LibreOffice的容器)访问。为此,Docker团队建议使用数据卷容器。
在Silverpeas中,应用程序生成的数据有四种类型:
/opt/silverpeas/log中的日志,/opt/silverpeas/data中的用户数据以及Silverpeas从用户数据生成的数据,/opt/silverpeas/xmlcomponents/workflows中。除这些目录外,根据具体需求,自定义配置脚本可以添加到/opt/silverpeas/configuration/jboss和/opt/silverpeas/configuration/silverpeas目录中。
/opt/silverpeas/log、/opt/silverpeas/data和/opt/silverpeas/xmlcomponents/workflows目录在Docker镜像中均定义为卷。
Silverpeas生成的所有这些数据类型对于特定版本的Silverpeas必须保持一致,它们构成一个连贯的整体。因此,定义数据卷容器来集中所有这些卷比定义多个共享存储卷更好。使用此类数据卷容器,可以更轻松地备份、恢复或迁移Silverpeas的全套数据。
例如,为Silverpeas定义数据卷容器:
console$ docker create --name silverpeas-store \ -v silverpeas-data:/opt/silverpeas/data \ -v silverpeas-log:/opt/silverpeas/log \ -v silverpeas-workflows:/opt/silverpeas/xmlcomponents/workflows \ -v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/config.properties \ amd64/silverpeas \ /bin/true
然后在Silverpeas容器中挂载这些卷:
console$ docker run --name silverpeas -p 8080:8000 -d \ --link postgresql:database \ --volumes-from silverpeas-store \ amd64/silverpeas
如果需要自定义Silverpeas的设置或添加新的数据库定义等,可以通过数据卷容器指定这些设置,以便Silverpeas的后续版本能够像之前的安装一样正确配置:
console$ docker create --name silverpeas-store \ -v silverpeas-data:/opt/silverpeas/data \ -v silverpeas-log:/opt/silverpeas/log \ -v silverpeas-properties:/opt/silverpeas/properties \ -v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/config.properties \ -v /etc/silverpeas/CustomerSettings.xml:/opt/silverpeas/configuration/silverpeas/CustomerSettings.xml \ -v /etc/silverpeas/my-datasource.cli:/opt/silverpeas/configuration/jboss/my-datasource.cli \ amd64/silverpeas \ /bin/true
可以通过查看挂载的/opt/silverpeas/log目录中生成的日志来跟踪Silverpeas的活动。
Wildfly的输出重定向到容器的标准输出,因此可以通过以下方式查看:
console$ docker logs -f silverpeas
Silverpeas启动需要一些时间,建议查看日志以确认其完全启动。
查看此镜像中包含的软件的https://www.silverpeas.org/legal/licensing_gnu_affero.html%E3%80%82
Silverpeas使用FLOSS软件。以下是部分软件(非详尽列表):
与所有Docker镜像一样,这些镜像可能还包含其他软件,这些软件可能采用其他许可证(如基础发行版中的Bash等,以及主要软件的任何直接或间接依赖项)。
一些能够自动检测到的额外许可证信息可能位于[repo-info仓库的silverpeas/目录](https
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务