1. 总结我尝试生成要在 Bitbucket 部署管道中使用的 Firebase 令牌的问题。
我在 GCE VM 上安装了 firebase-tools,但没有在本地 (Windows) 计算机上运行 firebase-tools。
在 GCE VM(我的构建机器)上,我克隆了我的代码。
我安装了 firebase 工具(在 GCE VM 上),然后 cd 到我的代码/存储库。
我跑:firebase init
然后我运行: firebase login:ci,我得到了一个 URL(在 GCE VM 控制台中), [proc@mpi-dev-proc1 bin]$ firebase login:ci
在任何设备上访问此 URL 进行登录:
https://accounts.google.com/o/oauth2/auth?client_id=....
我将其粘贴到 Windows 计算机上的 Web 浏览器中,系统要求我选择一个帐户以继续使用 Firebase CLI。我选择了我的 GCP 帐户。
我看到一个对话框:“Firebase CLI”想要访问您的 Google 帐户...,我点击[允许]
然后我被重定向到本地主机 URL:
http://localhost:9005/?state=445583251...
为什么?
我的本地 Windows 盒子上没有运行服务器,也没有在“localhost”上侦听端口 9005 的任何内容,
为什么我会看到 localhost:9005 的 URL?我不明白,这没有意义。这里应该发生什么?
我正在尝试生成一个 firebase 令牌以在 Bitbucket 构建/部署管道上使用。
2. 提供背景信息,包括您已经尝试过的内容
答: …
1. 总结问题
我按照 Bitbucket 的说明设置 ssh。
我有一个 pub/priv 密钥对,并将 pub 密钥粘贴到项目的 Bitbucket 设置(访问密钥)中。
我在 GCE VM 上有一个构建服务器。 git clone工作成功,并且git pull origin master有效。我正在使用密码。
git commit但是,如果我在 GCE VM 上对单个文件进行小更改,然后执行git push origin master,则会失败并显示以下错误消息。
Enter passphrase for key '/home/proc/.ssh/id_rsa':
Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
git remote -v
节目
origin git@bitbucket.org:<my-account>/<my-repo>.git (fetch)
origin git@bitbucket.org:<my-account>/<my-repo>.git (push)
Run Code Online (Sandbox Code Playgroud)
如果git pull origin master工作正常,则 ssh 设置正确。 …
我尝试在 CentOS 8 上安装最新的 PostGIS 3.0.x,但没有成功。
我认为没有人在 RHEL 8 或 CentOS 8 上运行 PostGIS,我不明白为什么不这样做。貌似无法安装。
我已通过禁用 RHEL AppStream 成功安装了 Postgres 12.0
我在 CentOS 8 上安装 postgres 12 所采取的步骤:
1)
#dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
Run Code Online (Sandbox Code Playgroud)
2)
#dnf --disablerepo AppStream install postgresql12
#dnf --disablerepo AppStream install postgresql12-server
Run Code Online (Sandbox Code Playgroud)
我现在正在尝试安装 PostGIS。
#dnf list --available | grep postgis30
Run Code Online (Sandbox Code Playgroud)
我看到 postgis30_96 是最新提供的(如下所列):
postgis30_96.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-client.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-client-debuginfo.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-debuginfo.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-devel.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-docs.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-gui.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-gui-debuginfo.x86_64 3.0.0alpha4-6.rhel8 pgdg96
postgis30_96-utils.x86_64 3.0.0alpha4-6.rhel8 pgdg96 …Run Code Online (Sandbox Code Playgroud) 日期: 2021 年 10 月 5 日星期二
Node 10.x于2018-04-24发布(但这是使用 apt-get 时的默认版本)
我需要在运行容器中安装 Python 和 Node.js。我可以使用以下命令在容器中获取最新版本的 python:
FROM python:alpine
或者
FROM python:buster <== 基于 Debian
如何在 Debian 上(在 Docker 容器中)安装最新版本的 node.js (16.10.0)
当我这样做时:
FROM python:buster
RUN apt-get update && \
apt-get install -y \
nodejs npm
Run Code Online (Sandbox Code Playgroud)
我得到这些版本的节点:
节点:10.24.0
npm 5.8.0
当在容器中运行时,给出一个关于不再不受支持的长声明。
“apt-get”从中提取的软件包存储库怎么了,它不会安装更高版本的节点(14.x 或更高版本)?
如果我从:
FROM python:alpine
and include these lines
RUN apk -v --no-cache --update add \
nodejs-current npm
Run Code Online (Sandbox Code Playgroud)
我将获得 Node 16.x版本,这让一切变得简单。我不需要做任何其他事情。
是否有与python:buster等效的东西(基于 Debian)
我真的希望在我的Dockerfile中有一两行代码,而不是一页包含十几个命令的指令来简单地获取图像中的节点。 …
1. 总结问题
Google Cloud Run 宣传它是“无状态容器”。有没有办法运行任何东西,让它在某处保存状态?
我想在容器中运行 Postgres,但只能按需启动,当有请求时启动 PG 容器。
同样的问题也适用于将包含 REST API(Web 服务器)的容器以连接到 PG 容器。
因此,当 Web 应用程序(托管在 Firebase 上)向 REST API(容器)发出请求时,它会启动,然后从 REST api 查询的 PG 实例会启动(或者可以简单地将 DB 、 REST API 在一个容器中)。
对于开发实例,我不希望 24x7x365 的东西几乎什么都不做,只是在开发时间会启动的东西,但是有很多这样的东西,我是唯一的 OPS 人,想要为开发人员自动化它,包括我自己和最小化计费。
任何最好的方法在这里将不胜感激。
2. 提供背景,包括您已经尝试过的内容
我已经创建了 Docker 容器并部署到 Cloud Run
3. 显示一些代码
yum install buildah podman -y
Run Code Online (Sandbox Code Playgroud)
4. 描述预期和实际结果,包括任何错误消息
我正在寻找一种解决方案,以最大限度地减少开发环境的计费,其中包括托管和数据库/REST API(数据库必须是 Postgres)。
我正在寻找将维护数据库状态的有状态云运行。
我正在从分支 A 创建一个 git 分支 B。
$git checkout A
$git checkout -b B
Run Code Online (Sandbox Code Playgroud)
我更改了分支 B 中的一些文件,然后
$git add <files>
$git commit -m "a message"
Run Code Online (Sandbox Code Playgroud)
然后我在分支 B 处于活动状态时创建一个标签
$git tag -a <tag_name>
Run Code Online (Sandbox Code Playgroud)
我还在本地。
然后我结帐分支 A
$git checkout A
Run Code Online (Sandbox Code Playgroud)
将分支 B 合并到 A
$git merge B
Run Code Online (Sandbox Code Playgroud)
我推分支A
$git push origin A
Run Code Online (Sandbox Code Playgroud)
然后我推送标签,而我还在分支 A
$git push origin tag <tag_name>
Run Code Online (Sandbox Code Playgroud)
现在,如果我在遥控器上列出标签,我会通过以下方式看到两个标签:
$git ls-remote --tags
<tag_name>
<tag_name>^{}
Run Code Online (Sandbox Code Playgroud)
与^{}附加到一个第二条目
有人可以解释这里的原因是什么吗?
为什么我在遥控器上看到两个标签?
在本地,只有一个
$git tag -l
<tag_name>
Run Code Online (Sandbox Code Playgroud)
我这样做的顺序是常见的吗?或者建议使用不同的顺序?我真的只想在分支 B(以及那里的所有文件)上添加一个标签。
我在一个名为“生产”的分支中有一个文件,我希望被另一个名为“ sqa ”的分支中的特定文件覆盖。
该文件的本质是它不是有多个贡献者的代码。
什么命令可以做到这一点?(两个分支都不是主分支) - 一个分支称为“生产”,另一个分支称为“ sqa ”。
分支“ sqa ”中的文件我想进入分支“生产”并在运行命令后使它们相同,避免任何潜在的合并冲突(强制覆盖,强制接受“sqa”中的文件)/sqa/file => /production/file。
如果这是可能的,并且如果有人实际上做到了这一点并测试了这一点,那么我们将非常感激(仅适用于单个文件,而不是多个文件或整个分支合并)。
如果文件存在于分支“ sqa ”中但不存在于“生产”中,则命令的工作方式是否相同(将其复制到那里?)
本页介绍如何使用“python:buster”创建与 Lambda 一起使用的 Docker 映像
https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-create-from-alt
我想对“python:alpine”做同样的事情
但在尝试安装“libcurl4-openssl-dev”时遇到问题
有人成功构建了用于 lambda 的“python:alpine”图像吗?
git ×3
bitbucket ×2
dockerfile ×2
alpine-linux ×1
apt-get ×1
aws-lambda ×1
debian-based ×1
docker ×1
firebase-cli ×1
git-branch ×1
git-merge ×1
git-tag ×1
git-workflow ×1
hdf5 ×1
node.js ×1
osgeo ×1
postgresql ×1
xerces-c ×1