Last active
October 27, 2016 11:27
-
-
Save david-martin/0ed03cbdbd8d75ec0aa96fe8e2a0b6cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ensure Docker >=v1.10.3 is installed | |
Ensure fhc is installed from this branch | |
npm i -g git://github.com/feedhenry/fh-fhc.git#workshop | |
Ensure 'oc' is installed | |
(Linux) curl -O http://192.168.1.247:8080/oc-linux.tar.gz | |
(Mac) curl -O http://192.168.1.247:8080/oc-mac.tar.gz | |
Clone these public repos into the same folder (preferably ~/work/) | |
feedhenry/fh-core-openshift-templates#master | |
feedhenry/fh-mbaas-openshift-templates#master | |
feedhenry/fh-cup#master | |
Configure docker to use the registry mirror here | |
(Linux) Add --registry-mirror=http://192.168.1.247:5000 to OPTIONS in /etc/sysconfig/docker | |
(Mac) OR set the Registry Mirror to http://192.168.1.247:5000 in Docker Toolbox GUI | |
Configure insecure registry | |
(Linux) Add `--insecure-registry 172.30.0.0/16` to INSECURE_REGISTRY in /etc/sysconfig/docker | |
(Mac) Add "172.30.0.0/16" to Advanced>Insecure Registries in Docker Toolbox GUI | |
Run up.sh from ~/work/fh-cup | |
If on Fedora, you may need to flush iptables (WARNING!!!) FLUSH_IPTABLES=true up.sh | |
Oh no! Stuff has gone wrong, run `./down.sh && ./clean.sh && ./up.sh` |
If you are not using ~/work
as a default dir you need to setup 2 environment. FH_CORE_OPENSHIFT_TEMPLATES and FH_MBAAS_OPENSHIFT_TEMPLATES
export FH_WORK_DIR=~/Development/Projects/Feedhenry
export FH_CORE_OPENSHIFT_TEMPLATES=$FH_WORK_DIR/fh-core-openshift-templates
export FH_MBAAS_OPENSHIFT_TEMPLATES=$FH_WORK_DIR/fh-mbaas-openshift-templates
I have found another pre-req from fhc
fhc ERR! unsupported version fhc requires node version: >=0.8 <= 4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pmdarrow As a mac user I also needed to install socat
brew install socat