-
Notifications
You must be signed in to change notification settings - Fork 1
Bootstrap.sh
There are three profiles that can be utilized
- All - A standard set of applications for a new Mac
- Developer (admin) - An enhanced set of applications for common development uses
- Drupal - An all encompassing platform, designed to get the Drupal development neophyte to the point of writing code and site-building, locally.
To utilize the package open a terminal app:
Click Finder -> in the Location bar at the top of your screen, click go -> click Applications -> Utilities -> Terminal
You can also use Command+space (+space) -> type terminal -> type Enter
Copy the line below (command+c) and paste it (command+v) into the terminal window and type enter
o utilize the package open a terminal app:
Click Finder -> in the Location bar at the top of your screen, click go -> click Applications -> Utilities -> Terminal
You can also use Command+space -> type terminal -> type Enter
If you want the basic set of applications paste the following line into your terminal:
curl -s https://raw.githubusercontent.com/SLAC-OCIO/mac-dev-deployment/master/bootstrap.sh | bash -s all
If you want a developer ready machine, for node, python, java paste the following line into your terminal:
curl -s https://raw.githubusercontent.com/SLAC-OCIO/mac-dev-deployment/master/bootstrap.sh | bash -s admin
If you want to start developing Drupal, using SLAC's codebases paste the following line into your terminal:
curl -s https://raw.githubusercontent.com/SLAC-OCIO/mac-dev-deployment/master/bootstrap.sh | bash -s drupal
Caveats: There may be some timeouts with Homebrew and random packages.Should you experience timeouts, or failures due to timeouts please re-run the above command.
You will know you are finished with you see the following:
localhost: xxx xxxxx xxxx xxxx failed=0
Pay close attention to the failed=0 as that means everything completed.
If you encounter errors run the command again, if you repeatedly encounter them, file a ticket in Service Now.
You may see warnings and errors, they are generally safe to ignore. As with all software, please examine the source before running a command a guy in a lab tells you to.
If you're not doing Drupal development for SLAC, the next steps won't interest you. If you're accomplished with git and Github, cloning our Drupal repositories is no different than any other project.
If you are developing Drupal, you can save a lot of time and possible RSI by installing ssh keys.
Should you need help grabbing the code, a script has been written to initially obtain the codebases. Please see slac_sites script.
Using it is simple, follow the directions here