Get Started with Bitnami Applications on Oracle Cloud Infrastructure
Oracle Cloud Infrastructure offers a collection of cloud services designed to manage applications, services, and databases, in a high-performance cloud computing environment. Its architecture provides the flexibility to scale. In addition to this, Oracle Cloud Infrastructure offers the highly durable storage of public cloud combined with the security, control access, and cost-effectiveness of on-premise infrastructure.
Bitnami provides pre-packaged application images for Oracle Cloud Infrastructure servers which allow you to use your new server immediately. You can access and launch these images through the Oracle Cloud Infrastructure Marketplace, Oracle’s digital platform for software applications or through the Oracle Cloud Infrastructure Console.
In this tutorial, I will walk you through the process of using the Oracle Cloud Infrastructure Console to deploy a Bitnami image on an Oracle Cloud Infrastructure server.
TIP: This tutorial describes how to get started with those Bitnami solutions that can be found in the Oracle Marketplace. To learn how to launch the Bitnami solutions that are included in the Oracle Console Marketplace, refer to this tutorial.
NOTE: This guide assumes that you have an Oracle account as well as an account in the identity domain for your company (both with the same email address). It also assumes that your identity domain account has sufficient roles or privileges to launch Oracle Cloud Infrastructure instances. If you don’t have an Oracle Account, register for one here. If you don’t have an account in the identity domain for your company, contact your network or IT services administrator.
If you’re interested in creating a personal or small business blog, chances are that you’re going to use WordPress. WordPress is one of the most popular blogging platforms in the world, used on over 60 million websites (according to Wikipedia). And it is not hard to see why: WordPress is very easy to use, comes with thousands of extensions and themes, is completely free, and is open source.
In this tutorial, you will learn, step by step, (using WordPress as an example) the complete process of deploying an image on a bare metal server using the Oracle Cloud Infrastructure Console.
The following are the steps you’ll complete in this tutorial:
- Get the Bitnami WordPress image from the Oracle Cloud Marketplace
- Import the Bitnami WordPress image to the Oracle Infrastructure Console
- Launch an instance to deploy the Bitnami WordPress image
- Obtain WordPress credentials
- Log in and start using WordPress
Once you’ve completed these steps, you will have the basic knowledge you need to deploy other Bitnami applications on an Oracle Cloud Infrastructure server.
Step 1: Get the Bitnami WordPress image from the Oracle Cloud Marketplace
At the end of this step, you will have the URL link of the Bitnami WordPress image ready to use for importing it to the Oracle Cloud Infrastructure Console.
- Navigate to the Oracle Cloud Infrastructure Marketplace and log in (if not already logged in).
Once you are logged into the platform, in the search box, enter “Bitnami WordPress” and click “Go”.
On the resulting screen, select the distribution of the Bitnami WordPress image you want to deploy.
The resulting page is an overview page with detailed information about the application. Click the “Get App” button.
Once you have accepted the Oracle Marketplace terms, you will be redirected to the Bitnami site. Find the URL link of the image you want to deploy. Note it down immediately and save it. You will need it later to import the image to the Oracle Cloud Infrastructure Console.
IMPORTANT: If in this step you are prompted to choose a region to launch the application directly from the Oracle Infrastructure Console, refer to the Get started with Bitnami Partner Images on Oracle Cloud Infrastructure guide to complete the process.
Step 2: Import the Bitnami WordPress image to the Oracle Cloud Infrastructure Console
At the end of this step, you will have the Bitnami WordPress image available on the Oracle Cloud Infrastructure Console.
Log in to the Oracle Cloud Infrastructure Console (if not already logged in).
Once you are logged into the platform, navigate to the “Compute -> Custom Images” section:
On the resulting page, select the compartment in which you want to deploy the image.
Click the “Import Image” button you will find in the top menu:
On the resulting screen, enter the following information:
- NAME: Enter a name for your image.
- OPERATING SYSTEM: Linux.
- OBJECT STORAGE URL: Paste the URL link you have previously obtained in step 1.
- IMAGE TYPE: Select the OCI option.
- LAUNCH MODE: Select the NATIVE MODE option.
Click “Import Image” to start the process.
You will be redirected to the “Image Details” page. From here, you can check the import process status:
Step 3: Launch an instance to deploy the Bitnami WordPress image
At the end of this step, you will have a WordPress blog running on an Oracle Cloud Infrastructure server.
Once the image has been successfully imported, you will see its status change to “Available” in the “Image Details” page. The action buttons, located on the upper side of the page, will appear activated as shown below:
You can also check the status of the image by navigating to the “Compute -> Custom Images” section:
To deploy the image on a bare metal server, follow the steps below:
On the “Image Details” page, click “Launch Instance”. A form opens. Specify the server requirements. As you can see in the image below, both the IMAGE SOURCE and the IMAGE fields are preselected and show the values corresponding to your imported image.
Enter the required information. Remember to select the BARE METAL MACHINE option in the SHAPE TYPE field, and to upload your SSH key file in the .pub format. Click “Launch Instance”.
Once you have finished, you will be redirected to the “Instance Details” page. When the instance has been launched, you will see its status change to “Running” in the “Instance Details” page.
Find the server Public IP Address under the “Primary VNIC Information” section. Take note of this IP address to access your application later on:
Enter the server IP address in your browser. You should see the deployed application:
Step 4: Obtain WordPress credentials
At the end of this step, you will have the credentials needed to access your WordPress blog.
The application credentials are stored in a standalone file. To obtain the credentials at any time, follow these instructions:
- Connect to the application through SSH.
Run the following command to see your application credentials:
$ cat ./bitnami_credentials
NOTE: In recently launched instances, the credentials file might take some time to be present in the server.
Step 5: Log in and start using WordPress
- At the end of this step, you will have logged in to WordPress and created a new blog post.
To log in to the WordPress dashboard, follow these steps:
Browse to the WordPress dashboard, usually at the URL http://SERVER-IP/wp-admin.
Log in with the administrator credentials from the previous step.
You should now arrive at the WordPress dashboard, which allows you to manage posts, pages and comments; customize your blog with themes and plugins; import and export content; manage navigation menus; add or delete new user accounts; and much more.
Create your first post
You can now add a new post using the following steps:
Select the “Posts -> Add New” menu option to create a new post.
Enter a title and content for the post. You can use the formatting tools at the top of the content area to format your post and add hyperlinks or images.
Optionally, choose the format and category for your post.
Publish it immediately using the “Publish” button.
And now, when you visit your blog’s front page, you should see your new post.
Congratulations! You now have a working, fully-functional WordPress blog in the cloud.
Keep your WordPress installation up-to-date
You can keep your WordPress installation up-to-date with the WordPress update feature. To access this:
- Log in to WordPress using the administrator account.
Select the “Dashboard -> Updates” menu item.
Review the resulting page to see if WordPress needs an update. If an update is available, you can install it by clicking the “Update Now” button. You can also re-install WordPress if needed with the “Re-install Now” button.
To learn more about the topics discussed in this tutorial, see the links below: