Toggle navigation
Dataverse Project
About
About the Project
Add Data
Blog
Presentations
Publications
Community
Best Practices
Academic Credit
Harvard Dataverse Policies
Data Management
Replication Dataset Guidelines
Software
Features
Source Code
User Guide
Installation Guide
API Guide
Developer Guide
Style Guide
Admin Guide
Contact
User Guide
Admin Guide
API Guide
Installation Guide
Developer Guide
Introduction
Development Environment
Tips
Troubleshooting
Version Control
Testing
Documentation
Debugging
Coding Style
Docker, Kubernetes, and OpenShift
Making Releases
Tools
Universal Numerical Fingerprint (UNF)
Shibboleth and OAuth
Geospatial Data
SELinux
Big Data Support
Style Guide
Developer Guide
ΒΆ
Contents:
Introduction
Intended Audience
Getting Help
Core Technologies
Roadmap
Kanban Board
Issue Tracker
Related Guides
Related Projects
Development Environment
Quick Start
Set Up Dependencies
Supported Operating Systems
Install Java
Install Netbeans or Maven
Install Homebrew (Mac Only)
Clone the Dataverse Git Repo
Build the Dataverse War File
Install jq
Install Glassfish
Install PostgreSQL
Install Solr
Run the Dataverse Installer Script
Verify Dataverse is Running
Next Steps
Tips
Iterating on Code and Redeploying
Undeploy the war File from the
install
Script
Add Glassfish 4.1 as a Server in Netbeans
Ensure that Dataverse Will Be Deployed to Glassfish 4.1
Make a Small Change to the Code
Confirm the Change Was Deployed
Netbeans Connector Chrome Extension
Deploying With
asadmin
Running the Dataverse
install
Script in Non-Interactive Mode
Preventing Glassfish from Phoning Home
Solr
Git
Set Up SSH Keys
Git on Mac
Troubleshooting
context-root in glassfish-web.xml Munged by Netbeans
Configuring / Troubleshooting Mail Host
Rebuilding Your Dev Environment
DataCite
Version Control
Where to Find the Dataverse Code
Branching Strategy
Goals
Branches
The “master” Branch
The “develop” Branch
Feature Branches
How to Make a Pull Request
Find or Create a GitHub Issue
Create a New Branch off the develop Branch
Commit Your Change to Your New Branch
Push Your Branch to GitHub
Make a Pull Request
Make Sure Your Pull Request Has Been Advanced to Code Review
How to Resolve Conflicts in Your Pull Request
Testing
The Health of a Codebase
Testing in Depth
Unit Tests
Unit Test Automation Overview
Writing Unit Tests with JUnit
Refactoring Code to Make It Unit-Testable
Observing Changes to Code Coverage
Testing Commands
Integration Tests
Getting Set Up to Run REST Assured Tests
The Burrito Key
Root Dataverse Permissions
Publish Root Dataverse
dataverse.siteUrl
Identifier Generation
Writing Integration Tests with REST Assured
Load/Performance Testing
Locust
download-files.sh script
The Phoenix Server
How the Phoenix Tests Work
How to Run the Phoenix Tests
List of Tests Run Against the Phoenix Server
Future Work
Future Work on Unit Tests
Future Work on Integration Tests
Browser-Based Testing
Installation Testing
Future Work on Load/Performance Testing
Documentation
Quick Fix
Other Changes (Sphinx)
Installing Sphinx
Using Sphinx
Table of Contents
Debugging
Logging
Coding Style
Java
Formatting Code
Tabs vs. Spaces
Format Code You Changed with Netbeans
Logging
Avoid Hard-Coding Strings
Type Safety
Bike Shedding
Docker, Kubernetes, and OpenShift
OpenShift
Install Minishift
Start Minishift
Make the OpenShift Client Binary (oc) Executable
Log in to Minishift from the Command Line
Create a Minishift Project
Create a Dataverse App within the Minishift Project
Log into Minishift and Visit Dataverse in your Browser
Troubleshooting
Check Status of Dataverse Deployment to Minishift
Review Logs of Dataverse Deployment to Minishift
Get a Shell (ssh/rsh) on Containers Deployed to Minishift
Cleaning up
Making Changes
Making Changes to Docker Images
Making Changes to the OpenShift Config
Running Containers to Run as Root in Minishift
Minishift Resources
Docker
Installing Docker
All In One Docker Images for Testing
Future production use on Minishift/OpenShift/Kubernetes
Known Issues with Dataverse Images on Docker Hub
Get Set Up to Push Docker Images to Minishift Registry
Making Releases
Bump Version Numbers
Merge “develop” into “master”
Write Release Notes
Make Artifacts Available for Download
Publish Release
Tools
Netbeans Connector Chrome Extension
Maven
Vagrant
PlantUML
Eclipse Memory Analyzer Tool (MAT)
PageKite
MSV
FontCustom
Universal Numerical Fingerprint (UNF)
UNF Version 3
UNF Version 5
UNF Version 6
I. UNF of a Data Vector
II. Combining multiple UNFs to create UNFs of higher-level objects.
Footnotes:
Shibboleth and OAuth
Shibboleth and OAuth
Geospatial Data
Geoconnect
How Dataverse Ingests Shapefiles
Ingest
Example
WorldMap JoinTargets + API Endpoint
How Geoconnect Uses Join Target Information
Retrieving Join Target Information from WorldMap API
Saving Join Target Information to Geoconnect Database
SELinux
Introduction
Development Environment
Recreating the shibboleth.te File
Ensure that SELinux is Enforcing
Removing the Existing shibboleth.te Rules
Exercising SELinux denials
Stub out the new shibboleth.te file
Iteratively Use audit2allow to Add Rules and Test Your Change
Big Data Support
Data Capture Module (DCM)
Install a DCM
Downloading rsync scripts via Dataverse API
How a DCM reports checksum success or failure to Dataverse
Steps to set up a DCM mock for Development
Troubleshooting
Repository Storage Abstraction Layer (RSAL)
Configuring the RSAL Mock
Configuring download via rsync
Workflows
Administration
Available Steps
log
pause
http/sr