Giter Club home page Giter Club logo

42_inception's Introduction

Inception (42Porto - 42Cursus) Bash Logo  Linux Logo  Docker Logo 

Grade: 100/100

Subject (v1.3): Inception en_subject

Installing and running the project:

1- Install Docker: install Docker engine official docs
2- Clone this repository

git clone https://github.com/Kuninoto/42_Inception

3- Navigate to lvl_5_inception

cd 42_Inception/lvl_5_inception

4- Write a .env file like the one on srcs/.env.example to use your very own configurations
5- Run make with sudo privileges

sudo make

6- Open up your favourite browser and search for https://www.nnuno-ca.42.fr

Useful links:

What is Docker?
Wikipedia
Docker in 100 seconds
What is Docker in 5 minutes
Introduction to Docker and Docker Containers
Docker explained simply
Learn Docker in 7 easy steps

Virtual Machines vs. Containers
https://www.youtube.com/watch?v=eyNBf1sqdBQ
https://www.youtube.com/watch?v=cjXI-yxqGTI

What is a Daemon?
Wikipedia
What is a daemon?

Docker Official Documentation
Docker docs
Get started with Docker

Dockerfile
Dockerfile Docs
RUN vs CMD vs ENTRYPOINT
COPY | Getting Your Own Code in a Docker Container | Beginner's Tutorial

Docker Volumes
Official Docs
CLI
What are Docker volumes and how do you use them?
Basics of Docker Volumes | Tutorial
Docker Volumes explained in 6m
Docker Volumes | Use Local Folders and Directories
Docker Volumes Explained (PostgreSQL example)
Docker Volumes with Persistent Data in Containers | Beginners Tutorial

Docker Networking
Tutorial, all network types explained
40min video
Bridge Networks

Docker Compose File
Official Docs
Reference
20m Tutorial
30m Tutorial
Docker Compose in 12m
Docker Compose restart policies
Env File
Volumes top-level element
Networks top-level element
Services top-level element

Useful Docker commands
docker pull - Pull a Docker image from a registry, such as Docker Hub
docker push - Push a Docker image to a registry
docker build - Build a Docker image from a Dockerfile
docker build -t <image_name> - Build a Docker image, named <image_name> from a Dockerfile
docker run - Run a container based on a Docker image
docker stop - Stop a running container
docker ps - List the running containers
docker ps -a - List all running and non-running containers
docker ps -l - List the last created container docker ps -aq - List all containers ID's
docker images - List all the top level images, their repositories and their sizes
docker images -q - List all images ID's
docker rm - Remove a container
docker rm $(docker ps -aq) - Remove all containers
docker rmi - Remove a Docker image
docker rmi $(docker images -q) - Remove all Docker images docker exec - Execute a command in a running container
docker exec -it <container_name_or_id> /bin/bash - Spawns a bash session inside the container that we can access
docker logs - Display the logs of a container
docker inspect - Provides detailed information about a container
docker run -d -p <port>:<mapped_port> --name <container_name> <image_name> - Runs a container from <image_name> Docker Image in detach mode with <container_name> name and port mapping port -> mapped_port
docker system prune - Hard cleanup of the Docker environment (stopped containers, unused networks, dangling images and build cache)

What is Nginx?
Wikipedia

Nginx configuration
Nginx config files
Learn Proper Nginx Configuration Context Logic

What is TLS?
Wikipedia

What is SSL?
Definition

Configuring Nginx for TLS
How to properly configure your Nginx for TLS
Generating a self-signed certificate
- https://www.baeldung.com/openssl-self-signed-cert
- https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl

MariaDB
Introduction
Installing MariaDB on Ubuntu
- https://devopscube.com/install-mariadb-on-ubuntu/
- https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-ubuntu-20-04

WordPress
Installing WordPress with LEMP stack
wp-cli

General
How to install Linux, Nginx, MariaDB, PHP (LEMP stack) on Debian 10
How Docker really works under the hood
Docker-compose up, down, stop, start difference


Made by Nuno Carvalho (Kuninoto) | [email protected]

42_inception's People

Contributors

kuninoto avatar

Watchers

 avatar

Forkers

hikaarru

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.