Update 2 files
- /.local/share/chezmoi/home/dot_local/scripts/docker-functions.bash - /.local/share/chezmoi/home/private_dot_config/shell/profile.sh
This commit is contained in:
parent
299c413f35
commit
b75f4c8376
2 changed files with 28 additions and 25 deletions
|
@ -572,12 +572,12 @@ nes(){
|
||||||
--name nes \
|
--name nes \
|
||||||
${DOCKER_REPO_PREFIX}/nes "/games/${game}.rom"
|
${DOCKER_REPO_PREFIX}/nes "/games/${game}.rom"
|
||||||
}
|
}
|
||||||
netcat(){
|
netcat-docker(){
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
--net host \
|
--net host \
|
||||||
${DOCKER_REPO_PREFIX}/netcat "$@"
|
${DOCKER_REPO_PREFIX}/netcat "$@"
|
||||||
}
|
}
|
||||||
nginx(){
|
nginx-docker(){
|
||||||
del_stopped nginx
|
del_stopped nginx
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -590,7 +590,7 @@ nginx(){
|
||||||
# add domain to hosts & open nginx
|
# add domain to hosts & open nginx
|
||||||
sudo hostess add jess 127.0.0.1
|
sudo hostess add jess 127.0.0.1
|
||||||
}
|
}
|
||||||
nmap(){
|
nmap-docker(){
|
||||||
if [[ -n "$(which nmap)" ]]; then
|
if [[ -n "$(which nmap)" ]]; then
|
||||||
"$(which nmap)" "$@"
|
"$(which nmap)" "$@"
|
||||||
else
|
else
|
||||||
|
@ -643,7 +643,7 @@ openscad(){
|
||||||
--name openscad \
|
--name openscad \
|
||||||
${DOCKER_REPO_PREFIX}/openscad
|
${DOCKER_REPO_PREFIX}/openscad
|
||||||
}
|
}
|
||||||
opensnitch(){
|
opensnitch-docker(){
|
||||||
del_stopped opensnitchd
|
del_stopped opensnitchd
|
||||||
del_stopped opensnitch
|
del_stopped opensnitch
|
||||||
|
|
||||||
|
@ -685,7 +685,7 @@ opensnitch(){
|
||||||
--name opensnitch \
|
--name opensnitch \
|
||||||
${DOCKER_REPO_PREFIX}/opensnitch
|
${DOCKER_REPO_PREFIX}/opensnitch
|
||||||
}
|
}
|
||||||
osquery(){
|
osquery-docker(){
|
||||||
rmctr osquery
|
rmctr osquery
|
||||||
|
|
||||||
docker run -d --restart always \
|
docker run -d --restart always \
|
||||||
|
@ -718,7 +718,7 @@ osquery(){
|
||||||
--logger_tls_endpoint=/api/v1/osquery/log \
|
--logger_tls_endpoint=/api/v1/osquery/log \
|
||||||
--logger_tls_period=10
|
--logger_tls_period=10
|
||||||
}
|
}
|
||||||
pandoc(){
|
pandoc-docker(){
|
||||||
if [[ -n "$(which pandoc)" ]]; then
|
if [[ -n "$(which pandoc)" ]]; then
|
||||||
"$(which pandoc)" "$@"
|
"$(which pandoc)" "$@"
|
||||||
else
|
else
|
||||||
|
@ -766,7 +766,7 @@ pond(){
|
||||||
--name pond \
|
--name pond \
|
||||||
${DOCKER_REPO_PREFIX}/pond
|
${DOCKER_REPO_PREFIX}/pond
|
||||||
}
|
}
|
||||||
privoxy(){
|
privoxy-docker(){
|
||||||
del_stopped privoxy
|
del_stopped privoxy
|
||||||
relies_on torproxy
|
relies_on torproxy
|
||||||
|
|
||||||
|
@ -780,7 +780,7 @@ privoxy(){
|
||||||
|
|
||||||
hostess add privoxy "$(docker inspect --format '{{.NetworkSettings.Networks.bridge.IPAddress}}' privoxy)"
|
hostess add privoxy "$(docker inspect --format '{{.NetworkSettings.Networks.bridge.IPAddress}}' privoxy)"
|
||||||
}
|
}
|
||||||
pulseaudio(){
|
pulseaudio-docker(){
|
||||||
del_stopped pulseaudio
|
del_stopped pulseaudio
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -809,7 +809,7 @@ registrator(){
|
||||||
--name registrator \
|
--name registrator \
|
||||||
gliderlabs/registrator consul:
|
gliderlabs/registrator consul:
|
||||||
}
|
}
|
||||||
remmina(){
|
remmina-docker(){
|
||||||
del_stopped remmina
|
del_stopped remmina
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -898,7 +898,7 @@ shorewall(){
|
||||||
--name shorewall \
|
--name shorewall \
|
||||||
${DOCKER_REPO_PREFIX}/shorewall "$@"
|
${DOCKER_REPO_PREFIX}/shorewall "$@"
|
||||||
}
|
}
|
||||||
skype(){
|
skype-docker(){
|
||||||
del_stopped skype
|
del_stopped skype
|
||||||
relies_on pulseaudio
|
relies_on pulseaudio
|
||||||
|
|
||||||
|
@ -915,7 +915,7 @@ skype(){
|
||||||
--name skype \
|
--name skype \
|
||||||
${DOCKER_REPO_PREFIX}/skype
|
${DOCKER_REPO_PREFIX}/skype
|
||||||
}
|
}
|
||||||
slack(){
|
slack-docker(){
|
||||||
del_stopped slack
|
del_stopped slack
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1006,7 +1006,7 @@ tarsnap(){
|
||||||
-v "$HOME:/root/workdir" \
|
-v "$HOME:/root/workdir" \
|
||||||
${DOCKER_REPO_PREFIX}/tarsnap "$@"
|
${DOCKER_REPO_PREFIX}/tarsnap "$@"
|
||||||
}
|
}
|
||||||
telnet(){
|
telnet-docker(){
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
--log-driver none \
|
--log-driver none \
|
||||||
${DOCKER_REPO_PREFIX}/telnet "$@"
|
${DOCKER_REPO_PREFIX}/telnet "$@"
|
||||||
|
@ -1020,7 +1020,7 @@ termboy(){
|
||||||
--name termboy \
|
--name termboy \
|
||||||
${DOCKER_REPO_PREFIX}/nes "/games/${game}.rom"
|
${DOCKER_REPO_PREFIX}/nes "/games/${game}.rom"
|
||||||
}
|
}
|
||||||
terraform(){
|
terraform-docker(){
|
||||||
if [[ -n "$(which terraform)" ]]; then
|
if [[ -n "$(which terraform)" ]]; then
|
||||||
"$(which terraform)" "$@"
|
"$(which terraform)" "$@"
|
||||||
else
|
else
|
||||||
|
@ -1035,7 +1035,7 @@ terraform(){
|
||||||
${DOCKER_REPO_PREFIX}/terraform "$@"
|
${DOCKER_REPO_PREFIX}/terraform "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
tor(){
|
tor-docker(){
|
||||||
del_stopped tor
|
del_stopped tor
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1098,7 +1098,7 @@ traceroute(){
|
||||||
--net host \
|
--net host \
|
||||||
${DOCKER_REPO_PREFIX}/traceroute "$@"
|
${DOCKER_REPO_PREFIX}/traceroute "$@"
|
||||||
}
|
}
|
||||||
transmission(){
|
transmission-docker(){
|
||||||
del_stopped transmission
|
del_stopped transmission
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1133,7 +1133,7 @@ virsh(){
|
||||||
--net container:kvm \
|
--net container:kvm \
|
||||||
${DOCKER_REPO_PREFIX}/libvirt-client "$@"
|
${DOCKER_REPO_PREFIX}/libvirt-client "$@"
|
||||||
}
|
}
|
||||||
virtualbox(){
|
virtualbox-docker(){
|
||||||
del_stopped virtualbox
|
del_stopped virtualbox
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1159,7 +1159,7 @@ virt_viewer(){
|
||||||
${DOCKER_REPO_PREFIX}/virt-viewer "$@"
|
${DOCKER_REPO_PREFIX}/virt-viewer "$@"
|
||||||
}
|
}
|
||||||
alias virt-viewer="virt_viewer"
|
alias virt-viewer="virt_viewer"
|
||||||
visualstudio(){
|
visualstudio-docker(){
|
||||||
del_stopped visualstudio
|
del_stopped visualstudio
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1171,7 +1171,7 @@ visualstudio(){
|
||||||
${DOCKER_REPO_PREFIX}/vscode
|
${DOCKER_REPO_PREFIX}/vscode
|
||||||
}
|
}
|
||||||
alias vscode="visualstudio"
|
alias vscode="visualstudio"
|
||||||
vlc(){
|
vlc-docker(){
|
||||||
del_stopped vlc
|
del_stopped vlc
|
||||||
relies_on pulseaudio
|
relies_on pulseaudio
|
||||||
|
|
||||||
|
@ -1191,7 +1191,7 @@ vlc(){
|
||||||
--name vlc \
|
--name vlc \
|
||||||
${DOCKER_REPO_PREFIX}/vlc
|
${DOCKER_REPO_PREFIX}/vlc
|
||||||
}
|
}
|
||||||
watchman(){
|
watchman-docker(){
|
||||||
del_stopped watchman
|
del_stopped watchman
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1240,7 +1240,7 @@ wg(){
|
||||||
--name wg \
|
--name wg \
|
||||||
${DOCKER_REPO_PREFIX}/wg "$@"
|
${DOCKER_REPO_PREFIX}/wg "$@"
|
||||||
}
|
}
|
||||||
wireshark(){
|
wireshark-docker(){
|
||||||
del_stopped wireshark
|
del_stopped wireshark
|
||||||
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -1253,13 +1253,13 @@ wireshark(){
|
||||||
--name wireshark \
|
--name wireshark \
|
||||||
${DOCKER_REPO_PREFIX}/wireshark
|
${DOCKER_REPO_PREFIX}/wireshark
|
||||||
}
|
}
|
||||||
wrk(){
|
wrk-docker(){
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
--log-driver none \
|
--log-driver none \
|
||||||
--name wrk \
|
--name wrk \
|
||||||
${DOCKER_REPO_PREFIX}/wrk "$@"
|
${DOCKER_REPO_PREFIX}/wrk "$@"
|
||||||
}
|
}
|
||||||
ykman(){
|
ykman-docker(){
|
||||||
del_stopped ykman
|
del_stopped ykman
|
||||||
|
|
||||||
if [[ -n "$(which ykman)" ]]; then
|
if [[ -n "$(which ykman)" ]]; then
|
||||||
|
|
|
@ -107,9 +107,12 @@ if [ -f "$CARGO_HOME/env" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Docker Functions / Aliases
|
### Docker Functions / Aliases
|
||||||
if [ -f "$HOME/.local/scripts/docker-functions.bash" ]; then
|
# This file is used as an example file since it conflicts with the installation process of many libraries.
|
||||||
. "$HOME/.local/scripts/docker-functions.bash"
|
# Also, using Firejail is the preferred method of limiting the permissions of a process so there is no need
|
||||||
fi
|
# to use Docker aliases since Firejail is superior (according to: https://news.ycombinator.com/item?id=21497677)
|
||||||
|
# if [ -f "$HOME/.local/scripts/docker-functions.bash" ]; then
|
||||||
|
# . "$HOME/.local/scripts/docker-functions.bash"
|
||||||
|
# fi
|
||||||
|
|
||||||
### fzf-tmux
|
### fzf-tmux
|
||||||
#if [ -f "$HOME/.local/scripts/fzf-tmux.bash" ]; then
|
#if [ -f "$HOME/.local/scripts/fzf-tmux.bash" ]; then
|
||||||
|
|
Loading…
Reference in a new issue