Dockerized Application Access
This page discusses accessing and using Stardog applications in your browser from a Docker container.
Page Contents
Stardog Explorer
Dockerized Stardog Explorer is only available upon request and is not included in any Stardog trial offering.
Once you have the docker image for Explorer you would like to run.
-
From the parent folder containing the docker image, enter
docker run --name=stardog-explorer -p 8888:8080 -d stardog/stardog-explorer:current
- Note the first number, the one before the
:
in the-p 8888:8080
argument, is the port Explorer will run on locally. This can be any port number you choose, but note that in later steps, we’re assuming8888
- The
--name=stardog-explorer
argument names the container as “stardog-explorer” so that you can easily reference it later; you could choose another name here, if you’d like.
- Note the first number, the one before the
-
When the command in step 1 completes successfully, you should see a long string ID printed out in the terminal – this is the ID of the running Docker container; you can ignore it for present purposes. You can now access Explorer in your browser by going to http://localhost:8888, again, substituting whatever port number you chose.
At this point, you can stop and start the container whenever you need it, running docker stop stardog-explorer
and docker start stardog-explorer
, respectively (using whatever name you provided in step 1, above). The Docker Daemon and the Explorer container must be running to access Explorer. If Explorer is not accessible please remember to start Docker, as it may not start automatically on startup.
Upgrading Explorer via Docker
To upgrade the in-browser version of Stardog Explorer running via Docker, simply open a terminal and run:
docker stop stardog-explorer && docker rm stardog-explorer
Again, using whatever name you provided in step 1, above. Then, repeat steps 1 and 2, above.
Stardog Designer
Stardog Designer is only available with a Stardog Cloud Account at cloud.stardog.com.
Stardog Studio
If you want to run Studio in the browser yourself, it is distributed in a pre-configured Docker image via DockerHub. Before you get started, you should get Docker if you don’t already have it installed and select a port on your local machine for Studio to be available on in your browser (the steps below use port number 8888; make sure to substitute whatever number you’re going to use, if it’s a different one).
To get the latest version of in-browser Studio, perform the following steps:
-
Open a command line terminal
-
Enter the following:
docker pull stardog/stardog-studio:current
-
Once the command in step 2 completes, enter
docker run --name=stardog-studio -p 8888:8080 -d stardog/stardog-studio:current
- Note the first number, the one before the
:
in the-p 8888:8080
argument, is the port Studio will run on locally. This can be any port number you choose, but note that in later steps, we’re assuming8888
- The
--name=stardog-studio
argument names the container as “stardog-studio” so that you can easily reference it later; you could choose another name here, if you’d like.
- Note the first number, the one before the
-
When the command in step 3 completes successfully, you should see a long string ID printed out in the terminal – this is the ID of the running Docker container; you can ignore it for present purposes. You can now access Studio in your browser by going to http://localhost:8888, again, substituting whatever port number you chose.
At this point, you can stop and start the container whenever you need it, running docker stop stardog-studio
and docker start stardog-studio
, respectively (using whatever name you provided in step 3, above). The Docker Daemon and the Studio container must be running to access in-browser Studio. If Studio is not accessible please remember to start Docker, as it may not start automatically on startup.
Upgrading Studio via Docker
To upgrade the in-browser version of Stardog Studio running via Docker, simply open a terminal and run:
docker stop stardog-studio && docker rm stardog-studio
Again, using whatever name you provided in step 3, above. Then, repeat steps 2 through 4, above.