-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Using --user flag causes issues since 16.5.1 #14
Comments
Hi. Thanks for the report. Nothing has been changed in the build script. Maybe the base node image got some breaking changes with 16.5.1 and in its chain: 16.5 and 16. I'll take a look at the weekend if there is something to do from my side. |
Hi @cascornelissen, could you check how it behaves when you use the original |
Looks like the problem is indeed related to This is not my area of expertise at all but it seems similar to nodejs/docker-node#1734? |
Hi @cascornelissen, there was an update of |
@satanTime, just checked and I'm still seeing the same issue with the latest version of |
Just did some testing and the requirement our CI/CD pipeline had earlier with regards to file ownership was loosened up a bit so we apparently don't need the |
I changed your code a bit for testing, and on my mac, I was able to execute docker pull satantime/puppeteer-node:16
cd ~/project/simple-node
DOCKER_USER=501:20 docker create --name example --user "${DOCKER_USER}" --mount "type=bind,source=${PWD},destination=/app" --workdir "/app" --rm satantime/puppeteer-node:16 /bin/sh -c "npm install && npm rebuild"
docker start --attach example The output on > postinstall
> husky install
husky - Git hooks installed
added 19 packages, changed 1 package, and audited 2064 packages in 6s
259 packages are looking for funding
run `npm fund` for details
9 vulnerabilities (7 high, 2 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
npm notice
npm notice New minor version of npm available! 8.11.0 -> 8.13.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.13.2>
npm notice Run `npm install -g [email protected]` to update!
npm notice The output on rebuilt dependencies successfully Maybe, somehow permissions under |
Yeah, it's definitely a permission issue on the |
Thanks for the update. I'm going to close the ticket, because it is still searchable. |
We use this container for visual testing in combination with Storybook and we're seeing an issue since a few days where the entire starting of the container seems to fail.
satantime/puppeteer-node:16
does not worksatantime/puppeteer-node:16.15.1
does not worksatantime/puppeteer-node:16.15.0
does workWe pull the image, create the container, add a file, and finally start the container using something similar to the snippet below.
This references a
start.sh
which, among other things, runsnpm rebuild
. When I mentioned the container is not working I meant that this file is executed but nothing in it seems to do, or at least output anything.Passing
DOCKER_USER
is needed for our Bamboo CI/CD setup and is generated using the command below, resulting in something like501:20
.Removing the
--user
flag fixes the issue locally but prevents our CI/CD setup from working correctly. Did something change between16.5.0
and16.5.1
that could cause this? I can't seem to locate any changelog and the history isn't helping either 😅The text was updated successfully, but these errors were encountered: