Skip to content

Mide69/AssetRegisterApp_Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DockerContainer_AssetRegisterApp_Python

AR Python App

A Python application with AR (Augmented Reality) capabilities, containerized with Docker and deployed on AWS EC2.

🚀 Project Overview

This project is an AR-enabled Python application that provides asset configuration and management service for ITSM professionals. The application is containerized using Docker and deployed on AWS EC2 for scalable cloud hosting.

🏗️ Architecture

  • Application: Python-based AR application
  • Containerization: Docker
  • Deployment: AWS EC2 (myDockerServer)
  • Registry: Docker Hub (tekktribe/ar-python-app)

📋 Prerequisites

  • Python 3.x
  • Docker
  • AWS CLI (for EC2 deployment)
  • Docker Hub account

🛠️ Installation & Setup

Local Development

  1. Clone the repository:

    git clone <your-repository-url>
    cd AR-python-app
    
    
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application locally:

    python app.py

Docker Deployment

  1. Build the Docker image:

    docker build -t tekktribe/ar-python-app .
  2. Run the container locally:

    docker run -p 8080:8080 tekktribe/ar-python-app
  3. Push to Docker Hub:

    docker push tekktribe/ar-python-app

🌐 AWS EC2 Deployment

Server Setup (myDockerServer)

The application is deployed on AWS EC2 instance named myDockerServer.

Server Details:

  • Instance Name: myDockerServer
  • Instance Type: t2 micro
  • Region: US-EAST-1

Deployment Steps

  1. Connect to EC2 instance:

    Amazon EC2 Instance Connect
    
  2. Pull the Docker image:

    docker pull tekktribe/ar-python-app
  3. build the application:

    docker build -t tekktribe/ar-python-app

📁 Project Structure

AR-python-app/
├── app.py                 # Main application file
├── requirements.txt       # Python dependencies
├── Dockerfile            # Docker configuration             
└── README.md            # This file

Common Issues

  1. Docker build fails:

    # Make sure you're in the correct directory
    docker build -t tekktribe/ar-python-app .
    
  2. Push fails:

    # Login to Docker Hub first
    docker login
    docker push tekktribe/ar-python-app
    

🚀 Deployment Commands Quick Reference

# Build and push
docker build -t tekktribe/ar-python-app .
docker push tekktribe/ar-python-app

# Deploy on EC2
ssh -i your-key.pem ubuntu@your-ec2-ip
docker pull tekktribe/ar-python-app

Screenshot (47) Screenshot (46) Screenshot (45) Screenshot (48)

Last Updated: [Current Date] Version: 1.0.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published