在网络不好的机器上从源代码安装apptainer

0. 安装GO

1. 设置GO环境

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct


避免错误:
dial tcp 142.250.73.145:443: i/o timeout
(Go development environment cannot connect to the default Google Go module proxy (proxy.golang.org). The IP address 142.250.73.145 belongs to Google, and port 443 is used for secure HTTPS traffic. This block typically happens due to network restrictions, firewalls, or regional censorship (such as the Great Firewall of China))

2. 下载apptainer及依赖包

git clone https://github.com/apptainer/apptainer.git
cd apptainer
git checkout v1.5.1
#### 在网络好的机器下载依赖包
go mod vendor

3. 将下载好的源代码和依赖包移到网络不好的机器

4. 在目标机器安装apptainer
目标机器保持1的环境变量

./mconfig --prefix=`pwd`/mybuild --without-suid
cd $(/bin/pwd)/builddir
make
make install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值