Getting Started
Launchbox is primarily developed on macOS systems and is used on Ubuntu container images in the cloud. We are open to supporting other operating systems; please review our contribution guidelines if you would like to help add that support!
Requirements
If you're running on macOS, the only real requirement that isn't preinstalled is Docker.
Steps
-
Clone the Launchbox repo:
-
Enter the newly created launchbox folder:
-
Setup your
Update or add to.env
file:.env
as needed. In particular, if you intend to use any private repositories as the source for a service, you will need to create a Personal Access Token and setGIT_TOKEN
to that. -
Build the Docker container:
-
Start the Docker container:
-
In a new terminal, open the Launchbox dashboard:
-
Install our demo service:
- Go to the Services section of the dashboard and click the New Service button
- Enter the following:
- Service Identifier: demo
- Service Name: Launchbox Demo
- Repo URL: https://github.com/nasa-jpl/launchbox-demo-service
- Branch: main
- Environment Name: development
- Click the Create button
- On the new row in the All Services table, click the View button on the right
- Click the Deployments tab
- Click the Deploy button on the right of the top row
- Go to the Deploys section, wait a minute or so, and refresh a few times
until you see that the deployment you just triggered is complete
- Tip: You can also click the deployment's View button to see the progress of individual deployment steps. (This page auto-refreshes.)
-
Create a site using the demo service:
- Go to the Sites section and click the New Site button
- Give it a Site Identifier, choose the demo service, and click the Create button
- On the new row in the All Sites table, click the View button on the right
- Click the Hostnames tab
- In the new hostname field, enter
demo.launchbox.run
, then click Add Hostname - Click the link that appears in the Hostname column in the new row to open the demo site in a new tab