linuxbrew@78f515fa1f4d:~$ brew update
Already up-to-date.
linuxbrew@78f515fa1f4d:~$ brew update
Already up-to-date.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# emit skeletion of DockerFile for the image given by the first (and only) argument | |
echo "# Here is a skeleton DockerFile for docker image '$1'" | |
docker history --no-trunc $1 \ | |
| sed '1 d; s/.* ago [ ]*/RUN /; s/[ ][ ]*[0-9.][0-9.]*[kMG]*B[ ][ ]*$//; s/^RUN .bin.sh -c #.nop. [ ]*//' \ | |
| tac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://gist.github.com/eschen42/d5b7850ea74c6dd8f37714f7d48955fc | |
# Objective - To create a Docker environment in which I can run planemo | |
# To build | |
# sudo docker build -t eschen42/planemo . | |
# To run and delete the container on exit | |
# sudo docker run --rm -ti eschen42/planemo | |
# You will be logged in as the 'debian' user without superuser privileges. | |
# For superuser privileges, supply arguments, e.g.: | |
# sudo docker run --rm -ti eschen42/planemo bash -c "export TERM=xterm; /bin/bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo find and destroy exited containers | |
echo --- | |
sudo docker rm $( echo $( \ | |
sudo docker ps -a --filter="status=exited" -q) ) | |
echo ... | |
echo find and destroy unnamed orphaned volumes | |
echo --- | |
sudo docker volume rm $( \ | |
sudo docker volume ls -q -f 'dangling=true' | grep -v '[g-zA-Z-]' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run bash within an already-running container | |
# arg1 - ID or nickname of a running container | |
if [ "'${COLUMNS}x'" = "'x'" ]; then | |
echo Please 'export COLUMNS' before running this script. | |
else | |
sudo docker exec -ti $1 bash -c "export TERM=xterm; export COLUMNS=$COLUMNS; /bin/bash" | |
fi |
ref:
- https://github.com/docker/machine/releases
- http://rancher.com/docs/os/v1.1/en/running-rancheros/workstation/docker-machine/#using-docker-machine-with-virtualbox
#!/bin/bash
docker-machine ssh rancher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
" source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/gvimrc_example.vim | |
" source $VIMRUNTIME/mswin.vim | |
behave xterm | |
set selectmode=mouse | |
set guifont=Courier:h9 | |
" Cursor is Magenta | |
highlight Cursor guibg=Magenta guifg=NONE | |
au BufNewFile,BufRead *.mzXML set ft=xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RStudio with vignette-building capability | |
# Step 1 - build from this Dockerfile | |
# docker build -t eschen42/devtools . | |
# Step 2 - create a home directory | |
# mkdir ~/rstudio | |
# Step 3 - run the container with this new directory | |
# docker run --rm -ti -p 8787:8787 -v ~/rstudio:/home/rstudio eschen42/devtools | |
# Step 4 - browse to RStudio as http://localhost:8787 | |
FROM rocker/verse:3.4.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Planemo and RStudio with vignette-building capability (via R package 'devtools') | |
# Step 1 - Build from this Dockerfile (you must cd to the directory containing it first) | |
# docker build -t eschen42/devplan . | |
# Step 2 - Create a home directory, e.g.: | |
# mkdir ~/devplan | |
# Step 3 - Run the container with this new directory; note that the container will create | |
# files in this directory with UID 1000 (which is user rstudio on the guest), e.g.: | |
# docker run --name devplan --rm -ti -p 8787:8787 -p 8790:9090 -v ~/devplan:/home/rstudio eschen42/devplan | |
# Step 4 - On the host, browse to RStudio at http://localhost:8787 | |
# Step 5 - Set up /home/rstudio/.ssh (on the guest; ~/devplan/.ssh on the host) if desired |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## # References | |
## - https://www.tug.org/texlive/doc/texlive-en/texlive-en.html - The TEX Live Guide | |
## - http://tug.org/texlive/acquire-netinstall.html - Installing TeX Live over the Internet | |
## - This documents where to get install-tl, the TEX Live installer | |
## - http://tug.org/texlive/quickinstall.html - TeX Live - Quick install | |
## - This documents how to install install-tl, the TEX Live installer | |
## - Note that, if you want to run the GUI, you will need to install | |
## - the perl-tk package on Debian, Ubuntu, and other apt-based distributions | |
## - something similar on other distributions ... | |
## - http://tug.org/texlive/doc/install-tl.html#PROFILES |
OlderNewer