一个从tensorflow_1.14.0-gpu-py3-jupyter镜像生成公司实际需求的Dockerfile
外部的标准镜像,肯定满足不了公司的实际要求咯~~
所以,根据同事的需求,重新制作了这个包。
其中可用库为tensorflow,numpy, pandas,scikit-learn,jieba,gensim, opencv,requests以及与hdfs文件系统的互访。
因为公司不可以直接直外网,所以dockerfile里引入了http代理。
作个记录。
这里需要注意的细节是
1,apt-get upgrade之后,要重新导入http代理的环境变量,否则不生效的。
2,datatools为自己的whl,官方没得找
3,sources.list为阿里的镜像源
4,rm -rf /etc/apt/sources.list.d/*动作是因为这里有国外的镜像源,有时访问不到。
5,sasl 的安装比较奇特,需要先apt-get install libsasl2-dev -y -q
6,opencv-contrib-python安装也奇特,要先安装libsm6,libxrender1,libxext-dev.
FROM tensorflow/tensorflow:1.14.0-gpu-py3-jupyter
MAINTAINER pm
COPY ./datatools-1.0.0-py2.py3-none-any.whl /tmp/
COPY ./sources.list /etc/apt/sources.list
RUN export http_proxy=http://xxx.local:8080 \
&& export https_proxy=xxx:8080 \
&& export ftp_proxy=xxx.local:8080 \
&& rm -rf /etc/apt/sources.list.d/* \
&& apt-get -y -q update \
&& apt-get -y -q upgrade
RUN export http_proxy=http://xxx.local:8080 \
&& export https_proxy=xxx.local:8080 \
&& export ftp_proxy=xxx.local:8080 \
&& apt-get install libsasl2-dev -y -q\
&& apt-get install libsm6 -y -q\
&& apt-get install libxrender1 -y -q\
&& apt-get install libxext-dev -y -q\
&& pip install sasl \
&& pip install requests \
&& pip install /tmp/datatools-1.0.0-py2.py3-none-any.whl \
&& pip install requests \
&& pip install pandas \
&& pip install scikit-learn \
&& pip install jieba \
&& pip install gensim \
&& pip install opencv-contrib-python \
&& pip install thrift \
&& pip install pyhive \
&& pip install configparser \
&& pip install pandas \
&& pip install hdfs \
&& pip install sqlparse \
&& pip install thrift-sasl \
&& echo "finished!!!"
一个从tensorflow_1.14.0-gpu-py3-jupyter镜像生成公司实际需求的Dockerfile的更多相关文章
- 由于Microsoft\VisualStudio\14.0\Designer\ShadowCache导致的一个异常问题
本文引用了一个DynamicDataDisplay和DynamicControl两个类库,本来使用的时候都时正常的,愉快的运行着. DynamicDataDisplay:这是一个用于动态数据可视化的W ...
- jupyter 安装问题 building 'zmq.libzmq' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
1.用pip install jupyter 安装到一半就报错 错误提示: building 'zmq.libzmq' extension error: Microsoft Visual C++ 14 ...
- pip install 一个本地包时提示error: Microsoft Visual C++ 14.0 is required.
错误如下: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Too ...
- tensor搭建--windows 10 64bit下安装Tensorflow+Keras+VS2015+CUDA8.0 GPU加速
windows 10 64bit下安装Tensorflow+Keras+VS2015+CUDA8.0 GPU加速 原文见于:http://www.jianshu.com/p/c245d46d43f0 ...
- python 绘图与可视化 Graphviz 二叉树 、 error: Microsoft Visual C++ 14.0 is required
需要对二叉树的构建过程进行可视化,发现了这个Graphviz软件,他对描绘数据间的关系十分擅长. 下载链接:https://graphviz.gitlab.io/_pages/Download/Dow ...
- EDS 14.0 dtc:commmand not found
EDS 14.0在生成dtb文件时,输入命令: dtc -I dts -O dtb -o soc_system.dtb soc_system.dts 出现错误: bash:dtc:command on ...
- Adobe Photoshop CC 14.0简体中文特别版32位和64位下载
国内私募机构九鼎控股打造APP,来就送 20元现金领取地址:http://jdb.jiudingcapital.com/phone.html内部邀请码:C8E245J (不写邀请码,没有现金送)国内私 ...
- CDH:5.14.0 中 Hive BUG记录
CDH5.14.0使用的HIVE版本: 自建表log: +----------------------------------------------------+--+ | createtab_st ...
- Nginx1.14.0+ModSecurity实现简单的WAF
一.编译安装Nginx 1.安装依赖环境 $ yum -y install gcc-c++ flex bison yajl yajl-devel curl-devel curl GeoIP-devel ...
随机推荐
- Tomcat服务部署与Nginx负载均衡配置
一.中间键产品介绍 目前来说IBM的WebSphere,Oracle的Weblogic占据了市场上java语言Web站点的部分份额,该两种软件都是商业化的软件,由于性能优越,可靠性高等优点应用于大型互 ...
- Graphviz学习
(入门教程)[https://www.luogu.com.cn/blog/umr/graphviz]
- [LeetCode] 920. Number of Music Playlists 音乐播放列表的个数
Your music player contains N different songs and she wants to listen to L (not necessarily different ...
- [LeetCode] 290. Word Pattern 词语模式
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full mat ...
- [LeetCode] 130. Surrounded Regions 包围区域
Given a 2D board containing 'X' and 'O'(the letter O), capture all regions surrounded by 'X'. A regi ...
- WebSocket--客户端
WebSocket 是 HTML5 提供的一种在单个TCP连接上进行全双工通讯的协议. WebSocket 使得客户端和服务端通讯,数据交换更加简单,而且允许服务端主动向客户端发送数据.在WebSoc ...
- google 镜像
google 镜像 http://scholar.hedasudi.com/ http://ac.scmor.com/
- Qt Quick 常用元素:Textinput 与 TextEdit 文本编辑框
一.Textinput Textinput 用于编辑一行文本,类似于 QLineEdit. font 分组属性允许你设置 Textlnput 元素所用字体的各种属性,包括字体族(family).大 小 ...
- SQL Server 2014:为什么会提示“用户登录失败”?
SQL Server有两种登录方式,Windows身份验证和sql server身份验证,其对应的数据库连接字符串如下: Windows身份验证 ----- @"Data Source=DE ...
- iOS block疑难解答
1,为什么需要加__block ARC环境下,一旦Block赋值就会触发copy,__block就会copy到堆上,Block也是__NSMallocBlock.ARC环境下也是存在__NSStack ...