- Red Hat Principal Software Engineer in Red Hat Research
- Creator of the Smart Village Operator and Smart Village Platform
- Architect of the Red Hat Social Innovation Program
- Founder of the Smarta Byar Smart Village Community FIWARE Innovation Hub
- Principal Software Engineer for the New England Research Cloud
Log into the New England Research Cloud OpenShift Environment here https://console.apps.shift.nerc.mghpcc.org.
- Click the
mkdir -p ~/bin
tar xvf ~/Downloads/oc.tar -C ~/bin/
To grant the default service account edit role privileges, you will use either your own terminal where you have logged in to OpenShift, or use the built-in OpenShift Terminal. We will grant edit privileges on the default service account, as well as edit privileges on roles and rolebindings in the namespace so that the default service account can deploy resources in your namespace.
oc create rolebinding sumo-edit --clusterrole=edit \
--serviceaccount=smart-village-faeeb6c:sumo
oc create role sumo-edit-rolebindings \
--verb=get,list,watch,create,update,patch,delete \
--resource=roles,rolebindings
oc create rolebinding sumo-edit-rolebindings --role=sumo-edit-rolebindings \
--serviceaccount=smart-village-faeeb6c:sumo
In the OpenShift Console, click on the apps button at the top,
then click to log into OpenShift AI.
Log into OpenShift AI by clicking on the button.
Once you are in OpenShift AI, click on the menu button , then click .
Then click on the name of your data science project,
for our project it's smart-village-faeeb6c
.
To create a new workbench, click .
To stay consistent with the rest of the course, enter the workbench name “sumo” .
For Image selection, choose “Minimal Python” .
You can leave the rest of the fields as the default. At the very bottom, click .
After a minute or two, you should see the workbench change from to .
In OpenShift AI, click on the link to open your new OpenShift AI Workbench.
Log into OpenShift AI by clicking on the button.
You will need to authorize yourself access to your workbench. Click .
You will want to open a Terminal inside your OpenShift AI Workbench to load the course resources. There are many ways to open a terminal, but here is one that always works.
With git, clone the course materials to the default home directory (/opt/app-root/src) of your workbench.
git clone https://github.com/smartabyar-smartvillage/smartabyar-smartvillage-sandbox-course.git ~/smartabyar-smartvillage-sandbox-course
It will ask you to enter your username and password. This is where you enter your GitHub username, and the token value you copied from GitHub earlier. The git credential.helper store should remember your password.
We will be using the open source smartvillage-operator to set up the rest of the course.
In your Workbench Terminal, clone the smartvillage-operator into your workbench with this command.
git clone https://github.com/smartabyar-smartvillage/smartvillage-operator.git ~/smartvillage-operator
A Jupyter Notebook is an interactive, online notebook, and the rest of the course be found in the Jupter Notebook. Here is how to find the course Jupyter Notebook.
- In your workbench, make sure your left sidebar is open. If it’s not, press [ Ctrl ] + [ b ].
- Navigate to
smartabyar-smartvillage-sandbox-course
. - Open the first Notebook 01-install-prerequisites.ipynb and follow the instructions from there.
ansible-playbook ~/smartvillage-operator/clone-smart-model-data.yml -e PROJECT_PREFIX="$HOME" -e SOLR_BASE_URL="http://solr:8983"
env SITE_NAME=smartabyar-smartvillage SITE_PATH=$HOME/smartabyar-smartvillage COMPUTATE_SRC=$HOME/computate SITE_LANG=enUS $HOME/computate/bin/enUS/watch.sh
rm -rf `find -type d -name .ipynb_checkpoints`
(cd ~/smartabyar-smartvillage && env \
RUN_ARTICLE_GENERATOR=true \
RUN_FIWARE_GENERATOR=true \
RUN_OPENAPI3_GENERATOR=true \
RUN_PROJECT_GENERATOR=true \
RUN_SQL_GENERATOR=true \
CONFIG_PATH=$HOME/smartabyar-smartvillage/config/smartabyar-smartvillage.yml \
mvn exec:java -Dexec.mainClass="org.computate.smartvillage.enus.vertx.MainVerticle")
(cd ~/smartabyar-smartvillage && mvn clean install)
(cd ~/smartabyar-smartvillage \
&& env CONFIG_PATH=$HOME/smartabyar-smartvillage/config/smartabyar-smartvillage.yml \
VERTXWEB_ENVIRONMENT=dev \
mvn exec:java \
-DfileResolverCachingEnabled=false \
-Dvertx.disableFileCaching=true \
-Dexec.mainClass="org.computate.smartvillage.enus.vertx.MainVerticle")