Skip to content

Instantly share code, notes, and snippets.

@tacaswell
Last active January 3, 2017 20:37
Show Gist options
  • Save tacaswell/4184f85f7424c891e60b683d16cf6a10 to your computer and use it in GitHub Desktop.
Save tacaswell/4184f85f7424c891e60b683d16cf6a10 to your computer and use it in GitHub Desktop.
  • [ ] do not touch root conda env!!!
  • [ ] From the comfort of your office:
    • [ ] scp make_the_env target_machine:~/
    • [ ] scp daq target_machine:~/
    • [ ] ssh target_machine
    • [ ] sudo ./make_the_env extra pkgs
    • [ ] sudo cp daq /usr/bin
    • [ ] sudo chmod a+rx /usr/bin/daq
  • [ ] go teach them about daq
  • [ ] run beamline User Acceptance Tests, fix as needed
  • [ ] to install additional packages, as your user
    • $ sudo conda install -p /opt/conda_envs/collection-17Q1.0 PACKAGE_NAME
  • [ ] make sure they know about jupyter hub
    • [ ] if it is not set up, find out what server they want it on and email Dan
  • [ ] commit + push IPython profile
    • [ ] make sure BL staff are owners of BL org
    • [ ] make sure DAMA also has commit right (and probably at least one owner)
  • [ ] dump updated conda (as BL user and log)
    • $ conda env export -n collection-17Q1.0 > /tmp/installed-17Q1.0.txt
    • [ ] make note in olog logbook.nsls2.bnl.gov logbook with txt files as attachments, note any additional packages needed
#! /bin/bash
V=17Q1.0
source /opt/conda/bin/activate collection-$V
ipython --profile=collection

#! /bin/bash
V=17Q1.0
/opt/conda/bin/conda create -p /opt/conda_envs/collection-$V collection=$V $*
find /opt/conda_envs/collection-$V -type d -execdir chmod og+x {} +
chmod -R a+r /opt/conda_envs/collection-$V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment