Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generator: Update generator to chown docs and config definition directories #4819

Merged
merged 2 commits into from
Jul 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*