clarify docs, move python to full-build, add pip support
1 parent 80df3e6 commit a735dadec2e1f891a3be42fb9cfbd56b2ec608db
@tundra tundra authored on 31 Dec 2017
Showing 2 changed files
View
17
README.md
1. Log into your build machine, VM, or`docker`image.
 
2. Make sure you have write permission to the installation directory.
 
3. Make sure the native OS compiler tools are installed.
3. Make sure the native OS compiler tools are installed. *Do not
include the tools directories in your `${PATH}` at this time.* We
want this phase of the build to be done entirely with system tools.
 
4. Get the linuxbrew image:
 
`make getbrew`
 
5. Build the bootstrap image:
 
`make bootstrap-build`
 
NOTE: As of this writing, `make` will report an `Error 1` at
completion. We have not quite chased this down yet, but suspect it
to be a failing test case for one of the subcomponents of the
build. So far, this does not seem to be pathological.
 
6. Build a release tarball and export it:
 
`make bootstrap-release`
3. Setup the required environment variables:
 
`. brewenv`
 
4. Make sure `${MYTOOLS}` has all the packages you want listed.
4. Make sure `${MYTOOLS}` and `${PIPMODULES}` include all the
packages you want.
 
5. Build the full tool set using the bootstrapped compiler we just
built:
 
## The `brewenv` File
 
The `brewenv` file documents the environment variables that need to be
set in order to access your installed binaries and support files. You
may find this useful when doing the builds. You certainly will want
may find this useful when doing the full build. You certainly will want
these variables set when running a final installation of your tools.
 
Just be sure to edit it and change `TOOLSDIR="/opt/TundraWare/tools"`
to wherever your tools installation actually lives.
View
7
makefile
 
EXPORTDIR = /shared
INSTALLDIR = /opt/TundraWare
TOOLS = tools
MYTOOLS = emacs joe htop nload nmap perl screen the_silver_searcher tree vim
MYTOOLS = perl python emacs joe htop nload nmap screen the_silver_searcher tree vim
PIPMODULES = ansible pew pew[pythonz]
 
# Nothing below here should need changing
 
TOOLSDIR = ${INSTALLDIR}/${TOOLS}
full-build:
echo "Make sure your OS autoconf, automake, and perl are installed!"
echo 'Make sure the bootstrap is installed at $TOOLSDIR'
${BREW} install ${MYTOOLS}
ln -nfs ${INSTALLDIR}/${TOOLS}/bin/python2 ${INSTALLDIR}/${TOOLS}/bin/python
ln -nfs ${INSTALLDIR}/${TOOLS}/bin/pip2 ${INSTALLDIR}/${TOOLS}/bin/pip
pip install $PIPMODULES -U --ignore-installed
 
full-release: tidyup
cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-${DATESTAMP}
cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-${DATESTAMP}.tar.gz ${TOOLS}-${DATESTAMP}