Skip to content

Repository files navigation

Relative path cycle-13

Repository of work for relative path cycle 13

Local developer onboarding

Run correct command depending on your platform. This installs everything the developer needs to do work so far.

On Darwin (mac) run: $SHELL local-setup-darwin.sh

On Linux (Debian based) run: $SHELL local-setup-linux.sh

On powershell (windows) run: ./local-setup-windows.ps1

Project

Build a webserver in a virtual machine.

Requirements

  • ubuntu virtual machine
  • nginx webserver
  • automation script

to build the local environment
$SHELL create-vm.sh

to copy webserver.sh to the vm: scp -i id_ed25519 -o StrictHostKeyChecking=no webserver.sh relativepath@$(multipass info relativepath | grep IPv4 | awk '{print $2}'):

to ssh to the local vm ssh -i id_ed25519 -o StrictHostKeyChecking=no relativepath@$(multipass info relativepath | grep IPv4 | awk '{print $2}')

to execute the webserver.sh on the vm: $SHELL webserver.sh

to validate the webserver is working, exit the vm and type this from your local: curl -w "%{http_code}" http://$(multipass info relativepath | grep IPv4 | awk '{print $2}')

to delete the local environment $SHELL delete-vm.sh

to do the whole thing all at once: $SHELL create-vm.sh && scp -i id_ed25519 -o StrictHostKeyChecking=no webserver.sh relativepath@$(multipass info relativepath | grep IPv4 | awk '{print $2}'): && ssh -i id_ed25519 -o StrictHostKeyChecking=no relativepath@$(multipass info relativepath | grep IPv4 | awk '{print $2}') '$SHELL webserver.sh' && curl -w "%{http_code}" http://$(multipass info relativepath | grep IPv4 | awk '{print $2}') && $SHELL delete-vm.sh

Containers and Docker

Link to Docker.md

About

All the configuration and scripts for RelativePath Cycle 13

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages