爲了少折騰 編譯環境,研究了一下可以使用docker 把編譯環境搭建好
之後 換系統可以隨時pull 這個image ,並掛載本地volume 到docker 下做編譯開發.
簡單記錄一下步驟
podman pull registry.redhat.io/ubi8/ubi
podman tag registry.redhat.io/ubi8/ubi registry.redhat.io/ubi8:build
之後就可以隨意配置編譯環境 並commit 進自己的build tag 下保存起來
簡單方便的環境就完成了。
這裏不使用Dockfile
helpful links:
https://catalog.redhat.com/software/containers/detail/5b9c1244bed8bd6ee8196343?container-tabs=gti>i-tabs=get-the-source
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/building_running_and_managing_containers/index
https://blog.csdn.net/weixin_41282397/article/details/84937240