内容简介:fabric-baseimage主要内容fabric-baseimage主要是build出三个基本image(baseos, basejvm, baseimage),还包括三个dependent-images(couchdb, kafka, zookeeper)。这里我们不讨论dependent-images,只关注三个基本image,即baseos, basejvm, baseimage
fabric-baseimage主要内容
fabric-baseimage主要是build出三个基本image(baseos, basejvm, baseimage),还包括三个dependent-images(couchdb, kafka, zookeeper)。
这里我们不讨论dependent-images,只关注三个基本image,即baseos, basejvm, baseimage
这三个基本images是继承关系:
- baseos是最基础的,基本上只包括各个不同平台os image的一个wrapper。
- basejvm是baseos的扩展,增加了JDK。
- baseimage是basejvm的扩展,增加了一些库和工具,例如curl, make, g++, golang, nodejs, python等。
baseos
基于指定的os image更新到最新库版本。
然后安装wget工具,因为wget在后面的image安装中会被用到。
$ cat config/baseos/Dockerfile.in
FROM _DOCKER_BASE_ # defined in Makefile: DOCKER_BASE_amd64=ubuntu:xenial
COPY scripts /tmp/scripts
RUN cd /tmp/scripts && \
common/init.sh && \ # update to latest using apt-get
docker/init.sh && \ # intall wget, it's used by later script
common/cleanup.sh && \
rm -rf /tmp/scripts
basejvm
在baseos的基础上,安装 java 环境。
$ cat config/basejvm/Dockerfile.in
FROM _NS_/fabric-baseos:_TAG_
COPY scripts /tmp/scripts
RUN cd /tmp/scripts && \
common/jvm.sh && \ # install openjdk-8-jdk
common/cleanup.sh && \
rm -rf /tmp/scripts
baseimage
在basejvm的基础上,增加了一些 工具 包,包括curl,sudo, git, make, zip, golang, nodejs, python, etc.
$ cat config/baseimage/Dockerfile.in
FROM _NS_/fabric-basejvm:_TAG_
COPY scripts /tmp/scripts
RUN cd /tmp/scripts && \
common/packages.sh && \ #install software-properties-common curl sudo
common/setup.sh && \ # install common tools(git, net-tools, make, g++, unzip, etc)/Golang/NodeJS/python2.7/protocol buffer support
docker/fixup.sh && \ # prepare /opt/gopath and /var/hyperledger
common/cleanup.sh && \
rm -rf /tmp/scripts
ENV GOPATH=/opt/gopath
ENV GOROOT=/opt/go
ENV GOCACHE=off
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- 利用Azure内容审查器审查违规内容(上) 荐
- 精选内容:developerWorks 上最受欢迎的 Java 内容
- 小帅一点资讯版本更新:返回内容更丰富,增加百科内容
- PingPangChat 内容更新 20200508
- PingPangChat 内容更新 20200516
- phpinfo获取敏感内容
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
How to Solve It
Zbigniew Michalewicz、David B. Fogel / Springer / 2004-03-01 / USD 59.95
This book is the only source that provides comprehensive, current, and detailed information on problem solving using modern heuristics. It covers classic methods of optimization, including dynamic pro......一起来看看 《How to Solve It》 这本书的介绍吧!
JS 压缩/解压工具
在线压缩/解压 JS 代码
URL 编码/解码
URL 编码/解码