Posts

Showing posts from June, 2017

Build React Native App (4) - Redux, Jest, and NativeBase

Image
From this blog, typescript feature will be added. There are couple of ways to implement static type checking like; flow from facebook, PropTypes and Typescript. Typescript is well integrated with Visual Studio Code and supports better linter, error messages, and intellisense. Reference site Github Sample Ex4 Currnet version D:\GitRepo\reactnative>npm --version 6.3.0 D:\GitRepo\reactnative>react-native --version react-native-cli: 2.0.1 react-native: n/a - not inside a React Native project directory D:\GitRepo\reactnative>yarn --version 1.9.4 Creating React Native App $ react-native init ex4 If you want to specify the version, add "--version 0.57.3" at the end. Add NativeBase to React Native $ npm install native-base --save ... + native-base@2.8.1 added 71 packages from 42 contributors, removed 50 packages, updated 829 packages and audited 34989 packages in 138.542s found 0 vulnerabilities $ $ yarn yarn install v1.9.4 warning package-lock.json found. You...

Installing Ceph docker plugin to DCOS using Rex-Ray

Image
Installing Ceph docker plugin to DCOS using Rex-Ray Introduction From the previous blog, DC/OS 1.9 and Ceph have been installed. To install Jenkins using external volume, I decided to use Rex-Ray because most of other plugins have not been maintained properly to support latest version. Reference dcos-rexray Marathon rexray Configuring docker to use rexray and Ceph for persistent storage Rex-ray configuration generator rexray Docker volume plug-ins Install Rex-Ray [dcosadmin@dcotest02 ~]$ sudo su - Last login: Mon Jun 26 12:50:35 MDT 2017 from 172.16.110.20 on pts/0 [root@dcotest02 ~]# curl -sSL https://dl.bintray.com/emccode/rexray/install | sh INFO[0000] updated log level logLevel=info INFO[0000] exiting process time=1498592066094 rexray has been installed to /usr/bin/rexray INFO[0000] updated log level logLevel=info REX-Ray ------- Binary: /usr/bin/rexray Flavor: client+agent+controlle...

Install Ceph shared storage to DCOS 1.9

Image
After installing DC/OS, I noticed that all data worked with container stored to local node. Due to the reason, when the container was moved from one node to antoher, all configuration has been lost. I tried to find out shared storage solution and this manual is regarding how to add CEPH open source platform to CentOS DC/OS platform Reference Ceph Script on DC/OS Ceph on DC/OS losetup manual Checking file system type in Linux Ceph example from DCOS 1.8 Ceph example from DCOS 1.9 bash_rc vs profile Install lightttpd rbd-docker-plugin Current configuration As I posted from previous DC/OS blog, my configuration is I used 4 nodes as DC/OS recommended ComputerName IP Addess Computer Spec Description Note dcostest01 172.16.110.20 2 core, 16GB, 100 GB Disk Bootstrap Computer Ceph Client & DC/OS CLI will be in here dcostest02 172.16.110.30 2 core, 16GB, 100 GB Disk Agent1-Master dcostest03 172.16.110.31 2 core, 16GB, 100 GB Disk Agent1-Private Ag...