We recommend installing the Docker CE stable channel release 17.09 on your system.
Make sure you check the What to know before you install
section on the Docker site for Mac OS and Windows to ensure your system meets the requirements.
- What to know before you install - Docker for Mac
- What to know before you install - Docker for Windows
NOTE: We currently do not support Docker Toolbox on any OS.
NOTE: Please use the edge version for Mac.
For the installers, go to Docker for Mac.
Configure Docker to use maximum CPU and at least half of the maximum memory. You can configure settings by right clicking the whale icon on the status bar and clicking Preferences
-> Advanced
.
Make sure you apply these changes for Docker to be configured with the new settings.
Here is a sample Docker configuration on Mac OS.
For the installers, go to Docker for Windows.
Configure Docker to use maximum CPU and at least half of the maximum memory. You can configure settings by right clicking the whale icon in the Notifications area and clicking Settings
-> Advanced
.
Make sure you apply these changes for Docker to be configured with the new settings.
Here is a sample Docker configuration on a Windows machine.
You can find specific Linux distribution in the tables on Docker for Linux.
Download the latest release of the CLI for your platform from here.
Place the amp
binary from the release archive into some location in your system path.
For example:
$ sudo chmod +x ./amp
$ sudo mv ./amp /usr/local/bin
See the local cluster documentation for detailed information on cluster creation on your local machine.
See the AWS cluster documentation for detailed information on cluster creation on AWS.
See the stack deploy documentation for detailed information on deploying your own stacks on your AMP cluster.
Alternatively, if you wish to work with the latest development version directly from master
on Github,
you can fork the repo and build your own CLI. The entire toolchain has been containerized so you only need to install Docker.
TIP: Here is the official Go documentation explaining how to create a Go project structure and set GOPATH.
To get the repo setup, you can run the following set of commands to clone the repository into your go
workspace and add the CLI path to your system PATH
.
$ cd $GOPATH/src
$ mkdir -p github.com/appcelerator
$ cd github.com/appcelerator
$ git clone https://github.com/appcelerator/amp
$ cd amp
$ export PATH=$GOPATH/src/github.com/appcelerator/amp/bin/{YourOS}/amd64:$PATH
To build the CLI and the core AMP images, you can then run:
$ ampmake build
This will build cross-compiled versions of the CLI and place them in the appropriate locations under ./bin
.
In addition, this will build the development versions of each of the images necessary for creation of the AMP cluster.
NOTE: For detailed information on AMP commands, see the reference documentation for each command.