vault backup: 2024-06-07 16:33:23

This commit is contained in:
BlueRose 2024-06-07 16:33:23 +08:00
parent 80efc6c4ef
commit ee48f833f0
2 changed files with 86 additions and 3 deletions

View File

@ -23,8 +23,11 @@ https://github.com/Tencent/puerts
- UE5 PuerTS学习与实践https://zhuanlan.zhihu.com/p/632862773
- UE4下基于V8实现的代码热刷新https://zhuanlan.zhihu.com/p/364505146
- PuerTSjs调用ue的过程https://zhuanlan.zhihu.com/p/396751427
- UE4PuerTS的js调试相关https://zhuanlan.zhihu.com/p/406387721
- 基于Puerts的编辑器UI开发-Mixin的非最佳实践https://zhuanlan.zhihu.com/p/551338775
- 调试
- UE4PuerTS的js调试相关https://zhuanlan.zhihu.com/p/406387721
- Puerts Inspector指南在UE4和Unity里调试Javascripthttps://zhuanlan.zhihu.com/p/359598262
## TypeScript
- http://www.patrickzhong.com/TypeScript/zh/tutorials/typescript-in-5-minutes.html
- https://ts.xcatliu.com/

View File

@ -79,6 +79,71 @@ docker run -d \
sourcegraph/helix-p4d:2020.2
```
### 启用SSL
首先生成自签名证书:
```shell
mkdir ssl
pushd ssl
openssl genrsa -out privatekey.txt 2048
openssl req -new -key privatekey.txt -out certrequest.csr
openssl x509 -req -days 365 -in certrequest.csr -signkey privatekey.txt -out certificate.txt
rm certrequest.csr
popd
```
接下来设置SSL文件映射目录也就是`P4SSLDIR`的值,并且设置`P4PORT`使用SSL。
```shell
docker run --rm \
--publish 1666:1666 \
--env P4PORT=ssl:1666 \
--env P4SSLDIR=/ssl \
--volume ./ssl:/ssl \
sourcegraph/helix-p4d:2023.1
```
### 时间显示问题
1. 修改容器内系统时区。
2. 修改P4V时间显示Edit - Preferences - Display - Show date andtime asServer time => Local time。
##### Docker容器修改时间
方法一配置Dockerfile镜像时修改这样打包出来的镜像文件是需要的时区的。
操作方式Dockerfile中添加代码
```bash
# 在安装tzdata之前最好先update和upgrade以防apt-get获取不到tzdata
RUN apt-get update -y && apt-get upgrade -y
# 安装,中国用户填写[Asia/Shanghai] ,表示亚洲/上海 ,东八区
RUN apt-get install -y tzdata && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
```
缺点由于构建时需要更新ubuntu所以需要需要网络支持网络不好的时候拖累构建镜像的速度。亲测在中国白天速度快晚上慢。
**建议通过env进行指定**
```bash
ENV TZ=Asia/Shanghai
RUN In -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
```
方法二(强烈不推荐):在运行的容器中,进行修改
操作方式docker attach 登录到运行的容器中执行如下代码
```bash
# 在安装tzdata之前最好先update和upgrade以防apt-get获取不到tzdata
apt-get update -y && apt-get upgrade -y
# 安装
apt-get install -y tzdata
# 配置
echo "Asia/Shanghai" > /etc/timezone
# dpkg-reconfigure -f noninteractive tzdata 或者这个。
dpkg-reconfigure tzdata
```
方法三:启动容器的时候进行设置
操作方式:启动命令中添加 挂载目录,例如:
```bash
# 启动容器时挂载宿主机目录
docker run -v /etc/localtime:/etc/localtime:ro <IMAGE:TAG>
# 其中 -v 参数中ro代表只读模式read only
# 如果您的项目中已经使用了-v 没有关系,启动时挂载多个目录只要写多个-v就可以
```
缺点依赖于宿主机一般生产环境宿主机都是linux如果你也是Linux内核推荐使用
### 推送镜像到Dockerhub
登录
```bash
@ -97,6 +162,17 @@ docker push blueroses/perforce-helix-p4d:2024.5
docker push ghcr.io/blueroses/perforce-helix-p4d:2024.5
```
## helix-proxy Docker
Package: helix-proxy
Priority: optional
Section: non-free/vcs
Installed-Size: 30
Maintainer: Perforce Software, Inc. <support+packaging@perforce.com>
Architecture: amd64
Source: perforce
Version: 2024.1-2596294~focal
# IDE设置
- VSCode - Settings - Extensions - Perforce
- Client工作区名称
@ -584,8 +660,12 @@ Samples\**\Saved\*
DockerFile搞起来太麻烦……
#
https://www.perforce.com/manuals/p4dist/Content/P4Dist/chapter.proxy.html
# Perforce Proxy
- 官方文档
- https://www.perforce.com/manuals/p4dist/Content/P4Dist/chapter.proxy.html
一种用于同步主Perforce服务器数据的远程服务器。适合远程的分布式协作。
# 其他
## 注册源码引擎到EpicGames
经过上面的步骤,源码引擎已经构建成功,但是在对项目就行选择引擎版本的时候,发现并没有这个版本 。这是因为构建的引擎没有注册到EpicGames中找到EpicGames安装目录下的注册器。复制到源码工程并且运行即可。