先下载安装包

https://github.com/minishift/minishift/releases

mac上运行命令

minishift start --vm-driver=virtualbox --registry-mirror=https://docker.mirrors.ustc.edu.cn

运行中会下载一个iso镜像,如果比较慢,就手工下载下来,然后放到相关用户的.minishift相应路径下

我的是 /Users/ericnie/.minishift/cache/iso/centos/v1.12.0

加入path路径后,然后通过

ericdeMacBook-Pro:v1.12.0 ericnie$ minishift start --vm-driver virtualbox
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.10.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.10.0' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'virtualbox' hypervisor ...
-- Starting Minishift VM ......................... OK
-- Checking for IP address ... OK
-- Checking for nameservers ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... FAIL
VM is unable to ping external host
-- Checking HTTP connectivity from the VM ...
Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... % used OK
-- OpenShift cluster will be configured with ...
Version: v3.10.0
-- Copying oc binary from the OpenShift container image to VM ... OK
-- Starting OpenShift cluster ................................
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3. is available ...
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 192.168.99.100 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3. is available ...
Starting OpenShift using openshift/origin-control-plane:v3. ...
I0924 ::47.549769 flags.go:] Running "create-kubelet-flags"
I0924 ::48.749646 run_kubelet.go:] Running "start-kubelet"
I0924 ::49.070376 run_self_hosted.go:] Waiting for the kube-apiserver to be ready ...
I0924 ::12.245945 interface.go:] Installing "kube-proxy" ...
I0924 ::12.246519 interface.go:] Installing "kube-dns" ...
I0924 ::12.246529 interface.go:] Installing "openshift-apiserver" ...
I0924 ::12.246570 apply_template.go:] Installing "openshift-apiserver"
I0924 ::12.248961 apply_template.go:] Installing "kube-proxy"
I0924 ::12.250870 apply_template.go:] Installing "kube-dns"
I0924 ::21.826217 interface.go:] Finished installing "kube-proxy" "kube-dns" "openshift-apiserver"
I0924 ::05.262675 run_self_hosted.go:] openshift-apiserver available
I0924 ::05.263334 interface.go:] Installing "openshift-controller-manager" ...
I0924 ::05.263358 apply_template.go:] Installing "openshift-controller-manager"
I0924 ::08.089585 interface.go:] Finished installing "openshift-controller-manager"
Adding default OAuthClient redirect URIs ...
Adding router ...
Adding web-console ...
Adding centos-imagestreams ...
Adding registry ...
Adding sample-templates ...
Adding persistent-volumes ...
I0924 ::08.109483 interface.go:] Installing "openshift-router" ...
I0924 ::08.109517 interface.go:] Installing "openshift-web-console-operator" ...
I0924 ::08.109527 interface.go:] Installing "centos-imagestreams" ...
I0924 ::08.109535 interface.go:] Installing "openshift-image-registry" ...
I0924 ::08.109542 interface.go:] Installing "sample-templates" ...
I0924 ::08.109549 interface.go:] Installing "persistent-volumes" ...
I0924 ::08.113860 apply_list.go:] Installing "centos-imagestreams"
I0924 ::08.115257 apply_template.go:] Installing "openshift-web-console-operator"
I0924 ::08.117497 interface.go:] Installing "sample-templates/postgresql" ...
I0924 ::08.117517 interface.go:] Installing "sample-templates/cakephp quickstart" ...
I0924 ::08.117529 interface.go:] Installing "sample-templates/dancer quickstart" ...
I0924 ::08.117540 interface.go:] Installing "sample-templates/django quickstart" ...
I0924 ::08.117554 interface.go:] Installing "sample-templates/sample pipeline" ...
I0924 ::08.117564 interface.go:] Installing "sample-templates/mongodb" ...
I0924 ::08.117573 interface.go:] Installing "sample-templates/mysql" ...
I0924 ::08.117583 interface.go:] Installing "sample-templates/rails quickstart" ...
I0924 ::08.117596 interface.go:] Installing "sample-templates/jenkins pipeline ephemeral" ...
I0924 ::08.117606 interface.go:] Installing "sample-templates/mariadb" ...
I0924 ::08.117616 interface.go:] Installing "sample-templates/nodejs quickstart" ...
I0924 ::08.117730 apply_list.go:] Installing "sample-templates/nodejs quickstart"
I0924 ::08.118007 apply_list.go:] Installing "sample-templates/postgresql"
I0924 ::08.118198 apply_list.go:] Installing "sample-templates/cakephp quickstart"
I0924 ::08.118422 apply_list.go:] Installing "sample-templates/dancer quickstart"
I0924 ::08.118483 apply_list.go:] Installing "sample-templates/django quickstart"
I0924 ::08.119167 apply_list.go:] Installing "sample-templates/sample pipeline"
I0924 ::08.119756 apply_list.go:] Installing "sample-templates/mongodb"
I0924 ::08.168681 apply_list.go:] Installing "sample-templates/mysql"
I0924 ::08.169096 apply_list.go:] Installing "sample-templates/rails quickstart"
I0924 ::08.169257 apply_list.go:] Installing "sample-templates/jenkins pipeline ephemeral"
I0924 ::08.169400 apply_list.go:] Installing "sample-templates/mariadb"
I0924 ::20.746839 interface.go:] Finished installing "sample-templates/postgresql" "sample-templates/cakephp quickstart" "sample-templates/dancer quickstart" "sample-templates/django quickstart" "sample-templates/sample pipeline" "sample-templates/mongodb" "sample-templates/mysql" "sample-templates/rails quickstart" "sample-templates/jenkins pipeline ephemeral" "sample-templates/mariadb" "sample-templates/nodejs quickstart"
I0924 ::20.746863 interface.go:] Finished installing "openshift-router" "openshift-web-console-operator" "centos-imagestreams" "openshift-image-registry" "sample-templates" "persistent-volumes"
Server Information ...
OpenShift server started. The server is accessible via web console at:
https://192.168.99.100:8443

