1 Star 0 Fork 88

SerenaLLL/nestos-assembler

forked from openEuler/nestos-assembler 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
fu-shanqing 提交于 2022-11-07 14:11 . 适配openEuler 22.03
#FROM registry.fedoraproject.org/fedora:35
FROM openeuler-22.03-lts:latest
WORKDIR /root/containerbuild
# Keep this Dockerfile idempotent for local development rebuild use cases.
USER root
RUN rm -rfv /usr/lib/coreos-assembler /usr/bin/coreos-assembler
COPY ./src/print-dependencies.sh ./src/deps*.txt ./src/vmdeps*.txt ./src/build-deps.txt /root/containerbuild/src/
COPY ./build.sh ./rpm-package/* /root/containerbuild/
RUN ./build.sh configure_yum_repos
RUN ./build.sh install_rpms # nocache 03/03/22
# This allows Prow jobs for other projects to use our cosa image as their
# buildroot image (so clonerefs can copy the repo into `/go`). For cosa itself,
# this same hack is inlined in the YAML (see openshift/release link above).
RUN mkdir -p /go && chmod 777 /go
COPY ./ /root/containerbuild/
RUN ./build.sh write_archive_info
RUN ./build.sh make_and_makeinstall
RUN ./build.sh configure_user
# clean up scripts (it will get cached in layers, but oh well)
WORKDIR /srv/
RUN chown builder: /srv
RUN rm -rf /root/containerbuild /go
# allow writing to /etc/passwd from arbitrary UID
# https://docs.openshift.com/container-platform/4.8/openshift_images/create-images.html
RUN chmod g=u /etc/passwd
# run as `builder` user
USER builder
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/bin/coreos-assembler"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/serenalll/nestos-assembler.git
git@gitee.com:serenalll/nestos-assembler.git
serenalll
nestos-assembler
nestos-assembler
master

搜索帮助