Skip to content

Commit

Permalink
renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Pennati committed May 13, 2024
1 parent cf6c3b6 commit add74c9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ docker logs odm-opa-server
Build the Docker image of the application and run it.

```bash
docker build -t odm-platform-up-policy-engine-opa-server-app . -f Dockerfile
docker build -t odm-platform-up-validator-opa-server-app . -f Dockerfile
```

### Run application
Expand All @@ -122,26 +122,26 @@ Run the Docker image.
*Note: Before executing the following commands remove the argument `--net host` if OPA server is not running on `localhost`*

```bash
docker run --name odm-platform-up-policy-engine-opa-server-app -p 9009:9009 --net host odm-platform-up-policy-engine-opa-server-app
docker run --name odm-platform-up-validator-opa-server-app -p 9009:9009 --net host odm-platform-up-validator-opa-server-app
```

### Stop application

```bash
docker stop odm-platform-up-policy-engine-opa-server-app
docker stop odm-platform-up-validator-opa-server-app
docker stop odm-opa-server
```
To restart a stopped application execute the following commands:

```bash
docker start odm-opa-server
docker start odm-platform-up-policy-engine-opa-server-app
docker start odm-platform-up-validator-opa-server-app
```

To remove a stopped application to rebuild it from scratch execute the following commands :

```bash
docker rm odm-platform-up-policy-engine-opa-server-app
docker rm odm-platform-up-validator-opa-server-app
docker rm odm-opa-server
```

Expand Down Expand Up @@ -205,7 +205,7 @@ docker-compose build --no-cache

You can invoke REST endpoints through *OpenAPI UI* available at the following url:

* [http://localhost:9009/api/v1/up/policy-engine/swagger-ui/index.html](http://localhost:9009/api/v1/up/policy-engine/swagger-ui/index.html)
* [http://localhost:9009/api/v1/up/validator/swagger-ui/index.html](http://localhost:9009/api/v1/up/validator/swagger-ui/index.html)

## OPA server

Expand Down
4 changes: 2 additions & 2 deletions generate-full-redoc-static-html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
mkdir "$DOC_DIR"

# Find all redoc-static.html files
REDOC_FILE="policy-engine-opa-server/target/redoc-static.html"
REDOC_FILE="validator-opa-server/target/redoc-static.html"

# Check if any redoc-static.html files were found
if [ -z "$REDOC_FILE" ]; then
Expand All @@ -26,7 +26,7 @@ if [ -z "$REDOC_FILE" ]; then
fi

# Copy and rename all redoc-static.html files to the aggregated documentation directory
NEW_NAME="${DOC_DIR}/policy-engine-opa-server.html"
NEW_NAME="${DOC_DIR}/validator-opa-server.html"
cp "$REDOC_FILE" "$NEW_NAME"
echo "Renamed and copied $REDOC_FILE to $NEW_NAME"

Expand Down
2 changes: 1 addition & 1 deletion validator-opa-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ License.
</execution>
</executions>
<configuration>
<apiDocsUrl>http://localhost:9009/api/v1/up/policy-engine/v3/api-docs</apiDocsUrl>
<apiDocsUrl>http://localhost:9009/api/v1/up/validator/v3/api-docs</apiDocsUrl>
<outputFileName>openapi.json</outputFileName>
<outputDir>${project.build.directory}</outputDir>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ server:
error:
include-message: always
servlet:
context-path: /api/v1/up/policy-engine
context-path: /api/v1/up/validator
timeout:
seconds: 30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ server:
error:
include-message: always
servlet:
context-path: /api/v1/up/policy-engine
context-path: /api/v1/up/validator
timeout:
seconds: 30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ server:
error:
include-message: always
servlet:
context-path: /api/v1/up/policy-engine
context-path: /api/v1/up/validator
timeout:
seconds: 30

Expand Down

0 comments on commit add74c9

Please sign in to comment.