轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
cloud-sdk-nodejs12

platypusio/cloud-sdk-nodejs12

platypusio

下载次数: 0状态:社区镜像维护者:platypusio仓库类型:镜像最近更新:5 年前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,让镜像更快,让人生更轻。
点击查看

🦦 The Platypus - Frontend

📑 Table of Contents

  • 🏎 Quick Start
    • yarn or yarn install
    • yarn dev
    • yarn build & yarn start 3000
    • yarn test
  • 🚀 Deployment
  • 🎰 Versioning & Releases
    • Releasing with release-it
    • yarn release [major|minor|patch]
    • yarn release:ci [major|minor|patch]
    • Semantic Versioning
    • Creating a docker image
  • 📃 Documentation
    • Marking as todo:
    • Committing
      • Rule of thumb:
      • Scope tags
      • Short description
  • 🅰/🅱 Tests
    • https://platypusv2.appspot.com&testKey={key}&testValues={value}
    • 🧾 Query
      • Example:
    • 🎣 Hook
      • Example:
  • 🎿 Performance Monitoring
  • 🕷 Bug Reporting
    • Sentry
    • QA
  • 🩹 Patches
    • Creating patches
  • 💅 Sass Documentation
    • Z-Index Rules
  • GQL
    • Creating GQL query/mutations on Hasura
    • Hasura Headers
    • Using generate.sh to automatically generate GraphQL schema
  • 🔠 Translations
    • Creating Translations through Github Desktop.
      • ⚙ Setup/Preparing for translating
      • ✒ Creating Translations
  • 🌿 Branching
  • Components
    • Autosuggest / Search
  • SVG's
    • Dependencies
    • Adding SVG's
  • 🧪 Testing / Cypress

**Table of content created using VSCode extension: https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one

🏎 Quick Start

Run the following command to get your project installed, and up and running.

sh
git clone git@github.com:theplatypusio/frontend.git
cd frontend
yarn install

yarn or yarn install

Install the modules defined in the package.json, with version from yarn.lock

yarn dev

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

yarn build & yarn start 3000

Builds the app to the .next folder.
Once you've runned yarn build, you can spin up the Next.js node server by running yarn start. You'll need to suffix the start command with the Port (3000), due to our Hosting.

sh
# Build the project and start the node server
yarn build && yarn start 3000

yarn test

Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.

[Read more about testing.] https://reactjs.org/docs/testing.html

🚀 Deployment

We're deploying through https://app.circleci.com/pipelines/github/theplatypusio/frontend

  • test branch automatically deploys to [***]
  • prod branch automatically deploys to [] & []

🎰 Versioning & Releases

Releasing with release-it

We're using https://github.com/release-it/release-it to update our version number correctly, and create Github Tag & Releases.

yarn release [major|minor|patch]

yarn release starts an Interactive CI which pro***s you with questions, that helps you make a decision on which kind of release it is.

You can bump a specific version, by appending either major, minor or patch. Like so yarn release patch.

yarn release:ci [major|minor|patch]

yarn release:ci starts a CI which makes a specific release, but without pro***ing questions. Instead it picks the default settings from the package.json file

Read more about release-it here: https://github.com/theplatypusio/frontend/edit/test/README.md

Semantic Versioning

We're following the traditional Semver rules.

Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards compatible manner, and
  • PATCH version when you make backwards compatible bug fixes.

Read more about semver here: https://semver.org/

Creating a docker image

The creation of the docker image used by CircleCI to build the application can be found https://github.com/theplatypusio/frontend/blob/test/Dockerfile.

The Dockerfile gets build automatically by DockerHub, the docker image build step is triggered by a tag that matches the following regex expression: /^v([0-9.]+)-docker$/. The image will be tagged with the numerical part of the git tag(ex: git tag : v1.2.3-docker, docker image tag: 1.2.3). The build process takes a bit of time, to check when it's done go https://hub.docker.com/repository/docker/platypusio/cloud-sdk-nodejs12. After pushing go and delete the README from the repository, so we don't expose sensitive data, as the docker image is public (The README is automatically updated by DockerHub).

After creating a new image remember to change the image version in the CircleCI file https://github.com/theplatypusio/frontend/blob/bf432f824dc8fe618a20f0a449b3910bb33d0599/.circleci/config.yml#L14.

📃 Documentation

Marking as todo:

If you're working on a task, and a issue occur, which is not solvable within scope, then create a todo: comment.

The comment should include:

  • A description of the issue/problem
  • Ideal way to solve it
  • @author (the responsible person)

Committing

When committting task, we're using the tool https://github.com/commitizen/cz-cli.

Rule of thumb:

  • We prefer many commits, over big commits.
  • We prefer isolated/specific commits, over messy/all-over-the-place commits.

Scope tags

  • {component-name}
  • component
  • utils

Short description

A description of what's been done in the commit.

🅰/🅱 Tests

https://platypusv2.appspot.com&testKey={key}&testValues={value}

🧾 Query

You can create A/B Tests by creating a unique key: testKey and provide it with values: testValues.

KeyValuePurpose
testKeystringAn unique identified, to control which A/B test to execute.
testValuesstring|string[]The value/values that you want to pass to the A/B test function

Example:

http
https://platypusv2.appspot.com/print_creation/intro?link_token=eyJ0eXBlIjoiYXBwbGljYW50IiwiY29tcGFueV9pZCI6MSwicG9zdGluZ19pZCI6MX0=&testKey=point_quantity&testValues=25

This is an A/B Test for Point Quantity, which is testing with the value of 25 points.

🎣 Hook

For each feature, we're creating a hook (example: usePrintCreationABTest), which is invoked which is invoked with the specific key, and optionally which store it relates to.

Example:

tsx
const { isCompleted, setTestDone } = usePrintCreationABTest({
  key: 'point_quantity', // < The Unique Key as identifier
  storeKey: 'printCreation', // < The Redux Store
});

🎿 Performance Monitoring

We're tracking the speed through Speedtracker.

See the benchmarks here: https://theplatypusio.github.io/speedtracker

🕷 Bug Reporting

Sentry

  • We're using Sentry to track our JS errors in the frontend. Contact a colleque to get an invite

https://sentry.io/auth/login/theplatypus/

QA

To report bugs/corrections/suggestions we use Marker.io.

  1. Install the Marker.io browser extension, and log in at the extension.
  2. When you want to report a bug, use the extension to mark the area that you want to highlight, and mark what the issue is.

🩹 Patches

Creating patches

We're using https://github.com/ds300/patch-package#readme to patch modules.

To patch a module do the following.

