Skip to content

Commit

Permalink
Code generator: Update generator to chown docs and config definition …
Browse files Browse the repository at this point in the history
…directories (#4819)
  • Loading branch information
TymoshokDmytro authored Jul 19, 2021
1 parent 40da541 commit a66cf32
Showing 1 changed file with 7 additions and 1 deletion.
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/*

0 comments on commit a66cf32

Please sign in to comment.