Code Monkey home page Code Monkey logo

midburn-profiles-drupal's Introduction

midburn-profiles-drupal

Containerized Midburn Profiles Drupal App

The code and related database data are private and require permissions to download the docker images from private google docker repository.

Prerequisites

  • Install Docker
  • Install Docker Compose
  • To run locally - enough RAM and ~10GB of available storage (preferably SSD)

Pull the docker images

The docker images are stored on a private Google Cloud Repository

  • Install Gcloud SDK
  • Ask for permissions to the midburn google account
  • Login with gcloud auth login

Pull the images

  • DB - gcloud docker -- pull gcr.io/midbarrn/midburn-profiles-drupal-db-latest
  • Drupal - gcloud docker -- pull gcr.io/midbarrn/midburn-profiles-drupal-latest

Run the environment

docker-compose up --build

Drupal is available at https://localhost DB management web ui is available at http://localhost:8080/login

  • Server: db
  • User: root
  • Password: 123456
  • Database: midburndb

To rebuild and restart (if you made changes) just run the up command again

When done, remove the environment and delete all data

docker-compose down -v

Updating the DB image

  • Comment out the lines in db/Dockerfile which copy the mysql data directory
  • Build and run this image - should provide a clean mysql DB
  • Download a database dump, e.g. = gsutil cp gs:/midburn-k8s-backups/profiles-db-production-dump-2018-01-16-11-30.sql dump.sql
  • Create Spark DB and import the data
echo "create database midburndb;" | mysql --host=127.0.0.1 --user=root --password=123456
cat ./dump.sql | mysql --host=127.0.0.1 --user=root --password=123456 --database midburndb --one-database
  • Find the docker mountpath for /var/lib/mysql and copy the files

midburn-profiles-drupal's People

Contributors

orihoch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

midburn-profiles-drupal's Issues

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.