Giter VIP home page Giter VIP logo

cfp-bdxio-dockerized's Introduction

Dockerized CFP

Purpose

Purpose of this repository is to provide a simple way to start docker container for hosting cfp application.

Set up

Prior to anything, you will have several thing to do in order to make it work :

  • Bootstrap directories & git submodule by executing the bootstrap.sh script

  • You will need to create an application-<env>.conf file somewhere, in a git repository (based on the cfp-devoxx-fr/conf/appliation-please-customize-me.conf file) For instance, I created a dedicated branch on the cfp-devoxx-fr repository with cfp configuration files. See configurations branch. You can follow this principle, or extract your configuration files in a dedicated repository. Note that you have an utility bash function declared in cfp-src-*/source.sh allowing to provision a given application.conf given an environment : extractApplicationConfig prod

  • You will have to do the same as above for a redis-config-<env>.conf (based on the cfp-devoxxfr-dockerized/redis/redis-config.conf file)

  • Run docker-compose up -d in order to build & run every declared services into docker-compose.yml file Run docker logs -f $(docker ps -f name=cfp-prod | cut -d' ' -f1)©and wait for the cfp play2 webapp to completely be started. For this, you need to see something like play: Application started Once done, restart the letsencrypt-nginx-proxy-companion in order to generate let's encrypt certificates : docker restart $(docker ps -f name=letsencrypt-nginx-proxy-companion | cut -d' ' -f1) and look at its log to be sure both testing & prod certificates are generated correctly.

  • Once done, you will need to manually link dropbox docker instance container with your own dropbox account For this, you will need to retrieve dropbox token url generated inside the dropbox docker instance : docker logs -f cfpbdxiodockerized_dropbox_1 And then, connect to your dropbox account in a browser and copy/paste the logs' token url into it in order to initiate dropbox sync of the backup folder

Side note : if you forked the cfp-devoxx-fr repository, don't hesitate to change cfp-src-*/ git submodules in order to target your own repository. For this :

git submodule deinit cfp-src-prod
git rm cfp-src-prod
git submodule add cfp-src-prod <your git repository>

Things to do when initializing a new Year

To bootstrap a new year, you will have to change following things :

  • Checkout configurations branch from this repository, and update application-prod.conf's mail.comittee.email entry accordingly to a new google group for this year's event Then create a new google group dedicated to CFP voters (generally named [email protected] where XXXX is the target year). Configuration worth noting when creating this google group is to : -- Group type : Mailing list -- Displaying topics : group's members only -- Publishing : Public (it is required in order to allow to send email to the google group folks) -- Join the group : Invitation only -- After creation, in Informations -> Directory, uncheck the "Declare this group in the directory" checkbox -- After creation, in Parameters -> Email options, put an "Email object prefix" to something like "[CFP - bdx.io - 2016]"
  • Update ConferenceDescriptor.scala on branch dev file with : -- New dates -- Potentially new rooms -- Potentially new tracks You can have a look at this commit to see how to change this properly
  • Once previous step is done, checkout testing branch and merge dev branch on it in order to include these changes into it
  • Execute the "Set Up" steps prior to the docker-compose up -d step
  • Once the CFP is running, you will need to create admin accounts To do so, you will first need to create a standard accound, then call the GET http://<cfp-url>/admin/bootstrapAdminUser which will check there isn't any administrator yet, and will then promote current user to the admins groups. To add more administrators, you will need to retrieve user id you want to promote (go to user details screen through Backoffice for instance), and then call GET http://<cfp-url>/admin/promoteToAdminUser?uuid=<uuid> as a user administrator.

Things to follow when restoring a redis backup

Follow these instructions, it's working : http://stackoverflow.com/a/23233940/476345

cfp-bdxio-dockerized's People

Contributors

fcamblor avatar joow avatar

Watchers

mimiz avatar  avatar Bruno Sabot avatar James Cloos avatar Etienne GRANDIER-VAZEILLE avatar  avatar Amélie avatar Pierre Bor avatar Sébastien Moreno 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.