Commit Graph

17 Commits

Author SHA1 Message Date
Sam Clegg
9d00a82b6a Remove update-tags phase (#738)
Its not really very useful to cache the tot release in a local text
file.  Instead just fetch the revsion each time `install tot` is run.

This avoids folks accidentally installing "old" tot releases.

Also, make the output a little less chatty when looking up tot version.
2021-03-05 09:19:42 -08:00
Sam Clegg
9e96410d7f Update node version to 14.15.5 (latest TLS release) (#708)
See https://github.com/WebAssembly/binaryen/issues/3551
2021-02-12 16:47:20 -08:00
Harald Reingruber
8234fb3b95 Add git-lfs package to emsdk Docker image (#665)
Having LFS support already in the image saves some build time and allows a more consistent experience to other CI build images.
2020-12-11 13:26:07 -08:00
Sam Clegg
bfdfd61656 Fix sanity file generation in Dockerfile (#610)
We no longer ship the sanify file as part of the SDK but
expect it be generated on first use:
  https://github.com/WebAssembly/waterfall/pull/656

Also remove the Dockerfile itself from the docker image if
we include it then whenever you change anything in the
Dockerfile it invalides all the layers and forces a
completely rebuild.  This makes iterating on the image
very slow.
2020-09-10 16:14:40 -07:00
Kleis Auke Wolthuizen
645d276b5c Docker improvements (#571)
- Copy the current checkout to the Dockerfile.
- Add .dockerignore to exclude files while copying.
- Test tip-of-tree build within CI.
- Run the test suite outside the Docker image.
- Perform extra sanity tests.
- Switch to make commands for CircleCI.
- Improve Docker README.
2020-09-02 10:50:52 -07:00
Sam Clegg
147abfe46c Make emscripten directory world writable (#578)
Without this emscripten will default to using $HOME for the
emscripten cache rather than the embedded one.
2020-07-31 13:41:13 -07:00
Kleis Auke Wolthuizen
de08462b17 Cleanup Dockerfile. NFC. (#569)
- Remove unnecessary dependencies from build stage.
- Move binutils installation to first layer.
- Adjust indents and spacing.
- Merge ENV declarations into a single line.
- Split apt-get commands over multiple lines
2020-07-25 11:04:20 -07:00
Kleis Auke Wolthuizen
b5077e4642 Fix sanity file location within Dockerfile (#568)
Starting from 1.39.20 the .emscripten_sanity file has
been moved to upstream/emscripten/cache/sanity.txt.
2020-07-23 12:49:48 -07:00
Sam Clegg
d4383f4767 Fix docker build to not depend on emsdk_set_env.sh (#554)
This was an internal script that we used to generate up
until #544.   Now we avoid writing that file at all and
emsdk_env.sh is instead sourced directly.

This should fix the docker CI issues we have been having.
2020-07-14 16:22:16 -07:00
Piotr Paczkowski (trzeci.eu)
7f77b615c2 Add standard workdir for Dockerimage (#534)
As requested by @curiousdannii in https://github.com/trzecieu/emscripten-docker/issues/58#issuecomment-648760800
2020-06-27 01:51:21 +02:00
Sam Clegg
eff1d2e2f1 Drop "-upstream" suffix from docker image name (#530) 2020-06-24 16:55:32 -07:00
Sam Clegg
47c669a002 Update node directory in Dockerfile (#532) 2020-06-24 15:12:58 -07:00
Sam Clegg
dc74092927 Revert testing changes 2020-06-23 20:35:53 -07:00
Sam Clegg
25416b8ff7 Testing circleci auto-publish of docker image (#531) 2020-06-23 18:50:16 -07:00
Sam Clegg
d50b1d86f6 Simplify docker image in several ways (#523)
- `--embeddded` mode is the now the default
- embedded cache and ports is also the default
- emsdk now fully polulates the cache by default so no need to do that.
- always "activate" the SDK avoiding that need things to work without
  that.
- avoid making extra symlinks.
- remove python2
2020-06-22 17:19:12 -07:00
Nikolas Garofil
4dce416efa Docker fixes and updates (#461)
Dockerfile:
- Use the most recent stable debian (buster) instead of the previous one
- Build version 1.39.11 by default instead of 1.38.43
- Fix small typo in the comments

Makefile and README.MD: Fix incorrect name of image on dockerhub.
2020-04-06 08:58:16 -07:00
Piotr Paczkowski (trzeci.eu)
c56422590b Added dockerfiles form trzeci/emscripten-docker (#368)
As a continuation from: https://github.com/emscripten-core/emscripten/issues/8742

This PR provides adopted Dockerfile from https://github.com/trzecieu/emscripten-docker/blob/master/docker/trzeci/emscripten-fastcomp/Dockerfile which supports builds:
  * fastcomp
  * upstream

Features:
* An image can be build with fastcomp and upstream version of Emscripten SDK
* It applies some extra size optimizations (that might be removed in sake of clarity / stability)
* It creates conventional `1000:1000` user `emscripten`
* It creates extra entrypoint that mitigates running as non-root user (Some context: https://trzeci.eu/fixing-permission-of-files-created-from-docker/)
* It has simple-stupid tests performed during building
2019-10-11 11:21:47 -07:00