Skip to content

Instantly share code, notes, and snippets.

@cmoulliard
Created March 30, 2018 11:08
Show Gist options
  • Save cmoulliard/8b617ddb3b57bcbc83d581536001277a to your computer and use it in GitHub Desktop.
Save cmoulliard/8b617ddb3b57bcbc83d581536001277a to your computer and use it in GitHub Desktop.
minishift config set cpus 4
minishift config set iso-url centos
minishift config set memory 5G
minishift config set image-caching true
minishift config set openshift-version v3.9.0-alpha.3
minishift config set vm-driver xhyve
minishift start
sshpass -p centos ssh-copy-id -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa.pub root@$(minishift ip)
export OPENSHIFT_ADMIN_PWD="admin"
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/Users/dabou/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
bash: warning: setlocale: LC_ALL: cannot change locale (en_BE.UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_BE.UTF-8)
/etc/profile.d/lang.sh: line 32: warning: setlocale: LC_ALL: cannot change locale (en_BE.UTF-8)
sh: warning: setlocale: LC_ALL: cannot change locale (en_BE.UTF-8)
Number of key(s) added: 1
Now try logging into the machine, with: "ssh -o 'StrictHostKeyChecking=no' 'root@192.168.65.2'"
and check to make sure that only the key(s) you wanted were added.
minishift ssh
[docker@minishift ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/live-rw 9.8G 664M 9.0G 7% /
devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 18M 2.0G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sr0 324M 324M 0 100% /run/initramfs/live
/dev/sda1 19G 4.5G 15G 25% /mnt/sda1
tmpfs 396M 0 396M 0% /run/user/0
tmpfs 396M 0 396M 0% /run/user/1000
[docker@minishift ~]$ sudo yum install -y wget
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Installing additional packages on the root filesystem might exceed the allocated overlay size and lock the Minishift VM. Proceed with the installation at your own risk.
For more information, see https://docs.openshift.org/latest/minishift/troubleshooting/troubleshooting-misc.html#root-filesystem-exceeds-overlay-size
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 185 kB 00:00:00
(2/4): base/7/x86_64/group_gz | 156 kB 00:00:00
(3/4): base/7/x86_64/primary_db | 5.7 MB 00:00:04
(4/4): updates/7/x86_64/primary_db | 6.9 MB 00:01:12
Determining fastest mirrors
* base: mirror.kinamo.be
* extras: mirror.kinamo.be
* updates: mirror.kinamo.be
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-15.el7_4.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================
Installing:
wget x86_64 1.14-15.el7_4.1 updates 547 k
Transaction Summary
==============================================================================================================================================================================================================================
Install 1 Package
Total download size: 547 k
Installed size: 2.0 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/updates/packages/wget-1.14-15.el7_4.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY====================== ] 162 kB/s | 363 kB 00:00:01 ETA
Public key for wget-1.14-15.el7_4.1.x86_64.rpm is not installed
wget-1.14-15.el7_4.1.x86_64.rpm | 547 kB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-4.1708.el7.centos.x86_64 (@base/$releasever)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-15.el7_4.1.x86_64 1/1
install-info: No such file or directory for /usr/share/info/wget.info.gz
Verifying : wget-1.14-15.el7_4.1.x86_64 1/1
Installed:
wget.x86_64 0:1.14-15.el7_4.1
Complete!
[docker@minishift ~]$ wget https://github.com/openshift/origin/releases/download/v3.9.0-alpha.3/openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz
--2018-03-30 07:07:07-- https://github.com/openshift/origin/releases/download/v3.9.0-alpha.3/openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/22442668/0e98efec-0c0e-11e8-8053-e959c7f25e0d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180330T110707Z&X-Amz-Expires=300&X-Amz-Signature=8a6cbff9e4a6043e8559c473b3e93c41d9c9439dcc8f13a78666123384abfd6e&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz&response-content-type=application%2Foctet-stream [following]
--2018-03-30 07:07:08-- https://github-production-release-asset-2e65be.s3.amazonaws.com/22442668/0e98efec-0c0e-11e8-8053-e959c7f25e0d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180330T110707Z&X-Amz-Expires=300&X-Amz-Signature=8a6cbff9e4a6043e8559c473b3e93c41d9c9439dcc8f13a78666123384abfd6e&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.64.232
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.64.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43775984 (42M) [application/octet-stream]
Saving to: 'openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz'
100%[====================================================================================================================================================================================>] 43,775,984 3.00MB/s in 15s
2018-03-30 07:07:24 (2.71 MB/s) - 'openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz' saved [43775984/43775984]
[docker@minishift ~]$ tar -vxf openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit.tar.gz
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.security.selinux'
openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit/oc
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.security.selinux'
openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit/README.md
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.security.selinux'
openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit/LICENSE
[docker@minishift ~]$ sudo cp openshift-origin-client-tools-v3.9.0-alpha.3-78ddc10-linux-64bit/oc /usr/local/bin
[docker@minishift ~]$ c
-bash: c: command not found
[docker@minishift ~]$ oc
-bash: /usr/local/bin/oc: Input/output error
[docker@minishift ~]$ df -h
Segmentation fault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment