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
|
|
@ -1,7 +0,0 @@
|
||||||
FROM node:15.14.0-stretch
|
|
||||||
WORKDIR /app
|
|
||||||
COPY ../ /app/
|
|
||||||
EXPOSE 8080
|
|
||||||
RUN npm i
|
|
||||||
RUN npm install -g @gridspace/app-server
|
|
||||||
CMD gs-app-server --debug
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
version: '3.1'
|
|
||||||
|
|
||||||
services:
|
|
||||||
kirimoto:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
12
readme.md
12
readme.md
|
|
@ -14,12 +14,11 @@ Contributions in all forms (code, bug reports, community engagement, localizatio
|
||||||
### Live Versions
|
### Live Versions
|
||||||
|
|
||||||
[](https://grid.space/kiri/)
|
[](https://grid.space/kiri/)
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||

|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
### Development Activity
|
### Development Activity
|
||||||
|
|
||||||
|
|
@ -72,8 +71,7 @@ your path. You can either add it to your path, or you can run:
|
||||||
```
|
```
|
||||||
git clone git@github.com:GridSpace/grid-apps.git
|
git clone git@github.com:GridSpace/grid-apps.git
|
||||||
cd grid-apps
|
cd grid-apps
|
||||||
docker-compose build
|
docker-compose -f src/dock/compose.yml up
|
||||||
docker-compose up
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now access your environment of grid-apps by going to:
|
You can now access your environment of grid-apps by going to:
|
||||||
|
|
|
||||||
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,
|
zoomspd = 1,
|
||||||
Space = moto.Space;
|
Space = moto.Space;
|
||||||
|
|
||||||
|
// setup default workspace
|
||||||
Space.showSkyGrid(sky);
|
Space.showSkyGrid(sky);
|
||||||
Space.setSkyColor(dark ? 0 : 0xffffff);
|
Space.setSkyColor(dark ? 0 : 0xffffff);
|
||||||
Space.init(container, delta => { }, ortho);
|
Space.init(container, delta => { }, ortho);
|
||||||
|
|
@ -26,7 +27,11 @@ function init() {
|
||||||
Space.view.setZoom(zoomrev, zoomspd);
|
Space.view.setZoom(zoomrev, zoomspd);
|
||||||
Space.useDefaultKeys(true);
|
Space.useDefaultKeys(true);
|
||||||
|
|
||||||
|
// hide loading curtain
|
||||||
$('curtain').style.display = 'none';
|
$('curtain').style.display = 'none';
|
||||||
|
|
||||||
|
// remove version cache bust from url
|
||||||
|
window.history.replaceState({},'','/mesh/');
|
||||||
}
|
}
|
||||||
|
|
||||||
document.onreadystatechange = function() {
|
document.onreadystatechange = function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue