Merge "Updated Docs to Match Dockerfile"
This commit is contained in:
@@ -52,17 +52,21 @@ Run the Craton Docker Image
|
||||
|
||||
* First, go to craton directory and build the Docker image::
|
||||
|
||||
$ sudo docker build -t craton-api .
|
||||
$ sudo docker build -t craton-api:latest .
|
||||
|
||||
* And finally, run the docker image::
|
||||
|
||||
$ sudo docker run craton-api -d
|
||||
$ sudo docker run -t --name craton-api -p 127.0.0.1:8080:8080 -d craton-api:latest
|
||||
|
||||
|
||||
-------------------
|
||||
Calling into Craton
|
||||
-------------------
|
||||
|
||||
* To generate a sample data set, use the following command::
|
||||
|
||||
$ python tools/generate_fake_data.py --url http://127.0.0.1:8080/v1 --user demo --project b9f10eca66ac4c279c139d01e65f96b4 --key demo
|
||||
|
||||
* Now, let's run an API call against Craton running in the container. First, we need to enumerate the running Docker images::
|
||||
|
||||
$ sudo docker ps
|
||||
@@ -93,5 +97,5 @@ Command Cheat-Sheet
|
||||
|
||||
$ docker exec -it craton-api bash # for a bash shell, etc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user