Skip to content

Commit

Permalink
Remove default /etc/connector
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 committed Feb 15, 2024
1 parent 1204bae commit c304188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ RUN set -ex; \
libssl-dev
COPY --from=build /app/target/release/ndc_hub_example ./ndc_hub_example
ENTRYPOINT [ "/ndc_hub_example" ]
CMD [ "serve" ]
CMD [ "serve", "--configuration", "/etc/connector" ]
21 changes: 3 additions & 18 deletions rust-connector-sdk/src/default_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ enum Command {

#[derive(Clone, Parser)]
struct ServeCommand {
#[arg(
long,
value_name = "DIRECTORY",
env = "HASURA_CONFIGURATION_DIRECTORY",
default_value = "/etc/connector"
)]
#[arg(long, value_name = "DIRECTORY", env = "HASURA_CONFIGURATION_DIRECTORY")]
configuration: PathBuf,
#[arg(long, value_name = "ENDPOINT", env = "OTEL_EXPORTER_OTLP_ENDPOINT")]
otlp_endpoint: Option<String>,
Expand All @@ -81,25 +76,15 @@ struct ServeCommand {
struct TestCommand {
#[arg(long, value_name = "SEED", env = "SEED")]
seed: Option<String>,
#[arg(
long,
value_name = "DIRECTORY",
env = "HASURA_CONFIGURATION_DIRECTORY",
default_value = "/etc/connector"
)]
#[arg(long, value_name = "DIRECTORY", env = "HASURA_CONFIGURATION_DIRECTORY")]
configuration: PathBuf,
#[arg(long, value_name = "DIRECTORY", env = "HASURA_SNAPSHOTS_DIR")]
snapshots_dir: Option<PathBuf>,
}

#[derive(Clone, Parser)]
struct ReplayCommand {
#[arg(
long,
value_name = "DIRECTORY",
env = "HASURA_CONFIGURATION_DIRECTORY",
default_value = "/etc/connector"
)]
#[arg(long, value_name = "DIRECTORY", env = "HASURA_CONFIGURATION_DIRECTORY")]
configuration: PathBuf,
#[arg(long, value_name = "DIRECTORY", env = "HASURA_SNAPSHOTS_DIR")]
snapshots_dir: PathBuf,
Expand Down

0 comments on commit c304188

Please sign in to comment.