-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset_docker_aliases.sh
executable file
·22 lines (18 loc) · 1.12 KB
/
set_docker_aliases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# This script sets up aliases for running the dreambed Docker helper scripts
#
# Developed by Yoshua Nava (yoshua.nava.chocron@gmail.com), for Joshua Haustein (RPL - KTH).
#
#
export DOCKER_ALIASES="\n########################### Aliases for calling the Dreambed Docker helper scripts ###########################
\nalias build_dreambed_image=$(pwd)/Bash/build_dreambed_image.sh
\nalias create_dreambed_container=$(pwd)/Bash/create_dreambed_container.sh
\nalias delete_dreambed_image=$(pwd)/Bash/delete_dreambed_image.sh
\nalias delete_dreambed_container=$(pwd)/Bash/delete_dreambed_container.sh
\nalias exec_dreambed_container=$(pwd)/Bash/exec_dreambed_container.sh
\nalias rootexec_dreambed_container=$(pwd)/Bash/rootexec_dreambed_container.sh
\nalias start_dreambed_container=$(pwd)/Bash/start_dreambed_container.sh
\nalias stop_dreambed_container=$(pwd)/Bash/stop_dreambed_container.sh
\n############################################################################################################"
echo -e $DOCKER_ALIASES >> /home/$USER/.bashrc
echo "export DREAMBED_DOCKER_SCRIPTS_DIR=$(pwd)" >> /home/$USER/.bashrc