Giter Site home page Giter Site logo

marjc5 / inception Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.64 MB

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images, creating them in your new personal virtual machine.

Makefile 6.14% Shell 10.57% Dockerfile 7.30% PHP 0.04% HTML 5.62% JavaScript 46.58% CSS 23.74%

inception's Introduction

42Lausanne
Project n°13 - Inception

This project aims to broaden your knowledge of system administration by using Docker. You will virtualize several Docker images, creating them in your new personal virtual machine.

Let's talk about Docker

... (more to come)

How to use this repository

# Clone the repository
git clone https://github.com/MarJC5/Inception.git

# Go to the repository
cd Inception/srcs

# Generate .env file
make env #fill the prompts

# Add hosts to your /etc/hosts file
make host

# Build the images
make

# Open the browser and go to https://jmartin.42.fr
# Further instructions are available with:
make help
make info

Project structure

srcs
├── docker-compose.yml # Main docker-compose file
├── .env # generated by make env
├── .env.example
└── requirements
    ├── mariadb # MariaDB image
    │	├── conf
    │	│	├── create_db.sql # SQL script to create the database
    │	│	└── mariadb-server.cnf # MariaDB configuration file
    │	├── Dockerfile
    │	├── .dockerignore
    │	└── scripts
    │	    └── entrypoint.sh # MariaDB configuration script
    ├── nginx # Nginx image
    │	├── conf
    │	│	└── nginx.conf # Nginx configuration file
    │	├── Dockerfile
    │	└── .dockerignore
    ├── tools # Tools scritps
    │	├── add-host.sh # Add hosts to /etc/hosts
    │	└── env-gen.sh # Generate .env file
    └── wordpress # Wordpress image
        ├── conf
        │	├── php.conf.ini # PHP configuration file
        │	└── phpinfo.php # PHP info page for testing purposes only
        ├── Dockerfile
        ├── .dockerignore
        └── scripts
            └── entrypoint.sh # Wordpress installation script

Bonus

srcs/requirements/bonus
├── adminer # Adminer image
│  ├── Dockerfile
│  └── .dockerignore
├── backup # Backup image
│  ├── Dockerfile
│  ├── .dockerignore
│  └── scripts
│     └── backup.sh # Backup script
└── website # Static Website image
    ├── app
    │  ├── data
    │  │   └── data.json # Data file
    │  ├── images # Static images
    │  ├── index.html # HTML file for the website
    │  ├── js
    │  │  └── render.js # Render the data file into the HTML page
    │  ├── package.json # npm package file
    │  ├── package-lock.json
    │  ├── server.js # NodeJS server to serve the website on port 3000
    │  ├── stylesheets
    │  │   ├── compiled.css # Compiled CSS file from tailwindcss regarding the class used in the HTML page
    │  │   └── style.css # Default tailwindcss stylesheet
    │  └── tailwind.config.js # Tailwindcss configuration file
    ├── Dockerfile
    └── .dockerignore

inception's People

Contributors

marjc5 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.