Skip to content

udacity/nd064_course_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nd064_C1

Cloud Native Fundamentals Scholarship Program Nanodegree Program

Course Homepage: https://sites.google.com/udacity.com/suse-cloud-native-foundations/home

Instructor: https://github.com/kgamanji

Quick start

Assuming Vagrant 2.4.x and VirtualBox 7.1.x are already installed locally, the snippet below brings up the exercise VM and runs the python-helloworld Flask sample inside it.

# 1. Bring up the openSUSE Leap 15.6 VM (uses exercises/Vagrantfile)
cd exercises
vagrant up

# 2. SSH into the VM
vagrant ssh

Then, inside the VM:

# 3. Install Python 3.11 and pip
sudo zypper install -y python311 python311-pip

# 4. Install the app's dependencies and start the Flask server
cd /vagrant/python-helloworld
python3.11 -m pip install --user -r requirements.txt
python3.11 app.py

The Flask app binds to 0.0.0.0:5000 inside the VM. From a separate terminal on your host, hit it on the VM's host-only IP:

curl http://192.168.56.4:5000/
# -> Hello World!

When you're done:

exit            # leaves the SSH session
vagrant halt    # run from the host to shut the VM down

The host-only IP 192.168.56.4 is inside VirtualBox 7.x's default-allowed range (192.168.56.0/21), so no /etc/vbox/networks.conf edits are needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors