voxpupuli/vox-pupuli-tasks:
shgit clone ***:voxpupuli/vox-pupuli-tasks.git cd vox-pupuli-tasks bundle install --jobs $(nproc) --with development test --path vendor/bundle bundle exec yarn install --frozen-lockfile --non-interactive export SECRET_KEY_BASE=$(bundle exec rails secret) bundle exec rails assets:precompile # somehow generate config/master.key RAILS_ENV=development bundle exec rails db:migrate bundle exec foreman start
Secrets are stored as an encrypted yaml file. You can edit them by doing:
shbundle exec rails credentials:edit
This only works properly if one od the developers sent you the /config/master.key
file.
Foreman will take care of the actual rails application, but it will also start sidekiq.
The production setup is a homage to microservices:
!poo logo
The setup is deployed as docker microservices. This repository contains a docker-compose.yaml for this.
We deploy multiple containers:
This is a webinterface for Elasticsearch. The service is available at localhost:9001. We highly suggest that you deploy an nginx in front of it with proper TLS certiicates. To access the elasticsearch container, you can use this URL:
http://localhost:9001/#/overview?host=http:%2F%2Felasticsearch:9200
The docker-compose.yaml sets elasticsearch as FQDN for the container.
We use the semantic logger to log all rails data to elasticsearch. Logs are important, and writing them to a file in a container is a bad idea.
Kibana is our frontend for elasticsearch. It's available at localhost on port 5601.
ToDo: Describe how we forward errors to Sentry
As mentioned in the usage section, this Ruby on Rails application can be registered as a GitHub App. To do this, a few things need to be configured.
User authorization callback URLThe full URL to redirect to after a user authorizes an installation. For our instance this is [***]
Request user authorization (OAuth) during installationRequests that the installing user grants access to their identity during installation of the application.
This allows us to validate if a user is in a specific GitHub organisation or Team.
Webhook URLEvents will POST to this URL. For our instance this is [***]
Sadly, we require Administration access with Read and write. It will allow
us to add labels to a project.
.
:
shbundle exec rake rubocop::auto_correct
We constantly improve our codebase. We adjusted a few rubocop cops to relax the default configuration. Also sometimes we need to merge important changes that violate the current rubocop config. For such situations we need to run
shbundle exec rubocop --auto-gen-config
Among all the stuff we validate is also a check for supported operating systems
in the metadata.json file in a Puppet module. Sometimes a new version
is released.
We need to update the checks. Currently, we need to adjust two places, the version array and the messages that are displayed in the UI:
The array:
diffdiff --git a/config/initializers/voxpupuli.rb b/config/initializers/voxpupuli.rb index 14b0459..cc4f26e *** --- a/config/initializers/voxpupuli.rb +++ b/config/initializers/voxpupuli.rb @@ -16,6 +16,6 @@ PUPPET_SUPPORT_RANGE = '>= 5.5.8 < 7.0.0' # [***] UBUNTU_SUPPORT_RANGE = ['16.04', '18.04'].freeze DEBIAN_SUPPORT_RANGE = [8, 9, 10].freeze -CENTOS_SUPPORT_RANGE = [6, 7].freeze +CENTOS_SUPPORT_RANGE = [6, 7, 8].freeze FREEBSD_SUPPORT_RANGE = [11, 12].freeze FEDORA_SUPPORT_RANGE = [29, 30, 31].freeze
and the messages:
diffdiff --git a/config/locales/en.yml b/config/locales/en.yml index bbd6c7a..098d987 *** --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -56,13 +56,13 @@ en: description: We support Debian 8, 9 and 10. Modules in here don't support Debian 10. supports_eol_centos: title: Supports a end of life CentOS - description: We support CentOS 6 and 7. Modules in here support a end of life version (< CentOS 6) + description: We support CentOS 6, 7 and 8. Modules in here support a end of life version (< CentOS 6) doesnt_support_latest_centos: title: Does not support latest CentOS - description: We support CentOS 6 and 7. Modules in here don't support CentOS 7. + description: We support CentOS 6, 7 and 8. Modules in here don't support CentOS 8. missing_in_plumbing: title: Missing in plumbing description: Is missing in plumbing need_another_sync: title: Need another sync
This project is licensed under GNU Affero General Public License version 3
This project is sponsored by Hetzner Cloud. They provide us with free cloud instances to host the application.
![hcloud]([***]
Are you interested as well in sponsoring parts of the Vox Pupuli organisation? Get in touch with the Project Management Committee.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
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 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务