Git Product home page Git Product logo

Comments (2)

krishnasrinivas avatar krishnasrinivas commented on May 24, 2024

Do you have node-gyp installed? Can you paste me output of npm install?

from wetty.

lfrancois avatar lfrancois commented on May 24, 2024

OK I don't know what happened last time. It works now :) My full log below!

root@staging01 ~ # git clone https://github.com/krishnasrinivas/wetty.git
Cloning into 'wetty'...
remote: Counting objects: 179, done.
Receiving objects: 100% (179/179), 373.32 KiB | 0 bytes/s, done.
remote: Total 179 (delta 0), reused 0 (delta 0), pack-reused 179
Resolving deltas: 100% (86/86), done.
Checking connectivity... done.
root@staging01 ~ # cd wetty/
root@staging01 ~/wetty # ls
app.js  bin  Dockerfile  Gruntfile.js  LICENSE  package.json  public  README.md  terminal.png
root@staging01 ~/wetty # docker build .
Sending build context to Docker daemon 1.024 MB
Sending build context to Docker daemon
Step 0 : FROM node:0.10.38
0.10.38: Pulling from node
64e5325c0d9d: Pull complete
bf84c1d84a8f: Pull complete
87de57de6955: Pull complete
6a974bea7c0d: Pull complete
4b708e6c0f6c: Pull complete
313c5b9e573c: Pull complete
57677419598c: Pull complete
3119a4ab2aa4: Pull complete
a214e95de806: Pull complete
e60ab1a05298: Already exists
node:0.10.38: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:e2a5045398e7f867e51c73eee2b3e6ec64716d1907c4c37acb5dee0493154d95
Status: Downloaded newer image for node:0.10.38
 ---> e60ab1a05298
Step 1 : MAINTAINER Nathan LeClaire <[email protected]>
 ---> Running in f9d2c3ece1ff
 ---> 77ce142b9724
Removing intermediate container f9d2c3ece1ff
Step 2 : ADD . /app
 ---> 69942346c255
Removing intermediate container 8fffca6da6ac
Step 3 : WORKDIR /app
 ---> Running in 53d005909752
 ---> c032cc467d68
Removing intermediate container 53d005909752
Step 4 : RUN npm install
 ---> Running in 817c05550880
npm WARN deprecated [email protected]: use serve-favicon module

> [email protected] install /app/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/app/node_modules/websocket/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  COPY Release/validation.node
make: Leaving directory '/app/node_modules/websocket/build'

> [email protected] install /app/node_modules/pty.js
> node-gyp rebuild

make: Entering directory '/app/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
  SOLINK_MODULE(target) Release/obj.target/pty.node
  COPY Release/pty.node
make: Leaving directory '/app/node_modules/pty.js/build'
[email protected] node_modules/grunt-mkdir

[email protected] node_modules/grunt-contrib-clean
└── [email protected]

[email protected] node_modules/optimist
├── [email protected]
└── [email protected]

[email protected] node_modules/grunt-shell
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/grunt-git
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/load-grunt-tasks
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected])

[email protected] node_modules/grunt
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/websocket
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
└── [email protected] ([email protected])

[email protected] node_modules/pty.js
├── [email protected]
└── [email protected]
 ---> 4573e044da51
Removing intermediate container 817c05550880
Step 5 : RUN apt-get update
 ---> Running in 2f81f1072f09
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://httpredir.debian.org jessie InRelease [134 kB]
Get:3 http://httpredir.debian.org jessie-updates InRelease [123 kB]
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [167 kB]
Get:5 http://httpredir.debian.org jessie/main amd64 Packages [9038 kB]
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [3614 B]
Fetched 9529 kB in 1s (5283 kB/s)
Reading package lists...
 ---> 5ff0e2fe849f
Removing intermediate container 2f81f1072f09
Step 6 : RUN apt-get install -y vim
 ---> Running in dd78a759f2b7
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libgpm2 vim-common vim-runtime
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 vim vim-common vim-runtime
0 upgraded, 4 newly installed, 0 to remove and 21 not upgraded.
Need to get 6218 kB of archives.
After this operation, 28.9 MB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/main libgpm2 amd64 1.20.4-6.1+b2 [34.0 kB]
Get:2 http://httpredir.debian.org/debian/ jessie/main vim-common amd64 2:7.4.488-7 [184 kB]
Get:3 http://httpredir.debian.org/debian/ jessie/main vim-runtime all 2:7.4.488-7 [5047 kB]
Get:4 http://httpredir.debian.org/debian/ jessie/main vim amd64 2:7.4.488-7 [953 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 6218 kB in 0s (6869 kB/s)
Selecting previously unselected package libgpm2:amd64.
(Reading database ... 27882 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.4-6.1+b2_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.4-6.1+b2) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../vim-common_2%3a7.4.488-7_amd64.deb ...
Unpacking vim-common (2:7.4.488-7) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../vim-runtime_2%3a7.4.488-7_all.deb ...
Adding 'diversion of /usr/share/vim/vim74/doc/help.txt to /usr/share/vim/vim74/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim74/doc/tags to /usr/share/vim/vim74/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:7.4.488-7) ...
Selecting previously unselected package vim.
Preparing to unpack .../vim_2%3a7.4.488-7_amd64.deb ...
Unpacking vim (2:7.4.488-7) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Setting up libgpm2:amd64 (1.20.4-6.1+b2) ...
Setting up vim-common (2:7.4.488-7) ...
Setting up vim-runtime (2:7.4.488-7) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.4.488-7) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
Processing triggers for libc-bin (2.19-18) ...
 ---> 4e6470060a32
Removing intermediate container dd78a759f2b7
Step 7 : RUN useradd -d /home/term -m -s /bin/bash term
 ---> Running in f86c8a83d7e3
 ---> 3f3935d65f6d
Removing intermediate container f86c8a83d7e3
Step 8 : RUN echo 'term:term' | chpasswd
 ---> Running in 2a14757a67de
 ---> 2c6abb1eae87
Removing intermediate container 2a14757a67de
Step 9 : EXPOSE 3000
 ---> Running in 4dbb2a1a117b
 ---> 5c573322bdb6
Removing intermediate container 4dbb2a1a117b
Step 10 : ENTRYPOINT node
 ---> Running in 460fb0c8dae7
 ---> eccef410a10d
Removing intermediate container 460fb0c8dae7
Step 11 : CMD app.js -p 3000
 ---> Running in c331a041e0e6
 ---> 453fffa28c25
Removing intermediate container c331a041e0e6
Successfully built 453fffa28c25
root@staging01 ~/wetty #

root@staging01 ~/wetty # docker run --name term -p 3000 -dt 453fffa28c25
2674b51b1050143a94dc5c2ceb089d4dff51ce938ba35d7f1e78e42ae3dc9aed
root@staging01 ~/wetty # 

root@staging01 ~/wetty # docker ps
CONTAINER ID        IMAGE               COMMAND                CREATED              STATUS              PORTS                     NAMES
2674b51b1050        453fffa28c25        "node app.js -p 3000   About a minute ago   Up About a minute   0.0.0.0:32768->3000/tcp   term               
root@staging01 ~/wetty #

root@staging01 ~/wetty # docker run --name term -p 3000 -dt nathanleclaire/wetty
ca4ead8e3951523195c3ae4ce2bcaf89f72f3a53d89f8d1f88f2999ab0c4c73d
root@staging01 ~/wetty # docker ps
CONTAINER ID        IMAGE                  COMMAND                CREATED             STATUS              PORTS                     NAMES
ca4ead8e3951        nathanleclaire/wetty   "node app.js -p 3000   3 seconds ago       Up 3 seconds        0.0.0.0:32769->3000/tcp   term               
root@staging01 ~/wetty # 

from wetty.

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.