Skip to content

Commit 13223ad

Browse files
authored
Merge pull request #7 from kfbishop/master
Updates for new branding, and internal IBM usage
2 parents a819ef6 + 9b4432f commit 13223ad

4 files changed

Lines changed: 66 additions & 51 deletions

File tree

README.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# IBM Developer Tools
2-
These scripts perform an installation of the IBM Developer Tools CLI environment. The IDT is a plugin to the IBM Bluemix CLI. Our general target environment is the IBM Cloud, including public, dedicated, and local hybrid.
1+
# IBM Cloud Developer Tools
32

3+
These scripts perform an installation of the IBM Cloud Developer Tools CLI environment. The IDT is a plugin to the IBM Bluemix CLI. Our general target environment is the IBM Cloud, including public, dedicated, and private.
44

55
[![](https://img.shields.io/badge/bluemix-powered-blue.svg)](https://bluemix.net)
66
![Platform](https://img.shields.io/badge/platform-BASH-lightgrey.svg?style=flat)
@@ -11,10 +11,10 @@ The following are platform specific concerns and notes you should be aware of.
1111

1212
## MacOS & Linux Installation
1313

14-
The following command can install the IBM Developer tools in a single invocation. Open up a terminal and run the following command:
14+
The following command can install the IBM Cloud Developer Tools in a single invocation. Open up a terminal and run the following command:
1515

1616
```
17-
curl -sL https://ibm.biz/idt-installer | bash
17+
$ curl -sL https://ibm.biz/idt-installer | bash
1818
```
1919

2020
By default, this installer will use the 'brew' installer on MacOS, if available. If you explicitly do not want to use brew, execute the following command with `--nobrew` option:
@@ -23,10 +23,10 @@ By default, this installer will use the 'brew' installer on MacOS, if available.
2323
curl -sL https://ibm.biz/idt-installer | bash -s -- --nobrew
2424
```
2525

26-
Once complete, there will be three aliases defined to access the IDT:
26+
Once complete, there will be three aliases defined to access the IBM Cloud Developer Tools:
2727
- `idt` : Main command line tool for IBM cloud native development (shortcut to 'bx dev')
2828
- `idt-update` : Update your IDT environment to the latest versions
29-
- `idt-uninstall` : Uninstall the IBM Developer Tools
29+
- `idt-uninstall` : Uninstall the IBM Cloud Developer Tools
3030

3131
Access the [platform-specific readme](./linux-installer/README.md) for additional details.
3232

@@ -35,31 +35,20 @@ This script has only been tested on Ubuntu Linux systems, although it should beh
3535

3636

3737
## Windows Installation
38-
To install the IBM Developer Tools CLI on Windows 10 or newer:
38+
39+
To install the IBM Cloud Developer Tools CLI on Windows 10 or newer:
3940

4041
1. Open Windows PowerShell by right-clicking and select "Run as Administrator".
4142
2. Run this command:
4243
```
4344
Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer')
4445
```
4546

46-
Access the [Windows-specific readme](./windows-installer/README.md) for additional details.
47+
Access the [Widnows-specific readme](./windows-installer/README.md) for additional details.
4748

4849

4950

5051
## Feedback
5152

5253
We can be reached on [Slack](https://ibm.biz/IBMCloudNativeSlack) or file an issue on our [GitHub repo](https://github.com/ibm-cloud-tools/idt-installer).
5354

54-
55-
## Internal IBM users
56-
57-
IBM user can utilize this installer pulling the Bluemix cLI and plugins from pre-release internal servers. In order to have the installer utilize internal servers, set the following environment variables (eg in `~/.bashrc`), using the proper actual values:
58-
59-
```
60-
export IDT_INSTALL_BMX_URL="https://clis.<internal_bluemix_staging_url>/install"
61-
export IDT_INSTALL_BMX_REPO_NAME="stage"
62-
export IDT_INSTALL_BMX_REPO_URL="https://plugins.<internal_bluemix_staging_url>"
63-
```
64-
65-
If you need assistance on the proper values, just ask in any of the internal slack channels.

linux-installer/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# IBM Developer Tools CLI Installer (idt-installer)
22

3+
[![](https://img.shields.io/badge/bluemix-powered-blue.svg)](https://bluemix.net)
4+
![Platform](https://img.shields.io/badge/platform-BASH-lightgrey.svg?style=flat)
35

46
### Table of Contents
57
* [Summary](#summary)
@@ -12,6 +14,7 @@
1214
* [MacOS](#macos)
1315
* [Linux](#linux)
1416
* [Windows](#windows)
17+
* [Internal IBM users](#internal-ibm-users)
1518

1619

1720
## Summary
@@ -109,3 +112,17 @@ This script has only been tested on Ubuntu Linux systems, although it should beh
109112

110113
**WARNING**: Windows is not supported by this installer. See the [Windows installation](../windows-installer/README.md) for additional information.
111114

115+
116+
117+
## Internal IBM users
118+
119+
IBM users can utilize this installer pulling the Bluemix CLI and plugins from pre-release internal servers. In order to have the installer utilize internal servers, set the following environment variables (eg in `~/.bashrc`), substituting the proper internal URLs. Shown below are the default public URLs:
120+
121+
```
122+
export IDT_INSTALL_USE_PROD=true
123+
export IDT_INSTALL_BMX_URL="https://clis.ng.bluemix.net/install"
124+
export IDT_INSTALL_BMX_REPO_NAME="internal"
125+
export IDT_INSTALL_BMX_REPO_URL="https://plugins.ng.bluemix.net"
126+
```
127+
128+
If you need assistance on the proper values, just ask in any of the IBM internal slack channels.

linux-installer/idt-installer

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
#!/bin/bash
22
#------------------------------------------------------------------------------
3-
# Script: idt-installer - IBM Cloud Developer Tools CLI installer
3+
# Script: idt-installer
44
#------------------------------------------------------------------------------
5-
# Bluemix Developer CLI Installer script for MacOS / Linux / Win10 systems
5+
# IBM Cloud Developer Tools - CLI installer script for MacOS and Linux systems
66
#------------------------------------------------------------------------------
77
# Copyright (c) 2017, International Business Machines. All Rights Reserved.
88
#------------------------------------------------------------------------------
99

1010
VERSION="0.8"
11-
PROG="IBM Developer Tools - Installer"
11+
PROG="IBM Cloud Developer Tools - Installer"
1212
INSTALLER_URL="https://ibm.biz/idt-installer"
1313
GIT_URL="https://github.com/ibm-cloud-tools/idt-installer"
1414
SLACK_URL="https://ibm.biz/IBMCloudNativeSlack"
15-
IDT_INSTALL_BMX_URL="${IDT_INSTALL_BMX_URL:=https://clis.ng.bluemix.net/install}"
15+
DEFAULT_BMX_URL="https://clis.ng.bluemix.net/install"
16+
17+
if [[ "$IDT_INSTALL_USE_PROD" != false ]]; then
18+
unset IDT_INSTALL_BMX_URL IDT_INSTALL_BMX_REPO_NAME IDT_INSTALL_BMX_REPO_URL
19+
fi
20+
IDT_INSTALL_BMX_URL="${IDT_INSTALL_BMX_URL:=$DEFAULT_BMX_URL}"
1621
IDT_INSTALL_BMX_REPO_NAME="${IDT_INSTALL_BMX_REPO_NAME:=Bluemix}"
1722
IDT_INSTALL_BMX_REPO_URL="${IDT_INSTALL_BMX_REPO_URL:=https://plugins.ng.bluemix.net}"
1823

@@ -120,30 +125,30 @@ function uninstall {
120125
log "Removing Bluemix CLI..."
121126
if [[ "${PLATFORM}" == "Darwin" && "$USEBREW" == true ]]; then
122127
brew cask uninstall "bluemix-cli"
123-
else
124-
sudo rm -f /usr/local/bin/bluemix
125-
sudo rm -f /usr/local/bin/bx
126-
sudo rm -f /usr/local/bin/bluemix-analytics
127-
sudo rm -rf /usr/local/Bluemix
128-
#-- Taken from bluemix CLI brew uninstaller
129-
if [[ -f /etc/profile ]]; then
130-
sudo sed -E -i ".bluemix_uninstall_bak" \
131-
-e '/^### Added by the Bluemix CLI$/d' \
132-
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
133-
/etc/profile
134-
fi
135-
if [[ -f ~/.bashrc ]]; then
136-
sed -E -i ".bluemix_uninstall_bak" \
137-
-e '/^### Added by the Bluemix CLI$/d' \
138-
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
139-
~/.bashrc
140-
fi
141-
if [[ -f ~/.zshrc ]]; then
142-
sed -E -i ".bluemix_uninstall_bak" \
143-
-e '/^### Added by the Bluemix CLI$/d' \
144-
-e '/^source \/usr\/local\/Bluemix\/bx\/zsh_autocomplete$/d' \
145-
~/.zshrc
146-
fi
128+
fi
129+
#-- Run the following regardless
130+
sudo rm -f /usr/local/bin/bluemix
131+
sudo rm -f /usr/local/bin/bx
132+
sudo rm -f /usr/local/bin/bluemix-analytics
133+
sudo rm -rf /usr/local/Bluemix
134+
#-- Taken from bluemix CLI brew uninstaller
135+
if [[ -f /etc/profile ]]; then
136+
sudo sed -E -i ".bluemix_uninstall_bak" \
137+
-e '/^### Added by the Bluemix CLI$/d' \
138+
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
139+
/etc/profile
140+
fi
141+
if [[ -f ~/.bashrc ]]; then
142+
sed -E -i ".bluemix_uninstall_bak" \
143+
-e '/^### Added by the Bluemix CLI$/d' \
144+
-e '/^source \/usr\/local\/Bluemix\/bx\/bash_autocomplete$/d' \
145+
~/.bashrc
146+
fi
147+
if [[ -f ~/.zshrc ]]; then
148+
sed -E -i ".bluemix_uninstall_bak" \
149+
-e '/^### Added by the Bluemix CLI$/d' \
150+
-e '/^source \/usr\/local\/Bluemix\/bx\/zsh_autocomplete$/d' \
151+
~/.zshrc
147152
fi
148153
env_setup remove
149154

@@ -214,7 +219,8 @@ function install_bx {
214219
log "Installing IBM Cloud 'Bluemix' CLI for platform '${PLATFORM}'..."
215220
case "$PLATFORM" in
216221
"Darwin")
217-
if [[ "$USEBREW" == true ]]; then
222+
#-- Only use BREW if using default bluemix URL (not an internal url)
223+
if [[ "$USEBREW" == true && "$IDT_INSTALL_BMX_REPO_NAME" == "Bluemix" ]]; then
218224
brew cask reinstall "caskroom/cask/bluemix-cli"
219225
else
220226
log "Downloading and installing Bluemix CLI from: ${IDT_INSTALL_BMX_URL}/osx"
@@ -291,7 +297,7 @@ function env_setup {
291297
log "The following aliases are defined to access the 'idt' tool:"
292298
log " ${GRN}idt${NRM} : Main command line tool for IBM Cloud Native development"
293299
log " ${GRN}idt-update${NRM} : Update your IDT tools to the latest version"
294-
log " ${GRN}idt-uninstall${NRM} : Uninstall the IBM Developer Tools"
300+
log " ${GRN}idt-uninstall${NRM} : Uninstall the IBM Cloud Developer Tools"
295301
;;
296302
"remove")
297303
if [[ -n "$(grep 'alias idt="bluemix dev"' "$env_file")" ]]; then

windows-installer/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# IBM Developer Windows Installer
22

3-
PowerShell script that downloads and installs the Developer Bluemix CLI Plugin and all of its dependencies on Windows 10 or newer systems.
3+
PowerShell script that downloads and installs the IBM Cloud Developer Tools (IDT) CLI Plugin and all of its dependencies on Windows 10 or newer systems.
4+
5+
[![](https://img.shields.io/badge/bluemix-powered-blue.svg)](https://bluemix.net)
6+
![Platform](https://img.shields.io/badge/platform-PowerShell-lightgrey.svg?style=flat)
47

58
## Single-line Running
69

0 commit comments

Comments
 (0)