GithubHelp home page GithubHelp logo

isabella232 / ishbootstrapdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rws/ishbootstrapdemo

0.0 0.0 0.0 13 KB

A simple and quick automation for ISHBootstrap

License: Apache License 2.0

PowerShell 100.00%

ishbootstrapdemo's Introduction

Very simplified demo sample for ISHBootstrap

This is a small demostrantion on how to execute ISHBootstrap on a clean windows server using the embeded example structure. Please read How to use the repository (Examples)

The instructions are tested against a Windows Server 2016 Evaluation.

This repository showcases:

  • How an obfuscated JSON file looks like.
  • What is the correct sequence.

Acknowledgements

Before you start:

Remarks to consider:

  • The ISHBootstrap.json has stripped out all properties relative to remoting.
  • The ISHBootstrap.json is obfuscated to share this repository.
  • ISHBootstrap.ps1 has three execution modes
    • Prompt for credentials to ask for the credential of the osuser and ftp. Don't modify the OSUserCredentialExpression and FTP.CredentialExpression in ISHBootstrap.json.
    • No credentials and the OSUserCredentialExpression and FTP.CredentialExpression in ISHBootstrap.json must implement this aspect.
    • Credentials as parameters. Don't modify the OSUserCredentialExpression and FTP.CredentialExpression in ISHBootstrap.json.
  • ISHBootstrap.ps1 will access your adjusted ISHBootstrap.json from the following possible locations:
    • Next to the script itself.
    • From a file path.
    • From an http url. In this case, ISHDeploy configuration scripts must be limited to the ones in ISHBootstrap repository.
  • A restart is advised at the end but depending on the operating system it might not be necessary.
    • Will not do Oracle to avoid the necessary restart.

Execute the demo

Step by step

On the target server:

  1. In the same folder
  2. Place ISHBootstrap.ps1 on a the server.
  3. Place an ISHBootstrap.json next to the script.
  4. Launch a console with administrator priviledges.
  5. Change directory into the folder.
  6. Execute one of the following.
# target master branch
powershell -File ISHBootstrap.ps1

# target develop branch
powershell -File ISHBootstrap.ps1 -Branch develop  

# target v0.7 tag
powershell -File ISHBootstrap.ps1 -Tag "v0.7"  

Direct with copy paste

# Specify source for ISHBootstrap.json
$jsonPath=""

# Download ISHBootstrap.ps1
$scriptUrl="https://raw.githubusercontent.com/Sarafian/ISHBootstrapDemo/master/ISHBootstrap.ps1"
$scriptPath=Join-Path $env:TEMP "ISHBootstrap.ps1"
Remove-Item -Path $scriptPath -Force -ErrorAction SilentlyContinue
Invoke-WebRequest -Uri $scriptUrl -UseBasicParsing -OutFile $scriptPath

# Change the parameter do match your use case
& $scriptPath -JSONPath $jsonPath -PromptCredential

What is Copy-ToRemote.ps1?

Its a script to help copy ISHBootstrap.ps1 on the remote host for debugging purposes.

ishbootstrapdemo's People

Contributors

sarafian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.