Giter VIP home page Giter VIP logo

custom-pod's Introduction

(Under Construction) Pod Layer (Extension)

This repository constitute the pod layer and is used to deploy services inside containers in a given host. It extends the pod repository defined at http://github.com/lucasbasquerotto/pod providing real world pod examples.

Demo

Before start using this layer, it's easier to see it in action. Below is a simple demo used to deploy a project. The demo uses pre-defined input variables, uses a cloud layer to deploy a project and then uses this layer to define the deployed pod.

To execute the demo more easily you will need a container engine (like docker or podman).

  1. Create an empty directory somewhere in your filesystem, let's say, /var/demo.

  2. Create 2 directories in it: env and data (the names could be different, just remember to use these directories when mapping volumes to the container).

  3. Create a demo.yml file inside env with the data needed to deploy the project:

# Enter the data here (see the demo examples)
  1. Deploy the project:
docker run -it --rm -v /var/demo/env:/env:ro -v /var/demo/data:/lrd local/demo

The above commands in a shell script:

mkdir -p /var/demo/env /var/demo/data

cat <<'SHELL' > /var/demo/env/demo.yml
# Enter the data here (see the demo examples)
SHELL

docker run -it --rm -v /var/demo/env:/env:ro -v /var/demo/data:/lrd local/demo

That's it. The project was deployed.

๐Ÿš€ You can see examples of project deployment demos here.

The demos are great for what they are meant to be: demos, prototypes. They shouldn't be used for development (bad DX if you need real time changes without having to push and pull newer versions of repositories, furthermore you are unable to clone repositories in specific locations defined by you in the project folder). They also shouldn't be used in production environments due to bad security (the vault value used for decryption is 123456, and changes to the project environment repository may be lost if you forget to push them).

About this repository

This repository expects the services to run inside containers because they are easier to organize and upgrade. Containers avoid package conflicts in the host and help in isolating services dependencies.

Most of the examples in this repository follow the conventions described in the base pod example.

There are several different real world examples of deployments that can be done using this repository:

There are also examples that are not recommended to be used in a real world deployment yet, but can used in local and remote deployments when in development or in tests.

custom-pod's People

Contributors

lucasbasquerotto 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.