1 Star 0 Fork 88

duyiwei/nestos-assembler_pr

forked from openEuler/nestos-assembler 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
FROM openeuler-22.03-lts-sp4: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 /root/containerbuild/
COPY ./certs /etc/pki/ca-trust/source/anchors/
RUN /usr/bin/update-ca-trust
RUN ./build.sh configure_yum_repos
RUN ./build.sh install_rpms
# 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
# also allow adding certificates
RUN chmod -R g=u /etc/pki/ca-trust
# run as `builder` user
USER builder
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/bin/coreos-assembler"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/duyiwei7w/nestos-assembler_pr.git
git@gitee.com:duyiwei7w/nestos-assembler_pr.git
duyiwei7w
nestos-assembler_pr
nestos-assembler_pr
master

搜索帮助