GithubHelp home page GithubHelp logo

jdevtools's Introduction

jdevtools

A java development ecosystem built with vagrant and ansible that provides:

  • GitLab - source control management, issue tracker and wiki
  • Jenkins - continuous integration
  • Sonarqube - code quality inspection tool

For now, it is intended for personal usage, say a personal/school project.
Includes backup/restore for all applications.

Quickstart

git clone https://github.com/joaocenoura/jdevtools.git jdevtools && cd $_
vagrant up

after the installation process is completed, go to:

and you're done!

Requirements

host machine must have:

optionally, you may install:

Backup & Restore

both processes are executed at the host machine:

./jdevtools-backup.sh
./jdevtools-restore.sh

note:

  • backups are stored in backups/ (this folder is automatically created when performing a backup).
  • fdupes will remove any duplicated backup in order to save space
  • the restore process will always fetch the latest backup.

Configuration

port forwarding

edit Vagrantfile and change the 'host' variable:

  config.vm.network "forwarded_port", guest: 80, host: 9871
  config.vm.network "forwarded_port", guest: 8081, host: 9872
  config.vm.network "forwarded_port", guest: 9000, host: 9873

timezone

install vagrant-timezone plugin: vagrant plugin install vagrant-timezone
edit Vagrantfile and change the 'config.timezone.value' variable:

  if Vagrant.has_plugin?("vagrant-timezone")
    config.timezone.value = "Europe/Lisbon"
  end

apt-cacher-ng

apt-cacher-ng is very useful when one is constantly provisioning the box. It allows to cache deb files (all except gitlab) and reduces drastically the provisioning time.
to setup the box to use a apt-cacher-ng proxy, simply create the file provisioning/roles/common/vars/aptcacher.yml and add:

---
aptcacher_host: <apt_cacher_ng_ipaddress>:3142

to setup a apt-cacher server, check https://github.com/joaocenoura/apt-cacher-ng
or use the provided script to spin up a apt-cacher server:

# this will checkout https://github.com/joaocenoura/apt-cacher-ng.git
# and create the provisioning/roles/common/vars/aptcacher.yml
./setup_aptcacher.sh
cd tmp/apt-cacher-ng
vagrant up

Guidelines

this is just a simple guideline/workflow to use all the provided tools. for each project:

References

jdevtools's People

Contributors

joaocenoura avatar

Watchers

 avatar

jdevtools's Issues

gitlab

Create ansible role "gitlab" to install gitlab.
Scripts to perform backup and restore.

jenkins

Create ansible role "jenkins" to install jenkins.
Scripts to perform backup and restore.

init project

Setup vagrant and ansible playbook.
Add ansible role "common". This should install ntp and restart ntpd.

sonarqube

Create ansible role "sonarqube" to install sonarqube.
Scripts to perform backup and restore.

improve backups to save disk space

Split a file backup into several files.
Must identify which files are static and those that are constantly changing. By having a tarball that contains static files/folders, the chances of fdupes gaining space improves.

write readme.md

Should include the following sections:

  • quickstart
  • requirements
  • configuration
    • vagrant-timezone
  • ideas (link backups to a dropbox folder; add machines to /etc/hosts)
  • using apt-cacher-ng
  • references
  • (others?)

common

Create ansible role "common" for all common tasks.
Scripts to perform backup and restore.

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.