Git Product home page Git Product logo

template-app's People

Contributors

dependabot[bot] avatar jkniest avatar

Watchers

 avatar  avatar

template-app's Issues

Drone CI

Install Drone CI on one primary server and build the drone configuration

Bundled Deployments

The new version of any release should completely be build inside the docker container on the pipeline. This has multiple advantages:

  • The target server does not need git / access to the git repository
  • Every release has the correct container, dependencies, etc.

The only big disadvantage is (because of zero downtime deployments and rollbacks):

  • Every release must have it's own docker tag. It wouldn't be enough to have one production tag since when I am going to rollback to an old release the old docker containers should be used.

Some notes:

  • The tag:production job must be modified to tag the branches like this: production-{{uniqueIdOfThisRelease}}
  • Same for staging
  • The mount of the volumes should be splitted in somekind of docker-compose-dev.yml so that it wouldn't be used inside the production environment
  • In that case probably extract some bin/compose command which handles the loading of multiple compose files nice and easy

Branch-specific images

Build one image for each branch that is being build.. to get the normalized branch name see also:

https://circleci.com/docs/2.0/env-vars/#example-configuration-of-environment-variables


If all tests are successful re-tag the images with the staging tag. Also change master-Tag to production

  • Using dynamic image tags (using bash_env)
  • Modify the production.sh shell script to just "tag" / it should take a source branch and target branch as parameters
  • Change the master-Tagging to production
  • Only tag master-Images if the CIRCLE_BRANCH is master
  • Add a job to tag staging Images if the target branch is develop

Zero-Downtime Deployments

Realisieren von Zero-Downtime Deployments im Stile von Envoyer, etc.

Dabei schauen, ob und wie man das mit der DB lösen kann

Docker Healthchecks

Add docker healthchecks scripts to each service which doesn't support this by default

Basic auth

We should support basic auth in the .env file. So for example, we could do something like:

NGINX_BASIC_AUTH_USER=staging
NGINX_BASIC_AUTH_PASSWORD=secret

Only then the basic auth should be enabled on traefik

PHP 7.4 🔥

Update to PHP 7.4 in the docker containers (if laravel and the packages supports it yet).

Deployment

Add a staging deployment to the circleci pipeline as a template for new projects.

Initial deployment

Currently we need to do some manual steps to deploy. We must make an initial git clone and copy the .env file. In the best case all of this should happen completly automatically and we can run the deployment on a new server without doing some extra work.

Fail on Deployment

Deployments are currently marked as "passed" if something via ssh went wrong.

Production docker tagging

If a production build is made, automatically tag the current image as "production" or "master" and push it back to the registry.

Also make IMAGE_TAG dynamic (in .env) for the compose file. So the production environment can load the images with the production tag and the staging / local development can load "develop".

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.