DEV Community

Hari Bantwal
Hari Bantwal

Posted on

Dockerize an OCI Instance

"Docker undeniably stands as one of the most versatile tools in any engineer's toolkit. Its utility is akin to that of a Swiss army knife, and its constant evolution through community contributions only bolsters its strength.

Deploying software with Docker on your local machine has become a breeze lately, thanks to its seamless packaging. Familiarity with your local environment makes this a convenient choice. However, when the time comes to self-host an application on a cloud provider, the landscape becomes vastly different, and a multitude of challenges emerges.

In this blog post, we will delve into the installation of Docker on an Oracle Cloud Infrastructure (OCI) instance, laying the crucial foundation for our upcoming ventures. This article is part of an ongoing series, so stay tuned for more insights and practical tips.


Objective: Provision Docker Instance in OCI, with external Block volumes to cater to Docker Services


  1. Provision an OCI Instance. Refer OCI Instance with External Volume

  2. SSH to the Created Instance to install Docker and Docker Compose

sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf list docker-ce
sudo dnf install docker-ce --nobest
sudo docker -v
sudo systemctl enable --now docker
sudo systemctl status docker
sudo usermod -aG docker root
sudo systemctl disable firewalld
sudo sudo curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
sudo docker-compose -v

Enter fullscreen mode Exit fullscreen mode

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (2)

Collapse
 
jackattack2022 profile image
abrittaf

I guess you don't need to install docker-composer apart from docker. AFAIK you can simply use

docker compose
Enter fullscreen mode Exit fullscreen mode

command.

Collapse
 
paihari profile image
Hari Bantwal

@jackattack2022 . Yes. in this case though, had a to host few services from docker-compose.ymls. So needed that extension

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay