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. 74
      public/index.html
  5. 71
      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"
} }
} }

74
public/index.html

@ -1,51 +1,47 @@
<!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>
<script src="/wetty/hterm_all.js"></script> <script src="/wetty/hterm_all.js"></script>
<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; }
} #overlay {
#overlay { position: absolute;
position: absolute; height: 100%;
height: 100%; width: 100%;
width: 100%; background-color: rgba(0,0,0,0.75);;
background-color: rgba(0,0,0,0.75);; display: none;
display: none; }
} #overlay input {
#overlay input { display: block;
display: block; margin: auto;
margin: auto; position: relative;
position: relative; top: 50%;
top: 50%; transform: translateY(-50%);
transform: translateY(-50%); }
} #terminal {
#terminal { display: block;
display: block; position: relative;
position: relative; width: 100%;
width: 100%; height: 100%;
height: 100%; }
}
</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"> <script type="application/javascript">
window.addEventListener('beforeunload', function(e) { window.addEventListener('beforeunload', function(e) {
e.returnValue = "Are you sure?"; e.returnValue = "Are you sure?";
return e.returnValue; return e.returnValue;
}); });
</script> </script>
</body> </body>
</html> </html>

71
public/wetty/index.html

@ -1,46 +1,47 @@
<!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>
<script src="/wetty/hterm_all.js"></script> <script src="/wetty/hterm_all.js"></script>
<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; }
} #overlay {
#overlay { position: absolute;
position: absolute; height: 100%;
height: 100%; 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 {
} display: block;
#overlay input { margin: auto;
display: block; position: relative;
margin: auto; top: 50%;
position: relative; transform: translateY(-50%);
top: 50%; }
transform: translateY(-50%); #terminal {
} display: block;
#terminal { position: relative;
display: block; width: 100%;
position: relative; height: 100%;
width: 100%; }
height: 100%;
}
</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>
</body> <script type="application/javascript">
window.addEventListener('beforeunload', function(e) {
e.returnValue = "Are you sure?";
return e.returnValue;
});
</script>
</body>
</html> </html>

1456
yarn.lock

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