diff --git a/README.md b/README.md index 022a7ac1ae81b3a862cc6a842e2a5d4b0e0e7c03..772c2f03bd4080f73f4fc26bf625d8033756b3c4 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,18 @@ Installation ------------- To have a functional ICG application the following steps can be used. + - Download the full content of this repository - - Build the doxker image launching inside the downloaded folder the command: docker build . + - Build the docker image launching the following command: docker build -t icg-image:0.1 . - Create a volume for the container: docker volume create ICG-volume - - Run the container: docker run --mount source=ICG-volume,target=/opt -p 5000:5000 <image_name> + - Run the container: docker run --mount source=ICG-volume,target=/opt -p 5000:5000 icg-image:0.1 User manual ------------ To use the now running ICG docker container we can call the available REST API. -The API is available in loccalhost at port 5000, the application path "/". (ex: http://localhost:5000/) -Sending a post request at this endpoint with the indicated json body (see parameters.json as an example body) it will respond with a .tar.gz file containing all the required IaC files. \ No newline at end of file +The API is available at http://localhost:5000/ . +Sending a POST request at this endpoint with the indicated json body (see parameters.json as an example body) it will respond with a .tar.gz file containing all the required IaC files.: + + - curl --location --request POST localhost:5000/ --header "Content-Type: application/json" --data "@parameters.json" --output "OutputIaC.tar.gz" diff --git a/__pycache__/ansibleBuilder.cpython-39.pyc b/__pycache__/ansibleBuilder.cpython-39.pyc index 8a5944766034d7c4ed1d041f5216473e39dca534..245f04603423cbbd1fc1aaee129825259c9264d9 100644 Binary files a/__pycache__/ansibleBuilder.cpython-39.pyc and b/__pycache__/ansibleBuilder.cpython-39.pyc differ diff --git a/__pycache__/ansibleUtils.cpython-39.pyc b/__pycache__/ansibleUtils.cpython-39.pyc index 7071c72d5feeea12f8fcc2bafb97aad4d896ded6..0ba03ad252deaa81133f89e1de3929d6ac1ee814 100644 Binary files a/__pycache__/ansibleUtils.cpython-39.pyc and b/__pycache__/ansibleUtils.cpython-39.pyc differ