Giter Site home page Giter Site logo

Comments (1)

trzecieu avatar trzecieu commented on May 26, 2024

Hi!
Can you please tell me which image do you use? All images have $EMSDK variable being set.

> docker run --rm -it trzeci/emscripten:1.39.16-fastcomp bash -c 'echo $EMSDK'
/emsdk_portable

> docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c 'echo $EMSDK'
/emsdk_portable

And:

> docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c ' $EMSDK/upstream/emscripten/tools/file_packager.py --help'
Remember to build the main file with  -s FORCE_FILESYSTEM=1  so that it includes support for loading this file package
Nothing to do!

Just a sanity check:
There is a difference between single quote:

docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c 'echo $EMSDK'

and double quote:

docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c "echo $EMSDK"

In case of double quote - the bash interpreter resolves variable before executing the command - effectively it will look for $EMSDK on the host machine, so effectively it will be the same like:

docker run --rm -it trzeci/emscripten:1.39.16-upstream echo $EMSDK

In case of single quote - the string is not interpolated and passed in a raw form to the bash interpreter inside the docker image, and there it will be evaluated - effectively $EMSDK will be resolved to the correct value.

from emscripten-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.