-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
16 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
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,6 @@ | ||
## installation | ||
|
||
|
||
``` | ||
# as root | ||
pacman -S zsh sudo git | ||
|
@@ -10,13 +11,11 @@ echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers | |
cd $HOME | ||
chsh -s /usr/bin/zsh | ||
# initialize empty git | ||
git init | ||
git remote add origin https://github.com/matsp/dotfiles.git # [email protected]:matsp/dotfiles.git | ||
git branch -M master | ||
git pull origin master | ||
git branch -u origin/master | ||
git submodule update --init --recursive | ||
git clone --bare [email protected]:matsp/dotfiles.git $HOME/.dotfiles | ||
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"' | ||
dotfiles checkout | ||
dotfiles config --local status.showUntrackedFiles no | ||
dotfiles submodule update --init --recursive | ||
# open new shell or execute: | ||
zsh | ||
|
@@ -31,13 +30,13 @@ docker run -ti -h dev --name dev dotfiles | |
|
||
## github container registry | ||
``` | ||
docker run -ti -h dev --name dev ghcr.io/matsp/dotfiles:master | ||
docker run -ti -h dev --name dev ghcr.io/matsp/dotfiles:main | ||
``` | ||
|
||
## build & run local image with ssh keys | ||
``` | ||
cd ~ | ||
curl -s -o Dockerfile https://raw.githubusercontent.com/matsp/dotfiles/master/.arch/container/local/Dockerfile && docker build -t dev . | ||
curl -s -o Dockerfile https://raw.githubusercontent.com/matsp/dotfiles/main/.arch/container/local/Dockerfile && docker build -t dev . | ||
docker volume create dev_projects | ||
docker run -ti -h dev --name dev -v dev_projects:/home/dev/projects dev | ||
``` |