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
- Get link
- X
- Other Apps
Reference
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@dcotest01 genconf]$ cat config.yaml
---
agent_list:
- 172.16.110.31
- 172.16.110.32
- 172.16.110.33
- 172.16.110.34
- 172.16.110.35
- 172.16.110.36
bootstrap_url: http://172.16.110.20:30110
cluster_name: DC/OS
exhibitor_storage_backend: static
ip_detect_path: genconf/ip-detect
master_discovery: static
master_list:
- 172.16.110.30
process_timeout: 10000
public_agent_list:
- 172.16.110.37
resolvers:
- 172.16.10.11
- 8.8.4.4
ssh_key_path: genconf/ssh_key
ssh_port: 22
ssh_user: dcosadmin
[dcosadmin@dcotest01 genconf]$ cat ip-detect
#!/usr/bin/env bash
set -o nounset -o errexit
export PATH=/usr/sbin:/usr/bin:$PATH
echo $(ip addr show ens160 | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)[dcosadmin@dcotest01 genconf]$
Downloading new version and generate upgrade script
[dcosadmin@dcotest01 dcos1-10]$ curl -O https://downloads.dcos.io/dcos/stable/dcos_generate_config.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 809M 100 809M 0 0 3952k 0 0:03:29 0:03:29 --:--:-- 3726k
[dcosadmin@dcotest01 dcos1-10]$
Generate upgrade script
[dcosadmin@dcotest01 dcos1-10]$ chmod 755 dcos_generate_config.sh
[dcosadmin@dcotest01 dcos1-10]$ sudo ./dcos_generate_config.sh --generate-node-upgrade-script 1.9.0
Extracting image from this script and loading into docker daemon, this step can take a few minutes
dcos-genconf.e38ab2aa282077c8eb-4d92536e7381176206.tar
2b0fb280b60d: Loading layer 5.058MB/5.058MB
5dbf2bbac80f: Loading layer 23.06MB/23.06MB
a6cc763b8c4b: Loading layer 4.075MB/4.075MB
88a3721f5e39: Loading layer 167.9MB/167.9MB
9f45d9c27fc5: Loading layer 2.56kB/2.56kB
8656f84f2846: Loading layer 25.31MB/25.31MB
28e591aa11e6: Loading layer 623.8MB/623.8MB
0393104f7f6b: Loading layer 4.096kB/4.096kB
1944e69bc891: Loading layer 3.072kB/3.072kB
f90015d26129: Loading layer 6.656kB/6.656kB
d13461bd8e5e: Loading layer 1.536kB/1.536kB
Loaded image: mesosphere/dcos-genconf:e38ab2aa282077c8eb-4d92536e7381176206
Generating configuration files...
Generating configuration files...
Package filename: packages/dcos-config/dcos-config--setup_38470700209e99c037c371047148d793a81d51bf.tar.xz
Package filename: packages/dcos-metadata/dcos-metadata--setup_38470700209e99c037c371047148d793a81d51bf.tar.xz
Generating Bash configuration files for DC/OS
Node upgrade script URL: http://172.16.110.20:30110/upgrade/68a5987c5e894832b7ecf8f6d2758abc/dcos_node_upgrade.sh
[dcosadmin@dcotest01 dcos1-10]$
Run nginx. The port defined in config.yaml is 30110, so "
sudo docker run -d -p 30110:80 -v $PWD/genconf/serve:/usr/share/nginx/html:ro nginx
Upgrading Master node / Agent node
Go to each node and running below commands to upgrade each agent.
curl -O http://172.16.110.20:30110/upgrade/68a5987c5e894832b7ecf8f6d2758abc/dcos_node_upgrade.sh sudo bash ./dcos_node_upgrade.sh echo $?
Last login: Mon Sep 11 13:26:38 2017 from 172.16.110.20
[dcosadmin@dcotest02 ~]$ curl -O http://172.16.110.20:30110/upgrade/68a5987c5e894832b7ecf8f6d2758abc/dcos_node_upgrade.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10624 100 10624 0 0 99k 0 --:--:-- --:--:-- --:--:-- 98k
[dcosadmin@dcotest02 ~]$
[dcosadmin@dcotest02 ~]$
[dcosadmin@dcotest02 ~]$ sudo bash ./dcos_node_upgrade.sh
Upgrading DC/OS master 1.9.0 -> 1.10.0
[dcosadmin@dcotest08 ~]$
[dcosadmin@dcotest08 ~]$ curl -O http://172.16.110.20:30110/upgrade/68a5987c5e894832b7ecf8f6d2758abc/dcos_node_upgrade.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10624 100 10624 0 0 12.6M 0 --:--:-- --:--:-- --:--:-- 10.1M
[dcosadmin@dcotest08 ~]$ sudo bash ./dcos_node_upgrade.sh
Upgrading DC/OS agent 1.9.0 -> 1.10.0
[dcosadmin@dcotest08 ~]$ echo $?
0
[dcosadmin@dcotest08 ~]$
After completing the upgrade
Summary
The upgrade path is really straight forward and should be upgarde seemlessly. Please enjoy Mesos Framework.
Popular posts from this blog
Export folder structure to file on Windows, Mac, and Linux
Introduction Most time, I make screenshot to show folder structure, but whenever there is change, it is painful to make screen capture again and agian. This is how you can export folder structure to text file. Tree on Windows "tree.exe" is installed as default and you can run it from command prompt. d:\GitRepo\github\dockeransible>tree /? Graphically displays the folder structure of a drive or path. TREE [drive:][path] [/F] [/A] /F Display the names of the files in each folder. /A Use ASCII instead of extended characters. d:\GitRepo\github\dockeransible>tree d:\gitrepo\github\dockeransible /A /F > tree.txt d:\GitRepo\github\dockeransible>notepad tree.txt d:\GitRepo\github\dockeransible> Output from the command Folder PATH listing Volume serial number is D8A7-163B D:\GITREPO\GITHUB\DOCKERANSIBLE | README.md | tree.txt | +---2-CreateVM | CreateVM.yaml | +---4-AnsibleDebug | DisplayClonedVMInfo.yaml | +---5-Ad
Build React Native App (4) - Redux, Jest, and NativeBase
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
Replacing text in PDF file using iTextSharp
ReplacingTextUsingITextSharp title: Replacing text in PDF file using iTextSharp tags: - PDF - Replace Text - iTextSharp date: Nov 11, 2016 Overview I’ve trying to replace text in PDF file and this is most simple way to replace text in PDF files. Before approaching this, I’ve tried to replace text using command toolkit with pdftk, qpdf to decrypt, and sfk181 to replace string with new, but this approach faced couple of issues; 1. font, 2. text area size. After long investigation, this may be easy way to replace text. Put white colored rectangle on top of string and stamp text on the location like erase text using whitner and write on top of it. Tools Visual Studio 2013 C# iTextSharp Code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using iTextSharp.text.pdf; using iTextSharp.text.pdf.parser; using iTextSharp.text; using System.IO; namespace EMTechnicalDieline { class Program {
Comments
Post a Comment