-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·17 lines (14 loc) · 859 Bytes
/
setup.sh
File metadata and controls
executable file
·17 lines (14 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# curl -sL https://raw.githubusercontent.com/steveortiz/dockerize-your-shell/master/setup.sh | bash -
# add environment variables and script .bashrc
echo "# Dockerize your Shell" >> ~/.bashrc
echo "DOCKER_MACHINE_NAME=dshell" >> ~/.bashrc
echo "DOCKER_IMAGE_NAME=dshell_image" >> ~/.bashrc
echo "DOCKERFILE_PATH=~/.dockerize-your-shell" >> ~/.bashrc
echo "source ~/.dockerize-your-shell/dockerize-your-shell.sh" >> ~/.bashrc
mkdir -p ~/.dockerize-your-shell
GIT_URL=https://raw.githubusercontent.com/steveortiz/dockerize-your-shell/master
curl -sL $GIT_URL"/dockerize-your-shell.sh" -o ~/.dockerize-your-shell/dockerize-your-shell.sh
# TODO: check for a dockerfile before possibly writing over it!
curl -sL $GIT_URL"/example/Dockerfile" -o ~/.dockerize-your-shell/Dockerfile
curl -sL $GIT_URL"/example/bashrc" -o ~/.dockerize-your-shell/bashrc