[Exchange and share] 基于deepin-community/deepin-rootfs的deepinv23docker镜像
Tofloor
poster avatar
fallingstar-ten
deepin
2023-07-19 23:44
Author

截图_选择区域_20230719153218.png
仓库地址:https://github.com/rainoffallingstar/deepin-rootfs-docker

主要操作:将deepin-community/deepin-rootfs项目产生的tar包导入,然后更新系统、设置CMD及环境。目前的dockerfile如下:

# Dockerfile
FROM scratch
ADD deepin-rootfs.tar /

# Install software
RUN apt-get update && apt-get upgrade -y  \
    && rm -rf /var/lib/apt/lists/* 

RUN rm -rf /tmp/download_packages

# set env variables

ENV PATH=$PATH:/bin/bash

# Define default command.

EXPOSE 80
EXPOSE 8787

CMD ["/bin/bash"]

仓库使用github action持续构建,使用本镜像用法如下:

podman pull docker.io/fallingstar10/deepinv23:base
podman run -it -v /home:/home --name myubuntu01 docker.io/fallingstar10/deepinv23:base /bin/bash


目前镜像大小在228M左右。

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-19 23:48
#1

like

Reply View the author
键盘机
deepin
2023-07-20 17:31
#2

马克

Reply View the author
绍贝格尔
deepin
2023-07-20 21:26
#3

arm 开发版可以按照这个来构建吗

Reply View the author
fallingstar-ten
deepin
2023-07-20 22:52
#4
绍贝格尔

arm 开发版可以按照这个来构建吗

可以,把我仓库workflow的文件里面的链接改成community仓库release里面的arm的tar文件就行,总之tar是arm版的应该就行

Reply View the author
fallingstar-ten
deepin
2023-07-20 23:00
#5
绍贝格尔

arm 开发版可以按照这个来构建吗

arm 版的github action workflow我推送到gitee了,还没同步到github,可以看这里:https://gitee.com/rainoffallingstar/deepin-rootfs-docker/blob/master/.github/workflows/auto-build-dockerimage-arm.yml,后面arm可以通过 podman pull docker.io/fallingstar10/deepinv23:arm 拉取

Reply View the author
fallingstar-ten
deepin
2023-07-20 23:09
#6
绍贝格尔

arm 开发版可以按照这个来构建吗

可以拉取了,试试podman pull docker.io/fallingstar10/deepinv23:arm

Reply View the author
绍贝格尔
deepin
2023-07-21 16:54
#7
fallingstar-ten

可以拉取了,试试podman pull docker.io/fallingstar10/deepinv23:arm

大佬有教程不,我只会用开发版厂家的提供的文件系统这个不会用

Reply View the author
fallingstar-ten
deepin
2023-07-21 20:18
#8
绍贝格尔

大佬有教程不,我只会用开发版厂家的提供的文件系统这个不会用

没有诶,你上社区的仓库看看?

Reply View the author