Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
Last active March 20, 2017 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirogoeth/508be48bc4d052e8c5587bdd31ecd6aa to your computer and use it in GitHub Desktop.
Save pirogoeth/508be48bc4d052e8c5587bdd31ecd6aa to your computer and use it in GitHub Desktop.
cockpit dev env with tmuxp and asdf
# Place this in ~/.tmuxp/cockpit.yaml OR in the root of your cockpit directory as .tmuxp.yaml
session_name: cockpit-dev
shell_command_before:
# Change this to pop in to your cockpit dev dir!
- cd ~/Projects/cockpit
- workon cockpit
windows:
- window_name: services
layout: main-horizontal
focus: true
panes:
# rebuilders
- shell_command:
- platform=$(uname)
- modd -b -f ./modd.${platform,,}.conf
# mongod
- shell_command:
- asdf current mongo
- mongod
# cockpit-dev
- shell_command:
- python cockpit/dev.py
- window_name: source-react
panes:
# react js
- shell_command:
- cd client/js
- asdf current nodejs
- window_name: source-angular
panes:
# angular js
- shell_command:
- cd app/javascripts
- asdf current nodejs
- window_name: source-python
panes:
# python
- shell_command:
- cd cockpit
- asdf current python
#!/usr/bin/env bash
set -xe
# install asdf
git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf
source ~/.asdf/asdf.sh
# add necessary asdf plugins and versions
asdf plugin-add mongo https://github.com/sylph01/asdf-mongodb.git
asdf plugin-add python https://github.com/tuvistavie/asdf-python.git
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
asdf install mongo 3.2.4
asdf install python 2.7.13
asdf install nodejs 5.6.0
asdf install golang 1.8
# set up python environment with some things
asdf local python 2.7.13
pip install -U virtualenvwrapper ntfy tmuxp
source `which virtualenvwrapper.sh`
mkvirtualenv cockpit
# set up node environment with some things
asdf local nodejs 5.6.0
npm install -g gulp
# set up go environment with some things
export GOPATH=$HOME/.go # this may not be necessary soon!
asdf local golang 1.8
go get github.com/cortesi/modd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment