Chris (deprecated profile)
10/23/2020, 4:57 PMairbyte-integrations/bases/base-python/airbyte_protocol/models/airbyte_message.py
?
For some reason, when i run my ./gradlew build
it ends up with a new ownership by root:root
user and makes my command fails afterward because of permission access... ⁉️user
10/23/2020, 4:58 PMairbyte-integrations/bases/base-python/build.gradle
generateProtocolClassFiles
whoami
in generate-protocol-files.sh
and run ./gradlew generateProtocolClassFiles
--user "$(id -u):$(id -g)"
to the docker call?whoami
returns the user not root in the script shellls -l /tmp/airbyte_local/output_data/exchange_rate.csv
-rw-r--r-- 1 root root 13447 Oct 23 19:11 /tmp/airbyte_local/output_data/exchange_rate.csv
--user "$(id -u):$(id -g)"
to just the docker call in generate-protocol-files.sh
does it fix your problem?ARG USER_ID
ARG GROUP_ID
RUN addgroup --gid $GROUP_ID user
RUN adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user
USER user
Task :airbyte-integrations:bases:base-python:blackFormat FAILED
[python] .venv/bin/python -m black . --line-length 140
error: cannot format /home/runner/work/airbyte/airbyte/airbyte-integrations/bases/base-python/airbyte_protocol/models/airbyte_message.py: [Errno 13] Permission denied: '/home/runner/work/airbyte/airbyte/airbyte-integrations/bases/base-python/airbyte_protocol/models/airbyte_message.py'
generateProtocolClassFiles
is working the first time but not the secondgenerate-protocol-files.sh
, right?docker run
not building the image