======================= Development Environment ======================= These instructions are oriented around Docker but the "classic" instructions we used for Dataverse 4 and 5 are still available at :doc:`classic-dev-env`. .. contents:: |toctitle| :local: .. _container-dev-quickstart: Quickstart ---------- First, install Java 17, Maven, and Docker. After cloning the `dataverse repo `_, run this: ``mvn -Pct clean package docker:run`` (Note that if you are Windows, you must run the command above in `WSL `_ rather than cmd.exe. See :doc:`windows`.) After some time you should be able to log in: - url: http://localhost:8080 - username: dataverseAdmin - password: admin1 Detailed Steps -------------- Install Java ~~~~~~~~~~~~ The recommended version is Java 17 because it's the version we test with. See https://github.com/IQSS/dataverse/pull/9764. On Mac and Windows, we suggest using `SDKMAN `_ to install Temurin (Eclipe's name for its OpenJDK distribution). Type ``sdk install java 17`` and then hit the "tab" key until you get to a version that ends with ``-tem`` and then hit enter. Alternatively you can download Temurin from https://adoptium.net (formerly `AdoptOpenJDK `_). On Linux, you are welcome to use the OpenJDK available from package managers. Install Maven ~~~~~~~~~~~~~ If you are using SKDMAN, run this command: ``sdk install maven`` Otherwise, follow instructions at https://maven.apache.org. Install and Start Docker ~~~~~~~~~~~~~~~~~~~~~~~~ Follow instructions at https://www.docker.com Be sure to start Docker. Git Clone Repo ~~~~~~~~~~~~~~ Fork https://github.com/IQSS/dataverse and then clone your fork like this: ``git clone git@github.com:[YOUR GITHUB USERNAME]/dataverse.git`` Build and Run ~~~~~~~~~~~~~ Change into the ``dataverse`` directory you just cloned and run the following command: ``mvn -Pct clean package docker:run`` Verify ~~~~~~ After some time you should be able to log in: - url: http://localhost:8080 - username: dataverseAdmin - password: admin1 Next Steps ---------- See the :doc:`/container/dev-usage` section of the Container Guide for tips on fast redeployment, viewing logs, and more. Getting Help ------------ Please feel free to reach out at https://chat.dataverse.org or https://groups.google.com/g/dataverse-dev if you have any difficulty setting up a dev environment!