move docker scripts to src and update readme to reflect
This commit is contained in:
parent
daa985b9fc
commit
9c729f2c8c
6 changed files with 31 additions and 26 deletions
11
src/dock/Dockerfile
Normal file
11
src/dock/Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM node:15.14.0-stretch
|
||||
WORKDIR /grid
|
||||
COPY package.json /grid
|
||||
COPY app.js /grid
|
||||
COPY apps /grid/apps
|
||||
COPY src /grid/src
|
||||
COPY web /grid/web
|
||||
EXPOSE 8080
|
||||
RUN npm i
|
||||
RUN npm install -g @gridspace/app-server
|
||||
CMD gs-app-server
|
||||
10
src/dock/compose.yml
Normal file
10
src/dock/compose.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
version: '3.1'
|
||||
|
||||
services:
|
||||
kirimoto:
|
||||
container_name: grid-apps
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: src/dock/Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
|
@ -15,6 +15,7 @@ function init() {
|
|||
zoomspd = 1,
|
||||
Space = moto.Space;
|
||||
|
||||
// setup default workspace
|
||||
Space.showSkyGrid(sky);
|
||||
Space.setSkyColor(dark ? 0 : 0xffffff);
|
||||
Space.init(container, delta => { }, ortho);
|
||||
|
|
@ -26,7 +27,11 @@ function init() {
|
|||
Space.view.setZoom(zoomrev, zoomspd);
|
||||
Space.useDefaultKeys(true);
|
||||
|
||||
// hide loading curtain
|
||||
$('curtain').style.display = 'none';
|
||||
|
||||
// remove version cache bust from url
|
||||
window.history.replaceState({},'','/mesh/');
|
||||
}
|
||||
|
||||
document.onreadystatechange = function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue