Skip to content

Commit

Permalink
Cleanup location of docs and example files (XRPLF#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-robobug authored Feb 20, 2024
1 parent 62f55a7 commit 27fe35a
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 30 deletions.
2 changes: 1 addition & 1 deletion CMake/install/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set (CMAKE_INSTALL_PREFIX ${CLIO_INSTALL_DIR})

install (TARGETS clio_server DESTINATION bin)

file (READ example-config.json config)
file (READ docs/examples/config/example-config.json config)
string (REGEX REPLACE "./clio_log" "/var/log/clio/" config "${config}")
file (WRITE ${CMAKE_BINARY_DIR}/install-config.json "${config}")
install (FILES ${CMAKE_BINARY_DIR}/install-config.json DESTINATION etc RENAME config.json)
Expand Down
23 changes: 0 additions & 23 deletions RELEASENOTES.md

This file was deleted.

4 changes: 2 additions & 2 deletions docker/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ RUN source /opt/rh/devtoolset-11/enable && cd /tmp/clio && \
RUN mkdir output
RUN strip clio/build/clio_server && strip clio/build/clio_tests
RUN cp clio/build/clio_tests output/ && cp clio/build/clio_server output/
RUN cp clio/example-config.json output/example-config.json
RUN cp clio/docs/examples/config/example-config.json output/example-config.json

FROM centos:7
COPY --from=build /tmp/output /clio
RUN mkdir -p /opt/clio/etc && mv /clio/example-config.json /opt/clio/etc/config.json
RUN mkdir -p /opt/clio/etc && mv /clio/docs/examples/config/example-config.json /opt/clio/etc/config.json

CMD ["/clio/clio_server", "/opt/clio/etc/config.json"]
2 changes: 1 addition & 1 deletion docs/configure-clio.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Clio needs access to a `rippled` server in order to work. The following configur

- A port to handle gRPC requests, with the IP(s) of Clio specified in the `secure_gateway` entry

The example configs of [rippled](https://github.com/XRPLF/rippled/blob/develop/cfg/rippled-example.cfg) and [Clio](../example-config.json) are set up in a way that minimal changes are required.
The example configs of [rippled](https://github.com/XRPLF/rippled/blob/develop/cfg/rippled-example.cfg) and [Clio](../docs/examples/config/example-config.json) are set up in a way that minimal changes are required.
When running locally, the only change needed is to uncomment the `port_grpc` section of the `rippled` config.

If you're running Clio and `rippled` on separate machines, in addition to uncommenting the `port_grpc` section, a few other steps must be taken:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ If no override is present for a given channel, that channel will log at the seve
The log channels that can be overridden are: `Backend`, `WebServer`, `Subscriptions`, `RPC`, `ETL` and `Performance`.

> [!NOTE]
> See [example-config.json](../example-config.json) for more details.
> See [example-config.json](../docs/examples/config/example-config.json) for more details.
## `log_to_console`

Expand Down
2 changes: 1 addition & 1 deletion docs/metrics-and-static-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To completely disable Prometheus metrics add `"prometheus": { "enabled": false }

It is important to know that Clio responds to Prometheus request only if they are admin requests. If you are using the admin password feature, the same password should be provided in the Authorization header of Prometheus requests.

You can find an example docker-compose file, with Prometheus and Grafana configs, in [examples/infrastructure](../examples/infrastructure/).
You can find an example docker-compose file, with Prometheus and Grafana configs, in [examples/infrastructure](../docs/examples/infrastructure/).

## Using `clang-tidy` for static analysis

Expand Down
2 changes: 1 addition & 1 deletion docs/run-clio.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ All of the above are optional.
Clio will fallback to hardcoded defaults when these values are not specified in the config file, or if the configured values are outside of the minimum and maximum supported versions hardcoded in [src/rpc/common/APIVersion.h](../src/rpc/common/APIVersion.hpp).

> [!TIP]
> See the [example-config.json](../example-config.json) for more details.
> See the [example-config.json](../docs/examples/config/example-config.json) for more details.

0 comments on commit 27fe35a

Please sign in to comment.