Skip to content

Conversation

kleisauke
Copy link
Collaborator

@kleisauke kleisauke commented Jun 1, 2023

In favor of /etc/bash.bashrc, which is only read for interactive shells.

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I didn't know about that.

@trzecieu WDYT?

@kleisauke kleisauke force-pushed the docker-entrypoint branch from 96453c5 to 3d65b06 Compare June 1, 2023 16:40
@kleisauke kleisauke changed the title Docker: use a Docker entrypoint script Docker: use a entrypoint script Jun 1, 2023
@kleisauke kleisauke force-pushed the docker-entrypoint branch from 04842b1 to 94b535a Compare June 1, 2023 17:51
@kleisauke
Copy link
Collaborator Author

Ah, I forgot that this would break extended Docker images, for example:

FROM emscripten/emsdk:3.1.40

RUN embuilder build zlib
$ docker build -t test .
STEP 1/2: FROM emscripten/emsdk:3.1.40
STEP 2/2: RUN embuilder build zlib
/bin/sh: 1: embuilder: not found
Error: building at STEP "RUN embuilder build zlib": while running runtime: exit status 127

@sbc100
Copy link
Collaborator

sbc100 commented Jun 1, 2023

Maybe still worth landing this, but while preserving the PATH with a comment?

@kleisauke kleisauke force-pushed the docker-entrypoint branch from de0fb21 to 4c03d6f Compare June 3, 2023 10:12
@sbc100
Copy link
Collaborator

sbc100 commented Jun 28, 2023

Can you rebase this change? (assuming we still want to land it?)

kleisauke added 2 commits July 6, 2023 14:05
In favor of `/etc/bash.bashrc`, which is only read for interactive
shells.
@kleisauke kleisauke force-pushed the docker-entrypoint branch from 4c03d6f to ee49446 Compare July 6, 2023 12:07
@kleisauke
Copy link
Collaborator Author

Just rebased, sorry for the delay.

@sbc100 sbc100 merged commit e28e476 into emscripten-core:main Jul 6, 2023
@kleisauke kleisauke deleted the docker-entrypoint branch July 6, 2023 14:44
shlomif pushed a commit to shlomif/emsdk that referenced this pull request Sep 29, 2023
In favor of `/etc/bash.bashrc`, which is only read for interactive
shells.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants