Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit f97160f

Browse files
Merge pull request #309 from MicrosoftDX/dev
Dev to Master for 0.2
2 parents 3cc7405 + 66a92bd commit f97160f

File tree

241 files changed

+15263
-3929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+15263
-3929
lines changed

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
npm-debug.log
22
*.log
3-
/plugins/vorlon/**/*.css
43
tsconfig.json
54
/Plugins/obj
65
**/node_modules
76
sync.bat
87
*.suo
98
/.vs/
109
bin/
11-
GLE id�es.txt
10+
**/control.css
1211
sync.bat
13-
Plugins/Vorlon/plugins/remoteDebugging.zip
1412
.settings/launch.json
1513
*.dat
1614
Server/public/stylesheets/style.css
17-
vorlon
1815
/Server/public/stylesheets/style.css
16+
/DeploymentTools/deployment-package.zip
17+
DeploymentTools/deployment-package.zip

.vscode/launch.json

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
2020
"runtimeExecutable": null,
2121
// Optional arguments passed to the runtime executable.
22-
"runtimeArgs": ["--nolazy"],
22+
"runtimeArgs": [
23+
"--nolazy"
24+
],
2325
// Environment variables passed to the program.
24-
"env": { },
26+
"env": {},
2527
// Use JavaScript source maps (if they exist).
2628
"sourceMaps": false,
2729
// If JavaScript source maps are enabled, the generated code is expected in this directory.
@@ -35,6 +37,58 @@
3537
// Port to attach to.
3638
"port": 5858,
3739
"sourceMaps": false
40+
},
41+
{
42+
// not working since latest vs code and electron versions :-(
43+
"name": "Launch desktop App",
44+
"type": "node",
45+
"program": "desktop/app/background.js",
46+
"stopOnEntry": false,
47+
"args": [
48+
"--dev"
49+
],
50+
"cwd": ".",
51+
"runtimeExecutable": "desktop/node_modules/electron-prebuilt/dist/electron.exe",
52+
"env": {}
53+
},
54+
{
55+
// not working since latest vs code and electron versions :-(
56+
"name": "Launch node.js sample",
57+
"type": "node",
58+
"program": "client samples/nodejs/app.js",
59+
"stopOnEntry": false,
60+
"args": [
61+
"--nolazy"
62+
],
63+
"cwd": ".",
64+
"runtimeExecutable": null,
65+
"env": {}
66+
},
67+
{
68+
// Name of configuration; appears in the launch configuration drop down menu.
69+
"name": "Launch w/TypeScript",
70+
// Type of configuration. Possible values: "node", "mono".
71+
"type": "node",
72+
// Workspace relative or absolute path to the program.
73+
"program": "Server/server.ts",
74+
// Automatically stop program after launch.
75+
"stopOnEntry": false,
76+
// Command line arguments passed to the program.
77+
"args": [],
78+
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
79+
"cwd": ".",
80+
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
81+
"runtimeExecutable": null,
82+
// Optional arguments passed to the runtime executable.
83+
"runtimeArgs": [
84+
"--nolazy"
85+
],
86+
// Environment variables passed to the program.
87+
"env": {},
88+
// Use JavaScript source maps (if they exist).
89+
"sourceMaps": true,
90+
// If JavaScript source maps are enabled, the generated code is expected in this directory.
91+
"outDir": null
3892
}
3993
]
40-
}
94+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Available variables which can be used inside of strings.
2+
// ${workspaceRoot}: the root folder of the team
3+
// ${file}: the current opened file
4+
// ${fileBasename}: the current opened file's basename
5+
// ${fileDirname}: the current opened file's dirname
6+
// ${fileExtname}: the current opened file's extension
7+
// ${cwd}: the current working directory of the spawned process
8+
9+
{
10+
"version": "0.1.0",
11+
"command": "gulp",
12+
"isShellCommand": true,
13+
"tasks": [
14+
{
15+
"taskName": "default",
16+
"isBuildCommand": true,
17+
"showOutput": "always"
18+
}
19+
]
20+
}

DeploymentTools/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# use the node argon image as base
2+
FROM node:argon
3+
4+
# Set the Vorlon.JS Docker Image maintainer
5+
MAINTAINER Julien Corioland (Microsoft, DX)
6+
7+
# update apt get and install unzip
8+
RUN apt-get -qq update && apt-get -qqy install unzip
9+
10+
# Create the application directory
11+
RUN mkdir -p /usr/src/vorlonjs
12+
13+
# Set app root as working directory
14+
WORKDIR /usr/src/vorlonjs
15+
16+
# Send the app content to the container
17+
COPY deployment-package.zip /usr/src/vorlonjs
18+
19+
# Extract the archive
20+
RUN unzip deployment-package.zip -d /usr/src/vorlonjs
21+
22+
# Remove the archive
23+
RUN rm deployment-package.zip
24+
25+
# Expose port 1337
26+
EXPOSE 1337
27+
28+
# Run Vorlon.JS
29+
CMD ["npm", "start"]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@ECHO OFF
2+
3+
IF "%1"=="" GOTO :usage
4+
IF "%2"=="" GOTO :usage
5+
IF "%3"=="" GOTO :usage
6+
IF "%4"=="" GOTO :usage
7+
IF "%5"=="" GOTO :usage
8+
9+
@ECHO "SET DOCKER_HOST TO %1"
10+
SET DOCKER_HOST=%1
11+
12+
@ECHO "BUILD DOCKER IMAGE"
13+
docker --tls --tlscacert="%2\ca.pem" --tlscert="%2\cert.pem" --tlskey="%2\key.pem" build -t jcorioland/vorlonjs:0.2 .
14+
15+
@ECHO "LOG INTO DOCKER HUB"
16+
docker --tls --tlscacert="%2\ca.pem" --tlscert="%2\cert.pem" --tlskey="%2\key.pem" login --username="%3" --password="%4" --email="%5" https://index.docker.io/v1/
17+
18+
@ECHO "PUSH IMAGE INTO DOCKER HUB"
19+
docker --tls --tlscacert="%2\ca.pem" --tlscert="%2\cert.pem" --tlskey="%2\key.pem" push jcorioland/vorlonjs:0.2
20+
21+
@ECHO "LOG OUT FROM DOCKER HUB"
22+
docker --tls --tlscacert="%2\ca.pem" --tlscert="%2\cert.pem" --tlskey="%2\key.pem" logout
23+
24+
GOTO :eof
25+
26+
:usage
27+
@ECHO Usage: %0 ^<DOCKER_HOST^> ^<CERT_FOLDER^> ^<DOCKER_HUB_USERNAME^> ^<DOCKER_HUB_PASSWORD^>
28+
EXIT /B 1

0 commit comments

Comments
 (0)