Giter Site home page Giter Site logo

deno-docker's Introduction

deno-docker's People

Contributors

andyfleming avatar boisvertdany avatar maxmcd avatar pietvanzoen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deno-docker's Issues

Issue when running deno on a machine with 1 CPU

I'm having issues running Deno in this image, specifically when running in a container on an Ubuntu server. I'm a little out of my depth here so I appreciate this may not be an issue with you package, but perhaps you can still help.

Running locally on MacOS the image runs as expected.

MacOS: 10.14.4 (18E226)
Docker version 18.09.2, build 6247962

When attempting to run any file with Deno inside the image on an Ubuntu machine Deno just ends up hanging.

> docker run -it maxmcd/deno:latest bash
root@eedc4941409a:/# deno --version
deno: 0.3.7
v8: 7.4.238
typescript: 3.4.1
root@eedc4941409a:/# echo "console.log('foo')" > foo.ts
root@eedc4941409a:/# deno -AD ./foo.ts
DEBUG RS - mkdir -p /root/.cache/deno/gen
DEBUG RS - set dir perm to 493
DEBUG RS - mkdir -p /root/.cache/deno/deps
DEBUG RS - set dir perm to 493
DEBUG RS - mkdir -p /root/.cache/deno/deps/http
DEBUG RS - set dir perm to 493
DEBUG RS - mkdir -p /root/.cache/deno/deps/https
DEBUG RS - set dir perm to 493
DEBUG RS - root /root/.cache/deno
DEBUG RS - gen /root/.cache/deno/gen
DEBUG RS - deps /root/.cache/deno/deps
DEBUG RS - deps_http /root/.cache/deno/deps/http
DEBUG RS - deps_https /root/.cache/deno/deps/https
DEBUG RS - Deno isolate init with snapshots.
DEBUG RS - resolve_module specifier ./foo.ts referrer .
DEBUG RS - msg_from_js Start sync true
DEBUG JS - cwd /
DEBUG JS - args [ "./foo.ts" ]
DEBUG RS - resolve_module specifier ./foo.ts referrer .
DEBUG RS - main_module file:///foo.ts
DEBUG RS - fetch_module_meta_data. specifier file:///foo.ts referrer .
DEBUG RS - resolve_module specifier file:///foo.ts referrer .
DEBUG RS - module_name: file:///foo.ts, filename: /foo.ts
DEBUG RS - fetch local or reload file:///foo.ts is_module_remote false
DEBUG RS - found local source

After this it hangs indefinitely.

Ubuntu 18.04.2 LTS (Bionic Beaver)
Docker version 18.09.5, build e8ff056

Any tips would be appreciated.

deno cannot run in slim version

first, deno cannot find, so I use ldd to see errors

Error loading shared library libstdc++.so.6: No such file or directory (needed by deno)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd015ac1000)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by deno)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd015ac1000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by deno)

so I run this:

apk add libc6-compat
apk add libstdc++

But it goes like this, I cannot resolve it
tried sgerrand/alpine-pkg-glibc failed

> ldd deno
	/lib64/ld-linux-x86-64.so.2 (0x7f993e800000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f993e800000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f993e4ae000)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f993e800000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f993e29c000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f993e800000)
Error relocating deno: backtrace: symbol not found
Error relocating deno: backtrace_symbols: symbol not found

[QUESTION] Using the master build setup as a development docker

This is cool initiative. Thanks for that.

I actually realize that this is already there while I actually wrote the whole thing myself ๐Ÿ˜„

I am going to use this instead, now, is your intention to have the source copied into $GOPATH and built into it into the docker is to somehow create a "shared folder" using -v option around that ?

Basically how will you use the same setup for development? I am trying to use shared folders and making the docker slim here, but this seems to be taking a different approach. Just wanted to know.

Thanks in advance.

deno2

hope support branch choose

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.