This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from caarlos0/tests
Fixed all sorts of bugs with Linux bootstrap
- Loading branch information
Showing
24 changed files
with
83 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# caarlos0/dotfiles test container | ||
FROM ubuntu | ||
MAINTAINER Carlos Alexandro Becker <[email protected]> | ||
|
||
RUN apt-get install -y software-properties-common wget zsh git curl python | ||
|
||
COPY . /root/.dotfiles | ||
|
||
RUN cd /root/.dotfiles && \ | ||
rm -f ./git/gitconfig.symlink && \ | ||
sed \ | ||
-e "s/AUTHORNAME/dotfiles-demo/g" \ | ||
-e "s/AUTHOREMAIL/dotfiles-demo/g" \ | ||
-e "s/GIT_CREDENTIAL_HELPER/cache/g" \ | ||
./git/gitconfig.symlink.example > ./git/gitconfig.symlink && \ | ||
git remote rm origin && \ | ||
./script/bootstrap && \ | ||
zsh -c "source ~/.zshrc" || true | ||
|
||
ENTRYPOINT zsh |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/zsh | ||
touch ~/.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
#!/bin/zsh | ||
if [ "$(uname -s)" = "Darwin" ]; then | ||
brew cask install atom | ||
fi | ||
|
||
# base | ||
apm install editorconfig autocomplete-plus language-docker | ||
# linters | ||
apm install linter linter-shellcheck linter-javac linter-jshint linter-ruby | ||
[ "$(uname -s)" = "Darwin" ] && brew cask install atom | ||
apm install \ | ||
editorconfig autocomplete-plus language-docker \ | ||
linter linter-shellcheck linter-javac linter-jshint linter-ruby || true |
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/zsh | ||
reload-docker() { | ||
# shellcheck disable=SC2091 | ||
$(docker-machine env dev) | ||
} | ||
reload-docker >/dev/null 2>&1 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/bin/bash | ||
[ "$(uname -s)" = "Darwin" ] && brew install git | ||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
brew install git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
|
||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
brew install go |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
|
||
brew install mariadb | ||
brew cask install sequel-pro |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/zsh | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
|
||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
brew install node |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
|
||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
brew cask install postgres pg-commander |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
brew install redis |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
|
||
if test ! "$(which rbenv)" | ||
then | ||
if test ! "$(which rbenv)"; then | ||
echo " Installing rbenv for you." | ||
brew install rbenv > /tmp/rbenv-install.log | ||
fi | ||
|
||
if test ! "$(which ruby-build)" | ||
then | ||
if test ! "$(which ruby-build)"; then | ||
echo " Installing ruby-build for you." | ||
brew install ruby-build > /tmp/ruby-build-install.log | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" != "Darwin" ]] && exit 0 | ||
#!/bin/zsh | ||
[ "$(uname -s)" != "Darwin" ] && return 0 | ||
brew cask install slate |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
[[ "$(uname -s)" = "Darwin" ]] && exit 0 | ||
#!/bin/zsh | ||
[ "$(uname -s)" = "Darwin" ] && return 0 | ||
mkdir -p ~/.config/terminator/ | ||
ln -sf "$ZSH"/terminator/base16-ocean-dark.config ~/.config/terminator/config |
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
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