sh
# Navigate to the node_modules folder, and then fix the issue.
vim node_modules/package_name/flawful_file.js
sh
# Run the patch function
npx patch-package {package_name}
sh
# Commit the patched file inside of the `/patches` folder.
git add patches/*
yarn release:ci patch

💅 Sass Documentation

Z-Index Rules

numberPurpose / Usage
-1Putting stuff below other
0-9Below overlay
10-20Above Overlay

GQL

Creating GQL query/mutations on Hasura

  • You need access to hasura and then go to Hasura Web App
  • After that build your query/mutation by selecting whats needed, test it by running it, and then copy the query/mutation that has been built for you.
  • Paste the copied query/mutations into src/gql/* (any file based on where it supposed to be.)
  • Get a valid token by logging into the Platypus web app (IMPORTANT!: as Super User) and pasting the following command in the console copy(__NEXT_REDUX_STORE__.getState().auth.token) (The token will be copied to clipboard)
  • Run the generator using the token as the following AUTH_TOKEN={token} yarn generate --watch PS: if you got an error regarding fields not being found check that you have the right access first (a super user is the perfect scenario) other than that issues in the query/mutation need to be fixed for it to run right.
  • After that your query/mutation hook should be found in the src/__generated__/graphql.ts and ready to be used and already typed.

Hasura Headers

keyvalues
x-hasura-role{role}
x-hasura-company-id{id}

Using generate.sh to automatically generate GraphQL schema

  • You need to have jq installed on your system. It is used to parse JSON returned from the login request.
sh
# Mac
brew install jq

# Linux / Windows (WSL):
apt-get install jq

Make sure that you an .env file with these values:

  • AUTH_API_BASE_URL = The authentication service URL
  • ADMIN_MAIL = Email of the user
  • ADMIN_PASS = Pass of the user

Once you have all this, you can simply run:

sh
./generate.sh

If you run into permissions issues, you can do this for Mac:

sh
chmod u+x ./generate.sh

This will give exec permission for the current user.

🔠 Translations

Creating Translations through Github Desktop.

⚙ Setup/Preparing for translating

  1. Download https://desktop.github.com/ and https://github.com/gilmarsquinelato/i18n-manager/releases/latest and install them.
  2. Open Github Desktop and login. (The login requires 2FA, which only Mads Thines (@mthines) has)

Ask a developer for the password

username: PlatyMem
password: ****
  1. Through Github Desktop, navigate to the Frontend repository, and clone it down.

See video on how to setup: [***]

✒ Creating Translations

  1. Open Github Desktop and make sure you're on the test branch. Then create a new branch called translations. (If there already is a branch called translations, delete it and recreate it using the Github Desktop).
  2. Now open the directory public/static/locales project in i18n Manager
  3. Do the translations using the i18n Manager.
  4. Once done, go back to the Github Desktop, make sure you're on the newly create translations branch, and commit the changes using the bottom left interface (Please add a commit message which gives a context of what's been translated).
  5. Push the commit, and then make a Pull Request towards the test branch, and assign a reviewer (right side of Github Pull Request view)
  6. And you're done - Now just wait for a developer to approve the changes, and they will deploy them.

See video on how to create translations: [***]

🌿 Branching

features/{feature-name}

Branches for features that can include tasks or sub tasks under that it taken from test (or development later)

task/task-name

Branches for tasks which falls under a feature and is branched out from a feature branch

bugfix/bug-name

Branches for features and releases bug fixes that is branched out from a feature or a release branch

hotfix/fix-name

Branches for test hot fixes that branched out from test branch

release/release-tag

(this is not used now because we are using test directly) it's for releases branch for test needs before merging to test

Strategy

  1. Create your feature branch out from prod
  2. When the feature is done you merge feature into test. (never pull the test branch into your feature branch)
  3. Test the feature on test
  4. If everythings working as expected, write a "How to test" on the Asana task and send the task to QA in the #testing channel in Slack
  5. If there is bug, fix it on the feature branch and create a new PR towards test.
  6. (Repeat step 3-5 until everythings working as expected).
  7. Once the feature approved by QA, merge the feature branch into prod
  8. Once the feature is merged into prod, test the feature on demo. (Not prod)

!Branching Strategy

SVG's

Dependencies

  • https://github.com/svg/svgo
  • https://github.com/guylando/svgo-addViewBox

Adding SVG's

  1. Add the SVG to the project, depending on how it should be used.
  • /public/icons/* <- Icons that shouldn't be compiled through Webpack.
  • /src/assets/icons/* <- Icons that should be compiled through Webpack and merged into the markup.
  1. (If you haven't already, install both SVGO and the addViewBox plugin)

  2. Run svgo src/assets/icons/* --enable=addViewBox

  3. Add it to the <Icon /> components iconsMap

🧪 Testing / Cypress

To be honst just just check the Tests written already and here is the docs https://docs.cypress.io/

https://docs.cypress.io/guides/guides/continuous-integration.html#Advanced-setup

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 cloud-sdk-nodejs12 镜像标签

docker pull docker.xuanyuan.run/platypusio/cloud-sdk-nodejs12:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull platypusio/cloud-sdk-nodejs12:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

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

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

轩辕镜像
镜像详情
...
platypusio/cloud-sdk-nodejs12
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 cloud-sdk-nodejs12 镜像推荐

google/cloud-sdk logo

google/cloud-sdk

google
谷歌云软件开发工具包(Google Cloud SDK)是集成所有必要组件与依赖项的一站式开发套件,包含gcloud、gsutil、bq等命令行工具、客户端库、API接口及认证、配置管理等关键模块,旨在帮助开发者便捷对接谷歌云平台服务,实现资源管理、应用部署、数据处理等开发操作,无需额外安装依赖即可快速上手,有效简化开发流程并提升工作效率。
451 次收藏1亿+ 次下载
1 天前更新
nextcloud logo

library/nextcloud

Docker 官方镜像
Nextcloud手动构建Docker镜像是一款针对开源文件同步与共享平台Nextcloud的容器化部署包,支持用户通过手动配置方式构建,可灵活适配自建服务器环境,提供安全的文件存储、同步、共享及协作功能,适用于个人或企业搭建私有云存储系统,兼具部署便捷性与自定义扩展性,助力实现数据自主管理与高效协作。
4.5千 次收藏10亿+ 次下载
2 天前更新
owncloud logo

library/owncloud

Docker 官方镜像
该Docker镜像已弃用,请使用owncloud/server替代。
1.4千 次收藏5000万+ 次下载
7 年前更新
cloudfoundry/cloud-controller-ng logo

cloudfoundry/cloud-controller-ng

cloudfoundry
暂无描述
500万+ 次下载
4 年前更新
kong/kong-cloud logo

kong/kong-cloud

kong
暂无描述
100万+ 次下载
14 小时前更新
amazon/cloudwatch-agent logo

amazon/cloudwatch-agent

amazon
Amazon CloudWatch Agent是用于从EC2实例、本地服务器等环境收集系统及应用指标与日志,并发送至Amazon CloudWatch进行监控、分析与告警的监控代理,支持统一监控数据收集与分析。
39 次收藏10亿+ 次下载
29 天前更新

查看更多 cloud-sdk-nodejs12 相关镜像