Browse Source

update docker to build latest

pull/126/head
butlerx 8 years ago
parent
commit
28f20853bd
No known key found for this signature in database GPG Key ID: B37CA765BAA89170
  1. 8
      Dockerfile
  2. 2
      Gruntfile.js
  3. 4
      package.json
  4. 6
      public/index.html
  5. 13
      public/wetty/index.html
  6. 1456
      yarn.lock

8
Dockerfile

@ -1,11 +1,7 @@
FROM node:boron FROM node:boron
MAINTAINER Nathan LeClaire <nathan@docker.com> MAINTAINER Nathan LeClaire <nathan@docker.com>
ADD . /app ADD . /app
WORKDIR /app WORKDIR /app
RUN apt-get update && apt-get upgrade -y RUN apt-get update && apt-get upgrade -y && yarn install && yarn global add grunt && yarn build
RUN npm install
EXPOSE 3000 EXPOSE 3000
CMD yarn start
CMD node app.js

2
Gruntfile.js

@ -32,5 +32,5 @@ module.exports = grunt => {
grunt.initConfig(config); grunt.initConfig(config);
grunt.registerTask('update-hterm', ['mkdir:tmp', 'gitclone:hterm', 'shell:build_hterm', 'clean']); grunt.registerTask('default', ['mkdir:tmp', 'gitclone:hterm', 'shell:build_hterm', 'clean']);
}; };

4
package.json

@ -37,6 +37,8 @@
}, },
"scripts": { "scripts": {
"lint": "eslint .", "lint": "eslint .",
"fix": "eslint . --fix" "fix": "eslint . --fix",
"build": "grunt",
"start": "node app.js"
} }
} }

6
public/index.html

@ -1,6 +1,5 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Wetty - The WebTTY Terminal Emulator</title> <title>Wetty - The WebTTY Terminal Emulator</title>
@ -8,8 +7,7 @@
<script src="/wetty/socket.io/socket.io.js"></script> <script src="/wetty/socket.io/socket.io.js"></script>
<script src="/wetty/wetty.js"></script> <script src="/wetty/wetty.js"></script>
<style> <style>
html, html, body {
body {
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: 0px; margin: 0px;
@ -36,7 +34,6 @@
} }
</style> </style>
</head> </head>
<body> <body>
<div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> <div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div>
<div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> <div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div>
@ -47,5 +44,4 @@ window.addEventListener('beforeunload', function(e) {
}); });
</script> </script>
</body> </body>
</html> </html>

13
public/wetty/index.html

@ -1,6 +1,5 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Wetty - The WebTTY Terminal Emulator</title> <title>Wetty - The WebTTY Terminal Emulator</title>
@ -8,8 +7,7 @@
<script src="/wetty/socket.io/socket.io.js"></script> <script src="/wetty/socket.io/socket.io.js"></script>
<script src="/wetty/wetty.js"></script> <script src="/wetty/wetty.js"></script>
<style> <style>
html, html, body {
body {
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: 0px; margin: 0px;
@ -20,7 +18,6 @@
width: 100%; width: 100%;
background-color: rgba(0,0,0,0.75);; background-color: rgba(0,0,0,0.75);;
display: none; display: none;
z-index: 100;
} }
#overlay input { #overlay input {
display: block; display: block;
@ -37,10 +34,14 @@
} }
</style> </style>
</head> </head>
<body> <body>
<div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div> <div id="overlay"><input type="button" onclick="javascript:location.reload();" value="reconnect" /></div>
<div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div> <div id="terminal" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div>
<script type="application/javascript">
window.addEventListener('beforeunload', function(e) {
e.returnValue = "Are you sure?";
return e.returnValue;
});
</script>
</body> </body>
</html> </html>

1456
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save