运行oc-env命令,将路径加到path中

ericdeMacBook-Pro:v1.12.0 ericnie$ minishift oc-env
export PATH="/Users/ericnie/.minishift/cache/oc/v3.10.0/darwin:$PATH"
# Run this command to configure your shell:
# eval $(minishift oc-env)

然后就可以愉快的玩耍了......

minishift安装的更多相关文章

  1. 【译文连载】 理解Istio服务网格(第二章 安装)

    全书目录 第一章 概述 本文目录 1.命令行工具安装 2. Kubernetes/OpenShift安装 3. Istio安装 4.示例Java微服务安装 4.1 源码概览 4.2 编译和部署cust ...

  2. OpenShift helm的安装

    1.安装过程 下载addons的代码 $ git clone https://github.com/jorgemoralespou/minishift-addons $ cd minishift-ad ...

  3. CDK安装

    1.下载cdk https://developers.redhat.com/products/cdk/download/ 2.在mac OS上更名并加入目录 $ mkdir -p ~/bin $ cp ...

  4. OpenShift 本地开发环境配置(基于 Minishift)

    本文要做什么? 很多为了验证应用在 OpenShift 平台的行为是否正常,或者组成一个简单的开发环境,直接搭建一个 OpenShift/Origin 环境可能太重了,而且运行在本机可能占用内存也太多 ...

  5. docker——容器安装tomcat

    写在前面: 继续docker的学习,学习了docker的基本常用命令之后,我在docker上安装jdk,tomcat两个基本的java web工具,这里对操作流程记录一下. 软件准备: 1.jdk-7 ...

  6. 网络原因导致 npm 软件包 node-sass / gulp-sass 安装失败的处理办法

    如果你正在构建一个基于 gulp 的前端自动化开发环境,那么极有可能会用到 gulp-sass ,由于网络原因你可能会安装失败,因为安装过程中部分细节会到亚马逊云服务器上获取文件.本文主要讨论在不变更 ...

  7. Sublime Text3安装JsHint

    介绍 Sublime Text3使用jshint依赖Nodejs,SublimeLinter和Sublimelinter-jshint. NodeJs的安装省略. 安装SublimeLinter Su ...

  8. Fabio 安装和简单使用

    Fabio(Go 语言):https://github.com/eBay/fabio Fabio 是一个快速.现代.zero-conf 负载均衡 HTTP(S) 路由器,用于部署 Consul 管理的 ...

  9. gentoo 安装

    加载完光驱后 1进行ping命令查看网络是否通畅 2设置硬盘的标识为GPT(主要用于64位且启动模式为UEFI,还有一个是MBR,主要用于32位且启动模式为bois) parted -a optima ...

随机推荐

  1. English——Unit 2

    radiant radiate radical ideal ideology identical identification identify identity journal jounalist ...

  2. php设计模式四 ---- 原型模式

    1.简介 用于创建重复的对象,同时又能保证性能.这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式 意图:用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象. 主要解决:在运 ...

  3. IntelliJ IDEA SpringBoot 使用第三方Tomcat以及部署

    花了半天时间终于成功,记录以备查阅. 一.第三方Tomcat部署 部署部分参考的是:把spring-boot项目部署到tomcat容器中 目标:把spring-boot项目按照平常的web项目一样发布 ...

  4. Django Ajax学习二之csrf跨站请求伪造

    方式1 $.ajaxSetup({ data: {csrfmiddlewaretoken: '{{ csrf_token }}' }, }); 方式2 # html文件from表单中<form& ...

  5. git+jenkins在windows机器上新建一个slave节点【转载】

    转至博客:上海-悠悠 前言 我们在跑自动化项目的时候,希望有单独的测试机能跑自动化项目,并且能集成到jenkins上构建任务.如果公司已经有jenkins环境了,那无需重新搭建. 只需在现有的平台基础 ...

  6. php上传文件限制

    客户端限制(客户端限制在实际上是无法阻止上传): 通过表单隐藏域限制上传文件的最大值 <input type=’hidden’ name=’MAX_FILE_SIZE’ value=’字节数’ ...

  7. zoj 3195

    http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3320 离线算法RE了.. #include<stdio.h> #i ...

  8. 深刻剖析VuGen脚本录制原理

    扩展:深刻剖析VuGen脚本录制原理 LR中的VuGen组件,主要扮演一个proxy server的角色,在录制脚本时,记录下用户和服务器交互,然后自动生成脚本语言.在接下来的重放,或者大批量地加压时 ...

  9. 微软企业库5.0 学习之路——第七步、Cryptographer加密模块简单分析、自定义加密接口及使用—下篇

    在上一篇文章中, 我介绍了企业库Cryptographer模块的一些重要类,同时介绍了企业库Cryptographer模块为我们提供的扩展接口,今天我就要根据这些 接口来进行扩展开发,实现2个加密解密 ...

  10. 【笔试题】Java 易错题精选

    笔试题 Java 易错题精选 1.写出下列程序的运行结果( )String 不变性Java 值传递 public class Test { public static void main(String ...