Docker Getting Started Guide

In the following example, we'll deploy Wordpress to a remote server, using Docker. In order to perform this task, lets first create a project based on the Docker plugin in RapidDeploy. For this example we'll use the Docker command line plugin.

This example assumes you have Docker already installed locally on your machine. If you don't, you can either install it manually, or use our 'Docker install Blueprint' to install it.

Creating a Docker project

  1. Log in to RapidDeploy.
  2. From the Left hand 'Menu', select Resources > Projects. From this page click the New project wizard button in the top right hand corner.
  3. On the General tab, name the project, e.g. 'Docker-Wordpress'. Click [Next].
  4. Leave the next "SCM Repository" tab with defaults. Click [Next].
  5. Leave the next "Artifact Repository" tab with defaults. Click [Next].
  6. On the "Targets tab, enter a Server, Environment and Application name, e.g. localhost, wordpress, Wordpress. From the template dropdown select "Docker Orchestration Template" and for "Create Orchestration of Type:" select "Deploy Image and Run Container". Click [Next].
  7. Accept the defaults on the "Project Groups" tab. Click [Next].
  8. On the "Finish" tab, review details and click [Create this Project]

    Your project should have been created. Along with the project, the localhost sever definition and the environment definitions will also have been created, if they were not present already, as skeleton entries in RapidDeploy. Now we need to configure the environment.

Editing the Docker Orchestration

  1. Go to the 'Orchestration' tab in the project you just created. Select the 'Run Container' task
  2. Amend the entries in this task as you require.
  3. Save the project.

Create a deployment package

Click on the Packages tab.

On the 'Packages" tab, click the [Create Package] button. That's it, you just created a package with the environment and project data. This package will always represent the state of the project and the environment data it is using, until you decide to delete it.

Over time, as you change the project or the environments it uses, you create a new deployable 'Snapshot' of the deployable configuration. You can compare this 'Snapshot' with any other snapshot you create using the 'Right' [↘] and 'Left' [↙]buttons on the action menu.

Execute a job on the created target with the selected package

  1. On the 'Targets' tab, click the 'Play' button in the 'Action' column to the right of the target you created.
  2. The Package you created should be selected by default.
  3. Execute the job.