diff --git a/airbyte-integrations/connector-templates/generator/Dockerfile b/airbyte-integrations/connector-templates/generator/Dockerfile index ce7a3b167625..bfbf9e484da5 100644 --- a/airbyte-integrations/connector-templates/generator/Dockerfile +++ b/airbyte-integrations/connector-templates/generator/Dockerfile @@ -4,6 +4,8 @@ ARG UID ARG GID ENV ENV_UID $UID ENV ENV_GID $GID +ENV DOCS_DIR "/airbyte/docs/integrations" +ENV CONFIG_DIR "/airbyte/airbyte-config/init/src/main/resources/config" RUN mkdir -p /airbyte WORKDIR /airbyte/airbyte-integrations/connector-templates/generator @@ -12,4 +14,8 @@ CMD npm install --silent --no-update-notifier && echo "INSTALL DONE" && \ npm run generate "$package_desc" "$package_name" && \ LAST_CREATED_CONNECTOR=$(ls -td /airbyte/airbyte-integrations/connectors/* | head -n 1) && \ echo "chowning generated directory: $LAST_CREATED_CONNECTOR" && \ - chown -R $ENV_UID:$ENV_GID $LAST_CREATED_CONNECTOR/* + chown -R $ENV_UID:$ENV_GID $LAST_CREATED_CONNECTOR/* && \ + echo "chowning docs directory: $DOCS_DIR" && \ + chown -R $ENV_UID:$ENV_GID $DOCS_DIR/* && \ + echo "chowning config directory: $CONFIG_DIR" && \ + chown -R $ENV_UID:$ENV_GID $CONFIG_DIR/*