电影观察:增加Netflix数据源
解决Laravel无权限写入failed to open stream: Permission denied
报错
在以schedule方式执行定时命令时遇到报错
local.ERROR: file_put_contents(/var/www/laravel/storage/framework/cache/data/ac/13/ac1346822aa47576e6930144a7f0c0d296a1f95f): failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/laravel/storage/framework/cache/data/ac/13/ac1346822aa47576e6930144a7f0c0d296a1f95f): failed to open stream: Permission denied at /var/www/laravel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187)
解决The following signatures couldn’t be verified because the public key is not available
执行
echo "deb http://ftp.debian.org/debian buster-backports main" >> /etc/apt/sources.list apt update
解决Neo4j Desktop无法确认程序目录问题
报错
Uncaught (in promise) Error: spawn powershell ENOENT
docker构建镜像加入变量和代理
需求
有些docker镜像依赖第三方库,希望可以在第三方库更新的时候不用重新改dockerfile
国内的机器经常因为连不上源导致构建失败,希望构建的时候可以使用代理
实现
希望可以在第三方库更新的时候不用重新改dockerfile
在dockerfile使用变量trans_version,这里使用了-操作符,表示当trans_version不存在时使用-后的版本
FROM debian:stable-slim ARG trans_version ENV FRP_VERSION=${trans_version:-0.42.0} ARG TARGETOS ARG TARGETARCH ENV OS_ARCH=${TARGETOS}_${TARGETARCH} RUN apt-get update \ && apt-get install curl -y \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/* RUN curl -fsSL "https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_${OS_ARCH}.tar.gz" | tar -xzf - frp_${FRP_VERSION}_${OS_ARCH}/frps frp_${FRP_VERSION}_${OS_ARCH}/frpc --strip-components 1 \ && mv frpc /usr/local/bin/frpc \ && mv frps /usr/local/bin/frps CMD ["frps"]