Konstantinos Antoniou.

← Projects

Scout-Encoder: End-to-End Jenkins CI/CD Pipeline Implementation

Project Overview:

I developed an Encoder for my friends, my neighborhood Scouts, a Python Flask web application designed to encode Greek text using multiple creative encoding schemes. The app provides a simple, interactive interface to encode greek text into numeric sequences, Morse code, musical Morse, hierarchical glyphs, chemical elements, and more.

This project allowed me to explore advanced string manipulation, regex validation for Greek characters, and multiple encoding logics, all wrapped into a responsive web interface.

Screenshot 1: Project Overview


Key Features

  • Multi-encoding Support:
    • Numeric 1–24 and Reverse 24–1
    • Caesar Cipher with +3 shift
    • Morse Code & Morse Music
    • Greek Words Mapping
    • Periodic Table Elements Mapping
    • Hieroglyphic Encoding
  • Greek-only Validation: Prevents Latin characters or invalid symbols.
  • Interactive Web Interface: Users can input text, select encoding type, and copy results directly.
  • Responsive Design: Optimized for desktops and tablets with dark mode styling.

Technical Implementation

  • Language & Frameworks: Python 3, Flask
  • Frontend: HTML, CSS (Dark Mode), JavaScript (Clipboard & Clear functions)
  • Encoding Logic:
    • Greek letters are mapped to numbers, words, Morse code, elements, or hieroglyphs using dictionaries.
    • Handles uppercase, lowercase, and accented Greek letters seamlessly.

CI/CD Implementation with Jenkins

To make deployment seamless and repeatable, I created a full CI/CD pipeline:

  1. Jenkins Integration: Pipeline triggers on any push to the repository.
  2. Docker Build: The Flask app is containerized for portability.
  3. DockerHub Authentication & Push: Image is securely pushed to DockerHub.
  4. Remote Deployment: SSH into a Debian server, pull the latest image, stop and remove the previous container, and run the new one.

Pipeline highlights:

stage('Deploy to Remote Host') {
    steps {
        sshagent(['DEBIANSERVER']) {
            sh """
            ssh -o StrictHostKeyChecking=no [email protected] '
                docker pull funmicra/scouts-encoder:latest &&
                docker stop greek-encoder || true &&
                docker rm greek-encoder || true &&
                docker run -d -p 5050:5000 --name Greek-Encoder --restart unless-stopped funmicra/scouts-encoder:latest
            '
            """
        }
    }
}

Screenshot 2: Pipeline highlights

Screenshot 3: Pipeline highlights

Screenshot 4: Pipeline highlights

Outcome:
This setup allows me to push updates to GitHub and automatically have the app redeployed on a remote server, with zero downtime and minimal manual intervention. It demonstrates my ability to integrate Python development, containerization, and CI/CD pipelines efficiently.


Lessons Learned

  • Managing Greek Unicode text in Python required careful normalization and mapping.
  • Flask provides a lightweight yet flexible web framework for rapid prototypes.
  • Integrating Docker with Jenkins CI/CD allows scalable and reliable deployment pipelines.
  • Remote deployments can be fully automated with SSH and Docker commands, making future redeployments trivial.