-
Notifications
You must be signed in to change notification settings - Fork 57
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
aws-lambda-cpp-0.2.6 unable to be installed, preinstall.sh failure #10
Comments
problems like this would go away with #8 |
Issue persists as of the time of writing. |
So, here's another workaround if you don't want to fork this repo: RUN groupadd -g 1001 lambda
RUN useradd -r -u 1001 -g lambda lambda
RUN mkdir -p /home/lambda
RUN chown -R lambda:lambda /home/lambda
RUN chown -R lambda:lambda ${FUNCTION_DIR}
USER lambda
# do your npm/yarn install
USER root A four-digit UID/GID works fine here. |
This was fixed with: #46 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to do
RUN npm install [email protected]
It fails for the following reason:
The error appears to be when unzip aws-lambda-cpp-0.2.6 in the preinstall script.
This is not reproducible locally, but on the automatic pipleline, you can see this.
The root cause is, most of the pipelines having the limitation:
However, the uid and gid I received is
uid 1515433866, gid 1896053708
.May need to investigate what change has caused the ownership switch when installing aws-lambda-cpp
The quick workaround is to add
--no-same-owner
in the tar command.Reference: golangci/golangci-lint#752
The text was updated successfully, but these errors were encountered: