Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant + packer #2838

Open
wants to merge 129 commits into
base: master
Choose a base branch
from
Open

Vagrant + packer #2838

wants to merge 129 commits into from

Conversation

daxgames
Copy link
Member

@daxgames daxgames commented Apr 8, 2023

Vagrant and Packer Templates for Cmder development VMs.

Usage:

  1. Clone Cmder repo to local, checkout this branch, if not yet merged.

  2. Install Oracle VM Virtualbox

  3. Install Vagrant

  4. Install Packer if you want to do Packer template development.4.

    • Build Packer Boxes.
      • Windows

        cd %cmder_root%\scripts\packer
        .\build_windows_[10|11].bat virtualbox
        
      • Linux

        cd [CMDER Repo Folder]/scripts/packer
        ./build_windows_[10|11].sh virtualbox
        
  5. Add Vagrant boxes

    • Type vagrant box add dgames\cmderdev-10
    • Type vagrant box add dgames\cmderdev-11
  6. Bring up a box.

    • Type vagrant up cmderdev-10
    • Type vagrant up cmderdev-11
  7. Enjoy!

What this is.

Automation to build Packer VM Images for use with Vagrant to stand up ready to use Windows VMs for Cmder Development and Testing.

Tested Virtualbox Only

  • Windows 10
  • Windows 11

Un-Tested Hypervisors

  • VMWare Workstation
  • Hyper-V
  • Parallels

All VMs Stood up with Vagrant Include

  • Cmder - Cloned from https://github.com/cmderdev/cmder into c:\Users\Vagrant\cmderdev
    • Added upstream remote set to https://github.com/cmderdev/cmder
  • Chocolatey
    • Cmder
    • Git
    • PoshGit
    • 7zip
    • Notepad++
    • Visual Studio Community 2022
      • C++ Dev Tools for Developing Cmder Launcher.
    • Cmder Integrated Terminals
      • Tabby
      • VSCode
      • Windows Terminal
    • Other Terminals
      • Hyper
      • Fluent Terminal

Post vagrant up Config

  1. Set your Cmder origin remote:

    cd %userprofile%\cmderdev
    git remote set-url origin [your fork]
    git config --global user.name "your name"
    git config --global user.email you@email.com
    

Packer Support Origins

Most of the Packer support for Cmder is shamelessly being borrowed from the following repositories and added to to support Cmder..

Thank you both for the good work!

Screenshots

Windows 10 - After vagrant up

image

Windows 11 - With Post vagrant up user configuration.

image

daxgames and others added 30 commits November 23, 2023 07:22
* upstream/development:
  enable `match.expand_envvars`
  fix: fix some typos in comments
  Bump softprops/action-gh-release from 1 to 2
  Bump microsoft/setup-msbuild from 1 to 2 (cmderdev#2917)
  Bump peter-evans/create-pull-request from 5 to 6 (cmderdev#2918)
  Bump actions/upload-artifact from 3 to 4 (cmderdev#2905)
  Do CI on development PRs
  Bump github/codeql-action from 2 to 3 (cmderdev#2906)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants