The world is yours

T417 Infrastruktur Odoo Skala Besar Part 1: Docker

Enroll Back

Setup Infrastruktur Odoo untuk perusahaan skala besar, docker, kubernetes.

Enroll Back

What you will learn?

Introduction

  • Objectives

  • Why and What is Docker

  • Container vs Virtual Machine

  • Download Resources

Automatic Pull on Restart

  • Github Settings: Create OAuth Token

  • Create a New Private Repository

  • Clone the Private Repository

  • Add Some Custom Addons

  • Edit the Dockerfile

  • Edit the entrypoint.sh

  • Set Token on the Environment Variable

  • Use the Token from the entrypoint.sh

  • Rebuild and Test the New Image

Automatic Clone on Restart

  • Dockerfile Settings

  • Entry Point Settings

  • Docker Compose Settings

  • Rebuild and Test the New Image

Instalasi Docker

  • Docker Installation on Ubuntu

  • Docker Installation on Centos

  • Docker Installation on Windows 10

  • Docker Installation on MacOS

  • Pull and Run Odoo Official Docker Image

Dockerfile

  • What is Dockerfile

  • Clone Odoo Docker from Github

  • Create Docker Hub Account

  • Try to Build and Start Our Custom Image

  • Base Image and Install Basic Packages

  • Install PostgreSQL Client Package

  • Install Odoo Package

  • Mount Volumes, Port, Setup User, and Start Command

  • Install Additional Python Package

Build, Run, and Push Image

  • Run Manually with Data Volume Mounted

  • Run Manually with Addons Volume Mounted

  • Run in the Background and See the Logs

  • Entering the Container Shell

  • Run with Custom Config on Host

  • Stop, Start, and Restart

  • Run with Inline Arguments

  • Push the Image

  • Remove Unused Containers

Entrypoint File

  • The entrypoint.sh file explanation

  • Environment Variables

Run with Docker Compose

  • Docker Compose Installation

  • Start, Stop, Pull

  • Docker Compose YML File

  • Mounting Local Addon Folders

  • Try to Install the Mounted Addon

Embedding Custom Addon

  • Prepare the Addon to Embed

  • COPY Command

  • Re-build our Custom Image

  • Testing and Installing the Addons

Make Private Repository

  • Docker Hub Repository Configuration

  • Add Collaborators

Install Odoo from Source Code

  • Download Odoo Source Code

  • Additional Required Packages

  • Copy Source Code

  • Add Odoo User

  • Run Python Package Installation

  • Prepare /var/lib/odoo Directory

  • Set Default User

  • Copy Odoo Executable

  • Edit entrypoint.sh File

  • Build the Image

  • Run the Container

  • Fix Warnings dan Rebuild

Github Integration

  • Prepare a GitHub Repository

  • Removing dot git Folder for Cloned Repository

  • Docker Hub Settings

  • Test the Auto Build

Enroll Back