-
Signup for a Bluemix Account here
-
Setup Docker on your local machine. Signup at hubs.docker.com , link github with docker and create Repository for your fork Yacy-Server. Linux:
Debian: apt-get install docker RPM: dnf install docker
Note: the docker repository shall be public
-
Download and install cloud foundry command line tools for your OS from here Linux:
dpkg -i cf-cli-version.dep
-
Install ic plugin as described here Linux:
wget https://www.ng.bluemix.net/docs/containers/container_cli_ov.html#container_cli_cfic_install cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-linux_x64
-
Login to any region (US South, Sydney or United Kingdom), setup Organization and Space for it.
Region: United Kingdom User: [email protected] Org: BAAC Space: yacy-server
-
Login to bluemix with api endpoint.
cf login -a <API endpoint>
API endpoint for United Kingdom is
https://api.eu-gb.bluemix.net
-
Login/initiate ibm container plugin.
cf ic login
or
cf ic init
-
Create namespace with unique name like nikhilrayaprolu.
cf ic namespace set <your unique namespace>
-
Upload the yacy docker file to your namespace. There are 2 ways to do this:
a. Upload docker image from your local machine. For docker installation, see [installation_docker.md]
docker tag <docker image id> <registry_name>/<your namespace>/<bluemix space name>:<tag_name> docker push <registry_name>/<your namespace>/<bluemix space name>:<tag_name>
Like:
docker tag b4de28726243 registry.eu-gb.bluemix.net/nikhilrayaprolu/yacygridmcp:v1 docker push registry.eu-gb.bluemix.net/nikhilrayaprolu/yacygridmcp:v1
b. Copy docker image from docker public repository.
cf ic cpi <docker-username>/<docker public repo> <registry_name>/<your namespace>/<bluemix space name>:<tag_name>
Like:
cf ic cpi nikhilrayaprolu/yacygridmcp registry.eu-gb.bluemix.net/nikhilrayaprolu/yacygridmcp:v1
-
Create Kubernetes Cluster with image uploaded to your private bluemix registry. There are 2 ways:
a. Go to catalog option on your bluemix dashboard and select Container category. Select Kubernetes cluster, select image, create the instance group (preferably Scalable cluster over Single cluster)
b. Or on terminal:
cf ic group create --name yacygridmcp --auto --desired 2 -m 1024 -n cloud-yacy -d mybluemix.net -p 8100 registry.eu-gb.bluemix.net/nikhilrayaprolu/yacygridmcp:v1
-
Check if your group is running either with pressing Dashboard in the browser or on terminal:
cf ic group list
-
Wait until your container group is built and the network is configured (>1 minute) and then check at your public IP (Single instance) or route (scalable instance group) that is assigned by bluemix.