-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add base dockerfile * Add -E flag to pass env vars into apt command * Add compose for running browser datastation * Add running with docker documentation * Embed install steps, use node base Co-authored-by: Phil Eaton <phil@eatonphil.com>
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:16 | ||
RUN apt-get update -y && \ | ||
apt-get install cmake xvfb jq curl sudo fswatch git g++ -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
COPY --chown=root:root scripts/ci/prepare_linux.sh /usr/sbin/ | ||
RUN export DEBIAN_FRONTEND=noninteractive | ||
RUN sudo npm install --global yarn | ||
RUN yarn | ||
|
||
RUN groupadd --gid 1000 datastation \ | ||
&& useradd --home-dir /home/datastation --create-home --uid 1000 \ | ||
--gid 1000 --shell /bin/bash --skel /dev/null datastation | ||
USER datastation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "3.9" | ||
services: | ||
datastation: | ||
image: datastation:latest | ||
build: . | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ./:/home/datastation/datastation:Z | ||
entrypoint: "sh -c" | ||
command: ["cd ~/datastation && yarn && yarn start-ui"] |