From 37a9ae79f1456691e2939b804bcfb2c7dc6b428e Mon Sep 17 00:00:00 2001 From: Shea Silverman Date: Sat, 10 Apr 2021 00:45:49 -0400 Subject: [PATCH] Adding Docker support --- Dockerfile | 7 +++++++ docker-compose.yml | 12 ++++++++++++ readme.md | 13 +++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..1060d823 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +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 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..12ff4d9c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.1' + +services: + kirimoto: + build: + context: . + ports: + - "8080:8080" + + + + diff --git a/readme.md b/readme.md index c147fe0f..861b3733 100644 --- a/readme.md +++ b/readme.md @@ -36,6 +36,19 @@ Contributions in all forms (code, bug reports, community engagement, localizatio * [Discord Chat](https://discord.com/channels/688863523207774209/688863523211968535) * [Wiki Reference](https://github.com/GridSpace/grid-apps/wiki) +### Testing Locally (with Docker) + +``` +git clone git@github.com:GridSpace/grid-apps.git +cd grid-apps +docker-compose build +docker-compose up +``` + +You can now access your environment of grid-apps by going to: +[Kiri:Moto](http://127.0.0.1:8080/kiri) or +[Meta:Moto](http://127.0.0.1:8080/meta). + ### Testing Locally ```