Giter VIP home page Giter VIP logo

myenv's Introduction

MYENV development environment

Integration Testing

Features

  • Set all environment variables to the shell session
    • .env in this directory (General variables)
    • .env.myenv in your working directory (Specific variables). (Tip: you can create a symlink to your env file if you don't want to create a new file to store your env variable)
  • myenv.sh in your working directory will be loaded when your session start
    • The file does not exist by default.
    • Automatically when you start new shell session at a working directory.
    • Manually when you run myenv reload command.
    • Customize filename instead of myenv.sh, update your ENV MYENV_CUSTOMIZATION_FILENAME
    • It has some advantages:
      • Custom PATH env to your shell session.
      • Other customizations that your want to load at a working directory.
  • Manually install a pre-defined set of software by myenv install <input>
  • Set KUBECONFIG env
  • Create some out of the box aliases
    • Docker compose: docker-compose, dkc, docker compose
    • Amazon Web Service: awscli, aws
    • Infrastructure as code (IAC) tool: terraform, tf
    • Google cloud command line tool: gcloud, gcli
    • Google cloud shell: gshell
    • Kubernetes command line interface: kubectl, kctl
  • Provision environment for testing by using command mycontainer

Quick start:

Bash shell, curl or wget tool must be pre-installed to run setup.sh

bash <(curl -sSL "https://raw.githubusercontent.com/vleedev/myenv/main/setup.sh?$(date +%s)")

or

bash <(wget -O- "https://raw.githubusercontent.com/vleedev/myenv/main/setup.sh?$(date +%s)")

or

git clone https://github.com/vleedev/myenv.git && \
./myenv/setup.sh

Manual install, go to -- Installers

Development

Run local test

./test.local.sh

myenv's People

Contributors

vkaylee avatar

Watchers

 avatar  avatar

myenv's Issues

It seems we have issue when cloning mock git server on github action

Cloning into '/home/docker/.oh-my-zsh/custom/plugins/zsh-autosuggestions'...
Cloning into '/home/docker/.myenv'...
error: Unable to find b1469f96fc53ec49fe3912adc0691886460e6968 under http://file-server/vleedev/myenv.git
Cannot obtain needed commit b1469f96fc53ec49fe3912adc0691886460e6968
while processing commit b070647b3fe3ee76818ef96e1cd45d724abfb647.
error: fetch failed.
Can not clone http://file-server/vleedev/myenv.git to /home/docker/.myenv
touch: cannot touch '/home/docker/.myenv/.env': No such file or directory
touch: cannot touch '/home/docker/.myenv/.env.myenv': No such file or directory
Test: seeing MYENV_DIR, default: ~/.myenv
Test: seeing MYENV_AUTOUPDATE=true
/ci_test.sh: line 35: /home/docker/.myenv/.env: No such file or directory
Test: seeing MYENV_AUTOUPDATE=false when updating .env
Test: seeing MYENV_AUTOUPDATE=true when updating $(pwd)/.env.myenv
Test: seeing MYENV_APPCONFIG_DIR env
Test: seeing MYENV_PACKAGE_MANAGER env
Test: seeing MYENV_VERSION env
Test: command, myenv
zsh:1: command not found: myenv
zsh:1: command not found: myenv
Test: command, myenv envs
/ci_test.sh: line 62: /home/docker/.myenv/.env: No such file or directory
zsh:1: command not found: myenv
zsh:1: command not found: myenv
/ci_test.sh: line 66: /home/docker/.myenv/.env.myenv: No such file or directory
zsh:1: command not found: myenv
zsh:1: command not found: myenv
 Container myenv-ubuntu-1  Stopping
 Container myenv-ubuntu-1  Stopped
 Container myenv-ubuntu-1  Removing
 Container myenv-ubuntu-1  Removed
 Container myenv-file-server-1  Stopping
 Container myenv-file-server-1  Stopped
 Container myenv-file-server-1  Removing
 Container myenv-file-server-1  Removed
 Container myenv-git-tool-1  Stopping
 Container myenv-git-tool-1  Stopped
 Container myenv-git-tool-1  Removing
 Container myenv-git-tool-1  Removed
 Network myenv_default  Removing
 Network myenv_default  Removed
Error: Process completed with exit code 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.