Docker Community Forums

Share and learn in the Docker community.

How does one deploy a python script and MAMP database to another Mac

Hi all
I am a newbie here and created a simple python script and MAMP mysql database for an elderly friend to manage his daily prescriptions. I have it on my MacBook and want to deploy it to his mac. How can I do this with Docker, so that I don’t have to install MAMP on his Mac and recreate the database etc.?

Is this something Docker can do?

Thanks in advance for your time

Installing MAMP on a Mac

  1. Download the latest version of MAMP.
  2. Open the downloaded file (e.g., MAMP_MAMP_PRO_4.5.pkg) and click through the installation wizard.
  3. Close the installation wizard.

Running MAMP on OSX

To run MAMP…

  1. Navigate to Applications/MAMP in Finder and open MAMP.app
  2. Click Start Servers:
  3. The following page should open in your browser:

Class Files

  1. Download the class files
  2. After downloading the class files, create a folder in htdocs named “Webucator” and extract your class files in that folder.
  3. To test that your setup so far is correct, open your browser and navigate to http://localhost:8888/Webucator/ClassFiles/. You should get a listing like this:Class Files Listing
  4. Click PHPBasics, then click Demos, and then HelloWorld.php. You should get a page that looks like this:

Setting the MySQL Password

The PHP files use “pwdpwd” for the MySQL root password, while the default password used in MAMP is “root”. In your browser, navigate to http://localhost:8888/phpmyadmin/.

Note : It is important to do these steps in the order specified.

  1. Click the mysql database on the left.
  2. Click the SQL tab at the top.
  3. Enter the following in the textbox under Run SQL query/queries on database mysql:

SET Password=PASSWORD(‘pwdpwd’);

  1. Click Go.