Snippets

DavidC pkgbox manual

Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 ## Setup pkgbox
 
 ```
-ansible-playbook -i inventory/local --ask-pass --become --ask-become-pass ./playbook.pkgbox.yml
+ansible-playbook -i inventory/local --ask-pass --become --ask-become-pass -e dev_user=$(whoami) ./playbook.pystackdev.yml
 ```
 
 ...then enter s****t for password. Hit enter to use that for the sudo password as well.
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 checkoutmanage co betabox-trusty
 sudo mkdir /opt/apt
 sudo ln -s ${HOME}/hgdev/org.bitbucket/betabox-trusty/betabox-trusty.bitbucket.org /opt/apt/current
-```
 
-Add a line to `/etc/apt/sources.list` prior to the entry for betabox-trusty:
-```
+#Add a line to `/etc/apt/sources.list` prior to the entry for betabox-trusty:
+sudo sed -i  '/^deb.*betabox.*$/i \
 deb file:///opt/apt/current/ubuntu fimero main
+' /etc/apt/source.list
 ```
 
 ## Build Packages
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 * Make port-forwarding specifically reference -p 4022;
 * Maybe even make the hostname specific.
 
-## Set up keyless access to new VM.
-...TODO.
-
 
 ## Start VM
 
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 3. `cd ~/hgdev/org.bitbucket/autonomy/bbthyme/content/ && make opt-bbthyme && make test`
 4. `cd ~/hgdev/org.bitbucket/autonomy/bbginger/content/ && make opt-bbginger && make test`
 
+For any errors detected here:
+
+1. notify the responsible dev. 
+2. Await the pull-request and merge into the respective `autonomy/bbxxx` repositories. 
+3. Run `checkoutmanager co pystack-default`. 
+4. Rerun unit-tests.
+
+## Create Release Branches
+Once everything passes unit-test:
+
+1. For each pystack repo: 
+    1. Create a branch for the current major.minor release;
+    2. Modify the `~/hgdev/org.bitbucket/autonomy/bbxxx/packaging/manifest` file -- update the version number, and commit.
+	3. Tag each branch;
+2. Push all repos back up to Bitbucket -- You can confirm everything's synced up with:
+    * `checkoutmanager st pystack-default` 
+    * `checkoutmanager out pystack-default` 
+
+## Send Repackage Ticket to Admin
+Send a repackage ticket to Admin.
+

File pkgbox-manual.markdown Deleted

  • Ignore whitespace
  • Hide word diff
-Assuming you've already [created a standard VM](https://ask.it.acr.me/question/1010/how-should-we-setup-a-host-machine-for-betabox-trusty/?answer=1021#post-id-1021) in which to do this work, here are the steps:
-
-### Prepare your work environment
-These steps will turn your raw Ubuntu VM into a machine tuned for testing and packaging the pystack components.
-
-1. **Make your VM comfortable** -- Make yourself an account, add your SSH-keys for Bitbucket, install your favorite dev tools, etc.
-1. **Install bbsage** -- `sudo apt-get install bbsage bbansible`  -- this will include all of the tools you need to build and package the pystack debs.
-1. **Sync bbsage dotfiles** -- You'll customize this VM for packaging so sync the bbsage dotfiles into your working directory: `use bbsage && bb-dot bbsage --sync`
-1. **Retrieve betabox-trusty tree** -- 
-    1. `cd ~/hgdev/org.bitbucket`
-    1. `mkdir betabox-trusty`
-    1. `hg clone ssh://hg@bitbucket.org/betabox-trusty/betabox-trusty.bitbucket.org`
-1. **Add local betabox-trusty tree to your `/etc/apt/sources.list`** 
-    1. `sudo mkdir /opt/apt`
-    1. `sudo ln -s ${HOME}/hgdev/org/bitbucket/betabox-trusty/ /opt/apt/current;
-    1. Add a line prior to the other betabox-trusty entries like:
-       `deb file:///opt/apt/current/ubuntu fimero main`
-    1. `sudo apt-get update`
-    1. `sudo apt-get install bbginger`
-
-### Test Packaging
-We'll testing the packaging step *first* to ensure we have all of the prerequisite libraries install properly.
-
-1. **Retrieve pystack source packages** `checkoutmanager co pystack-default`   (this works courtesy of bbsage dotfiles)
-2. **Make debs** -- This will create the debs and install them in your local reprepro tree:
-    1. `cd ~/hgdev/org.bitbucket/autonomy/bbsage && bb-package.sh`
-    2. `cd ~/hgdev/org.bitbucket/autonomy/bbmint && bb-package.sh`
-    3. `cd ~/hgdev/org.bitbucket/autonomy/bbdill && bb-package.sh`
-    4. `cd ~/hgdev/org.bitbucket/autonomy/bbthyme && bb-package.sh`
-    5. `cd ~/hgdev/org.bitbucket/autonomy/bbginger && bb-package.sh`
-3. **Install 

File snippet.txt Deleted

  • Ignore whitespace
  • Hide word diff
-GATHERING FACTS *************************************************************** 
-<localhost> ESTABLISH CONNECTION FOR USER: ubuntu
-<localhost> REMOTE_MODULE setup
-<localhost> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/dcuddihy/.ansible/cp/ansible-ssh-%h-%p-%r" -o Port=4022 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 localhost /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1441827395.99-73115243646185 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1441827395.99-73115243646185 && echo $HOME/.ansible/tmp/ansible-tmp-1441827395.99-73115243646185'
Updated by David Cuddihy

File ansible-snippets.markdown Modified

  • Ignore whitespace
  • Hide word diff
 
 ```
 
+## Unit-Test Pystack
+Now that we have a clean VM with the dependencies as per the latest pystack-deb-packages only, we can unit-test:
+
+1. `cd ~/hgdev/org.bitbucket/autonomy/bbmint/content/ && make opt-bbmint && make test`
+2. `cd ~/hgdev/org.bitbucket/autonomy/bbdill/content/ && make opt-bbdill && make test`
+3. `cd ~/hgdev/org.bitbucket/autonomy/bbthyme/content/ && make opt-bbthyme && make test`
+4. `cd ~/hgdev/org.bitbucket/autonomy/bbginger/content/ && make opt-bbginger && make test`
+
  1. 1
  2. 2
  3. 3
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.