Skip to content

Sample Project Overview

Introduction

This sample project showcases a Docker Compose stack comprising Metal Server and various Database Management System (DBMS) providers.

The stack comes preloaded with data, facilitating the execution and testing of diverse use cases.

The project has been tested on:

  • CentOS 7
  • Ubuntu 22

Stack Services

Here's an overview of the key services included in the stack:

Service NameDescriptionDocker Image
metalMetal Servermetal-server Dockerfile
mdb-mflixMongoDBmongo:latest
ms-hrMS SQL Server 2019mcr.microsoft.com/mssql/server:2019-latest
pg-northwindPostgreSQL Serverpostgres:latest
pg-clubdataPostgreSQL Serverpostgres:latest
pg-clubdata-bookingsPostgreSQL Serverpostgres:latest
pg-clubdata-membersPostgreSQL Serverpostgres:latest
pg-clubdata-facilitiesPostgreSQL Serverpostgres:latest
azuriteMicrosoft Azure Storage Azuritemcr.microsoft.com/azure-storage/azurite:latest
ftp-serverFTP Servergarethflowers/ftp-server:latest

Databases

For each DBMS, the project includes specific databases with associated tables or collections:

Service NameDatabase NameTables/Collections Names
mdb-mflixmflixmovies, users, sessions, comments, theaters
ms-hrhrregions, countries, locations, jobs, departments, employees, dependents
pg-northwindnorthwindterritories, order_details, employee_territories, us_states, customers, orders, employees, shippers, products, categories, suppliers, region, customer_demographics, customer_customer_demo
pg-clubdataclubdatamembers, facilities, bookings, mflix_log
pg-clubdata-membersclubdatamembers
pg-clubdata-facilitiesclubdatafacilities
pg-clubdata-bookingsclubdatabookings

Files

The project includes files to be used with File Data provider:

File NameStorageContent
colors.jsonazurite (datacontainer1)JSON data
addresses.csvazurite (datacontainer1)CSV data

Configuration File

The project includes a readily available configuration file for seamless setup. Configuration File

Prerequisites

Before delving into the sample project, ensure that your environment meets the following prerequisites:

Installation

Follow these steps to install the sample project:

  1. Clone the sample project repository:

    bash
    git clone https://github.com/anismegdiche/metal-sample-project.git
  2. Navigate to the project directory:

    bash
    cd metal-sample-project
  3. Change the permissions of the install.sh script:

    bash
    chmod +x *.sh
  4. Run the installation script:

    bash
    ./install.sh

    The stack will be up and ready after the installation process.

Verification

To ensure everything is set up correctly, run the following command:

bash
curl http://localhost:3000/server/info

You sould receive the following response:

json
{"server":"Metal","version":"0.3"}

Congratulations! You have successfully configured and verified your Metal Server Sample Project.

For more configuration details and use cases, please refer to the section Technical Guides

Released under the GNU v3 License.