Posts

Showing posts with the label DCOS

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...

Upgrade DCOS from 1.9 to 1.10

Image
Reference DC/OS 1.10 Manual Youtube demonstration Install Check current version Go system->System Overview to see the version Preparation Current bootstrap folder [dcosadmin@dcotest01 ~]$ ls ceph dcos_generate_config.sh genconf dcos-genconf.0ce03387884523f026-58fd0833ce81b6244f.tar dcos-install.tar jq [dcosadmin@dcotest01 ~]$ Create new version folder and copy config.yaml and ip-detect [dcosadmin@dcotest01 ~]$ mkdir dcos1-10 [dcosadmin@dcotest01 ~]$ cd dcos1-10 [dcosadmin@dcotest01 dcos1-10]$ ls ../genconf/ cluster_packages.json config.yaml serve/ state/ config.upgrade.yaml ip-detect ssh_key [dcosadmin@dcotest01 dcos1-10]$ mkdir genconf [dcosadmin@dcotest01 dcos1-10]$ cd genconf [dcosadmin@dcotest01 genconf]$ cp ../../genconf/config.yaml . [dcosadmin@dcotest01 genconf]$ cp ../../genconf/ip-detect . [dcosadmin@dcotest01 genconf]$ ls config.yaml config.yaml [dcosadmin@d...

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...

DCOS Troubleshooting

Reference [DC/OS Troubleshooting 1.9] (https://docs.mesosphere.com/1.9/installing/troubleshooting/) NTP Servers Useful command SSH to your master node and enter this command to view the logs from boot time: journalctl -u dcos-adminrouter -b SSH to your agent node and enter this command to view the logs from boot time: journalctl -u dcos-mesos-slave -b SSH to your master node and enter this command to view the logs from boot time: journalctl -u dcos-marathon -b Failed to start Navstar: A distributed systems & network overlay orchestration engine [dcosadmin@dcostest03 ~]$ service dcos-navstar restart Redirecting to /bin/systemctl restart dcos-navstar.service ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to manage system services or units. Authenticating as: dcosadmin Password: ==== AUTHENTICATION COMPLETE === Job for dcos-navstar.service failed because the control process exited with error code. See "systemctl status dcos-...

How to add agents to DC/OS 1.9

To test the tweeter apps from DC/OS tutorial, we are going to add 4 more agents into our system; 172.16.110.33 to 172.16.110.36 General steps to add new node will be Adding new nodes to genconf/config.yaml from the Bootstrap node Running prerequistics from the Bootstrap node Running preflight from the Bootstrap node Establish ssh between the Bootstrap nodes to new nodes; genereate key and copy the key to agents Install agent as described from DCOS Adding Nodes Update detect_ip script from installation folder Running postflight from the Bootstrap node Reference DCOS Backup from Bootstrap DOCS Adding Nodes Stackoverflow FAQ Archive installation folder Go to the bootstrap node which is 172.16.110.20 for me and archive DCOS install files [dcosadmin@dcotest01 ~]$ cd genconf/serve [dcosadmin@dcotest01 serve]$ sudo tar cf dcos-install.tar * [dcosadmin@dcotest01 serve]$ ll total 613600 drwxrwxrwx. 2 root root 131 Apr 20 16:37 bootstrap -rw-rw-rw-. 1 root root 4...