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
- Log in to RapidDeploy.
- From the Left hand 'Menu', select Resources > Projects. From this page click the New project wizard button in the top right hand corner.
- On the General tab, name the project, e.g. 'Docker-Wordpress'. Click [Next].
- Leave the next "SCM Repository" tab with defaults. Click [Next].
- Leave the next "Artifact Repository" tab with defaults. Click [Next].
- 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].
- Accept the defaults on the "Project Groups" tab. Click [Next].
- 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
- Go to the 'Orchestration' tab in the project you just created. Select the 'Run Container' task
- Amend the entries in this task as you require.
- 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
- On the 'Targets' tab, click the 'Play' button in the 'Action' column to the right of the target you created.
- The Package you created should be selected by default.
- Execute the job.