domino logo
5.0
  • Tech Ecosystem
  • Get Started
  • Domino Cloud
  • Collaborate
  • Projects
  • Work with Data
  • Workspaces
  • Environments
  • Executions
  • Deploy Models and Apps
  • Model Monitoring
  • Organizations
  • Security and Credentials
  • Notifications
  • Search
  • Domino CLI
  • Troubleshooting
  • Get Help
domino logo
About Domino
Domino Data LabKnowledge BaseData Science BlogTraining
User Guide
>
Environments
>
Customize Environments
>
Use Partner Environments
>
Use Stata as a Workspace

Use Stata as a Workspace

Stata® statistical software provides all the features you need for data science and inference–data manipulation, exploration, visualization, statistics, reporting, and reproducibility.

Stata has the following versions:

  • Basic Edition (BE)

  • Standard Edition (SE)

  • Multiprocessor Edition (MP)

Note
Get data from license file

To use a Stata workspace in Domino you must have a valid Stata license file. The license from Stata comes in a PDF file. You need the following data from this file:

  • Licensed software version (either MP, SE, or BE)

  • Serial number (12-digit number)

  • Code (series of nine 4-character codes)

  • Authorization (4-character code)

Create a license file
  1. Open the Stata environment in Domino.

  2. Right-click the background and go to applications > shells > bash.

  3. Go to the Stata program directory:

    cd /usr/local/stata
  4. As superuser, run the Stata init program:

    sudo ./stinit
  5. Follow the prompts to enter the serial number, code, and authorization.

  6. Follow the additional prompts to enter the organization name and location.

    Note

Completing this process generates the Stata license file stata.lic in the stata directory. Copy the contents of this file to a safe location.

Create environment
  1. When you create a Domino workspace environment for Stata, use the following custom base image:

    quay.io/domino/stata:17
  2. Update the Dockerfile instructions with the following Docker commands.

    ENV STATA_VERSION="MP"
    RUN apply-license “<url_to_license_file>”

Ensure the STATA_VERSION matches the customers' licensed version. The version must be MP, SE, or BE.

  1. Paste the following code into the environments pluggable workspace properties.

    stata:
        title: "Stata"
        iconUrl: "https://raw.githubusercontent.com/dominodatalab/partner-resources/main/assets/workspaces/stata/statamp.png"
        start: [ "/opt/domino/workspaces/stata/start" ]
        httpProxy:
            port: 8080
            internalPath: "/{{ownerUsername}}/{{projectName}}/{{sessionPathComponent}}/{{runId}}/#/?username=domino&password=domino"
            rewrite: false

    See the following for more resources:

    • Stata Support Center

    • Stata Documentation

    • Stata Training

    • Stata Examples and Datasets

    • PyStata—Python and Stata

Domino Data LabKnowledge BaseData Science BlogTraining
Copyright © 2022 Domino Data Lab. All rights reserved.