Skip to content

Commit 52953b6

Browse files
TymoshokDmytrogl-pix
authored andcommitted
Code generator: Update generator to chown docs and config definition directories (#4819)
1 parent e413ed6 commit 52953b6

File tree

1 file changed

+7
-1
lines changed
  • airbyte-integrations/connector-templates/generator

1 file changed

+7
-1
lines changed

airbyte-integrations/connector-templates/generator/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ARG UID
44
ARG GID
55
ENV ENV_UID $UID
66
ENV ENV_GID $GID
7+
ENV DOCS_DIR "/airbyte/docs/integrations"
8+
ENV CONFIG_DIR "/airbyte/airbyte-config/init/src/main/resources/config"
79

810
RUN mkdir -p /airbyte
911
WORKDIR /airbyte/airbyte-integrations/connector-templates/generator
@@ -12,4 +14,8 @@ CMD npm install --silent --no-update-notifier && echo "INSTALL DONE" && \
1214
npm run generate "$package_desc" "$package_name" && \
1315
LAST_CREATED_CONNECTOR=$(ls -td /airbyte/airbyte-integrations/connectors/* | head -n 1) && \
1416
echo "chowning generated directory: $LAST_CREATED_CONNECTOR" && \
15-
chown -R $ENV_UID:$ENV_GID $LAST_CREATED_CONNECTOR/*
17+
chown -R $ENV_UID:$ENV_GID $LAST_CREATED_CONNECTOR/* && \
18+
echo "chowning docs directory: $DOCS_DIR" && \
19+
chown -R $ENV_UID:$ENV_GID $DOCS_DIR/* && \
20+
echo "chowning config directory: $CONFIG_DIR" && \
21+
chown -R $ENV_UID:$ENV_GID $CONFIG_DIR/*

0 commit comments

Comments
 (0)