Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以介绍下如何构建出noslate 基镜像? is there any wiki or intro help me to build a noslate base docker image? #55

Open
zhanzekun opened this issue Dec 31, 2023 · 6 comments

Comments

@zhanzekun
Copy link

zhanzekun commented Dec 31, 2023

问题背景:

我需要定制化出 noslate 镜像(而非 noslate-gateway), 但我没有找到指引(wiki 里只有如何构建 noslate-gateway 镜像)
我在根据noslate.dockerfile仿写尝试时,发现在这一步会挂掉
image

COPY ./build/noslate.tar.gz noslate.tar.gz

这看起来是要求构建环境里有./build/noslate.tar.gz 这个文件;

于是我看回 makefile 文件,但是发现这里被缺省去了一些变量。
image

所以我想问:

  1. 是否可以介绍下如何构建 noslate 基镜像?
  2. makefile 文件里./build/noslate.tar.gz是怎么来的?

————————

Problem background:

I need to customize the noslate image (not noslate-gateway), but I can't find the guide (the wiki only shows how to build the noslate-gateway image)
When I tried to imitate noslate.dockerfile, I found that it would hang at this step.

This seems to require the build environment to have the file ./build/noslate.tar.gz;

So I looked back at the makefile, but found that some variables were omitted by default.

So I want to ask:

  1. Can you tell me how to build a noslate base image?
  2. Where does ./build/noslate.tar.gz come from in the makefile?
@zhanzekun zhanzekun changed the title 是否可以介绍下如何构建处 noslate 基镜像? is there any wiki or intro help me to build a noslate base docker image? 是否可以介绍下如何构建出noslate 基镜像? is there any wiki or intro help me to build a noslate base docker image? Dec 31, 2023
@mariodu
Copy link
Contributor

mariodu commented Jan 2, 2024

有构建好的 dockerfile,可以据此来扩展 https://github.com/noslate-project/noslate/pkgs/container/noslate

@zhanzekun
Copy link
Author

有构建好的 dockerfile,可以据此来扩展 https://github.com/noslate-project/noslate/pkgs/container/noslate

是这样,司内生产环境要求所有业务 docker 必须基于司内标准 tlinux;所以我需要定制出基于 tlinux 系统下的 noslate 基镜像;这样也能基于仓库内开源的 dockerfile 来扩展吗?

@zhanzekun
Copy link
Author

mario 不知道方不方便+下微信呢? 微信号: ArcticHarpSeal

@mariodu
Copy link
Contributor

mariodu commented Jan 2, 2024

有构建好的 dockerfile,可以据此来扩展 https://github.com/noslate-project/noslate/pkgs/container/noslate

是这样,司内生产环境要求所有业务 docker 必须基于司内标准 tlinux;所以我需要定制出基于 tlinux 系统下的 noslate 基镜像;这样也能基于仓库内开源的 dockerfile 来扩展吗?

那应该是不行的,需要自行构建产物。

  1. 参考:https://github.com/noslate-project/manifest 将仓库 clone 到构建环境中。
  2. 进入 build 目录,执行 make,然后将 out/archives/* 下产物打包

因为目前没有存储产物的空间,所以产物没有开放出来

@mariodu
Copy link
Contributor

mariodu commented Jan 2, 2024

ArcticHarpSeal

加你了

@mariodu
Copy link
Contributor

mariodu commented Jan 2, 2024

有构建好的 dockerfile,可以据此来扩展 https://github.com/noslate-project/noslate/pkgs/container/noslate

是这样,司内生产环境要求所有业务 docker 必须基于司内标准 tlinux;所以我需要定制出基于 tlinux 系统下的 noslate 基镜像;这样也能基于仓库内开源的 dockerfile 来扩展吗?

构建环境依赖可以参考 https://github.com/noslate-project/ci-scripts/blob/main/dockerfiles/centos7-devtoolset8.dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@mariodu @zhanzekun and others