一个从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 ...
随机推荐
- c语言线程中传输多个参数
前言:c语言中创建一条线程,但是需要传送多个参数给线程的话我们自然会想到通过传送数组或者结构体来实现,下面我们来看看如何在创建线程的时候传送结构体和数组. #include <stdio.h&g ...
- Linux性能优化实战学习笔记:第四十一讲
一.上节回顾 上一节,我们探究了网络延迟增大问题的分析方法,并通过一个案例,掌握了如何用hping3.tcpdump.Wireshark.strace 等工具,来排查和定位问题的根源. 简单回顾一下, ...
- 2019 SDN上机第1次作业
一.安装轻量级网络仿真工具Mininet 克隆github上的Mininet源 git clone https://github.com/mininet/mininet 选择默认全部安装 cd min ...
- java、ajax 跨域请求解决方案('Access-Control-Allow-Origin' header is present on the requested resource. Origin '请求源' is therefore not allowed access.)
1.情景展示 ajax调取java服务器请求报错 报错信息如下: 'Access-Control-Allow-Origin' header is present on the requested ...
- C#调用WPS将文档转换成pdf进行预览
引用:https://www.jianshu.com/p/445996126c75 vs启动项目可以生成wps实例 本地iis部署的站点却不行 原因是vs是管理员权限,而iis没有权限 解决方法 启动 ...
- centos7 安装docker(手动和脚本安装)换源 卸载
centos7 安装docker(手动和脚本安装)换源 卸载 Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker ...
- git bash 使用自带 curl 命令出现乱码解决方法
前言 使用过 git 的小伙伴应该都不会陌生,git 自带一个终端 git bash 类似于 window 自带的 dos git 官网下载:https://git-scm.com/dow ...
- scala基础题--函数可以没有返回值案例,编写一个函数,从终端输入一个整数,打印出对应的金字塔
函数可以没有返回值案例,编写一个函数,从终端输入一个整数,打印出对应的金字塔 import scala.io.StdIn object work02 { def main(args: Array[St ...
- centos7.x下环境搭建(三)—nodejs安装
有3种方式可以安装nodejs yum安装 源码包安装 nvm方式安装 一.方式1:yum安装 这里我们指定安装8.x以上的版本 # curl --silent --location https:// ...
- 使用Redis实现中英文自动补全功能详解
1.Redis自动补全功能介绍: Redis可以帮我们实现很多种功能,今天这里着重介绍的是Redis的自动补全功能的实现.我们使用有序集合,并score都为0,这样就按元素值的字典序排序.然后我们 ...