Skip to content

Instantly share code, notes, and snippets.

@david-martin
Last active October 27, 2016 11:27
Show Gist options
  • Save david-martin/0ed03cbdbd8d75ec0aa96fe8e2a0b6cd to your computer and use it in GitHub Desktop.
Save david-martin/0ed03cbdbd8d75ec0aa96fe8e2a0b6cd to your computer and use it in GitHub Desktop.
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`
@pmdarrow
Copy link

pmdarrow commented Oct 26, 2016

Note to Mac users: you can also brew install openshift-cli if curl from the cache isn't working (correct me if I'm wrong @david-martin).

@danielpassos
Copy link

@pmdarrow As a mac user I also needed to install socat brew install socat

@danielpassos
Copy link

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

@danielpassos
Copy link

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