Name: ascent-developer-vm
Owner: Department of Veterans Affairs
Description: null
Created: 2017-08-01 01:04:52.0
Updated: 2017-09-28 02:04:45.0
Pushed: 2017-12-22 16:02:35.0
Homepage: null
Size: 10
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Repository that contains the vagrant & shell scripts for building a linux VM with the ascent-platform technology stack
This document walks through the steps involved in rolling out a developers workstation installed with all the core technology stack needed for platform development, on a VM box with ubuntu/trusty64 image.
Users should have the below softwares installed on their machine
To check out ascent-developer-vm repository from GitHub
git clone https://github.com/department-of-veterans-affairs/ascent-developer-vm
Make sure to change the line endings in cloneascentrepo.sh,cloneascentsamplerepo.sh and githubuserconfiguration.sh to LF from CRLF.(Linux interprets CR as an unknown character & you will see issues when running the cloneascentrepo.sh scripts) - THIS STEP MAY LIKELY NOT BE NEEDED.
Run the command vagrant up. This should take a few minutes to get all the software installed on the VM box.
Creating a vagrant image of VM (this will take few minutes): vagrant package –base platform-base –output
run the command: vagrant up or go to Oracle VM Virtual Box Manager and double click on pltaform-base VM
Default credentials to login to VM box:vagrant/vagrant
Upon logging into VM, open the terminal and run command sudo passwd root to set your root password
Run the command sudo su root and cd to root directory
In case you have issue running command “mvn -version” then set up your path to run maven: Append /usr/local/apache-maven/apache-maven-3.3.9/bin to PATH in /etc/environment
To validate the installation:
Run: java -version to confirm version 1.8.0_131
Run: git –version to confirm git installation
Run: /opt/sts-bundle/sts-3.8.4.RELEASE/STS to bring up STS IDE
Run: docker & docker-compose to see the Usage
Confirm maven installation under /usr/local/apache-maven/apache-maven-3.3.9
Incase you don't see ascent-platform and ascent-sample repos cloned under /home/vagrant/projects/workspace, run the following scripts cloneascentrepo.sh, cloneascentsamplerepo.sh and githubuserconfiguration.sh under /home/vagrant
Creating Personal Access Token To Connect To GitHub
Creating Personal Access Token is required for 2 purposes
Follow the steps on page Create Personal Access Token
Caching the personal access token in Linux
From the terminal run the below command
git config –global credential.helper cache Caches for 15 mins by default
git config –global credential.helper 'cache –timeout=3600' Caches for 60 mins
Follow all the instructions on this page: Build and Test Projects
The below steps don't have to be followed anymore because we are using https connection to github. Follow these steps