Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.35 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.35 KB

danguita's shell

Motivation

The motivation behind this is to enable building a lightweight and highly portable development environment with all configuration and tooling I need in a daily basis.

For instance, the current configuration provides the following setup:

  • zsh shell.
  • tmux window manager.
  • vim editor.
  • git, curl, fzf, jq and some other tools.
  • My dotfiles.

It is now based on Alpine Linux's edge branch for minimal footprint and extra package support.

Usage

Build

$ DOCKER_IMAGE_NAME=danguita/shell DOCKER_IMAGE_TAG=latest make build

Run

$ DOCKER_IMAGE_NAME=danguita/shell DOCKER_IMAGE_TAG=latest make run

Which transforms into:

$ docker run -it --rm \
  --net=host \                             # Use host networking, optionally.
  -v "$(pwd):/workspace" \                 # Mount `pwd` at container's `/workspace`.
  -v "$HOME/.ssh:/root/.ssh" \             # Mount SSH config, optionally.
  -v "$HOME/.gnupg:/root/.gnupg" \         # Mount GPG config, optionally.
  -v "$HOME/.gitconfig:/root/.gitconfig" \ # Mount Git config, optionally.
  danguita/shell:latest

Release

$ DOCKER_IMAGE_NAME=danguita/shell DOCKER_IMAGE_TAG=latest DOCKER_REGISTRY_URL=docker.io \
  make release

License

MIT.