Skip to content

Instantly share code, notes, and snippets.

@pepyakin
Last active September 14, 2017 19:03
Show Gist options
  • Save pepyakin/e1767344747af85cee161a7615c586fb to your computer and use it in GitHub Desktop.
Save pepyakin/e1767344747af85cee161a7615c586fb to your computer and use it in GitHub Desktop.
Dockerfile for building and checking binaryen. Can be useful on macOS. See https://github.com/WebAssembly/binaryen/pull/1184#issuecomment-329430966
FROM ubuntu:trusty
RUN \
apt-get update && \
apt-get install -y build-essential cmake python curl
# Add source for nodejs,
# see https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
RUN apt-get install nodejs
COPY . /test
WORKDIR /test
RUN ./check.py --only-prepare
RUN rm CMakeCache.txt
RUN cmake .
RUN make -j2
@pepyakin
Copy link
Author

I just leave it here for googleability:

(downloading waterfall 13645: https://storage.googleapis.com/wasm-llvm/builds/mac/13645/wasm-binaries-13645.tbz2)
Traceback (most recent call last):
  File "./check.py", line 24, in <module>
    from scripts.test.shared import (
  File "/Users/pepyakin/dev/etc/binaryen/scripts/test/shared.py", line 249, in <module>
    fetch_waterfall()
  File "/Users/pepyakin/dev/etc/binaryen/scripts/test/shared.py", line 217, in fetch_waterfall
    downloaded = urllib2.urlopen(url).read().strip()
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment