This commit is contained in:
2021-07-11 13:56:57 +00:00
parent bc2582c712
commit 4f2475634c
3 changed files with 9 additions and 6 deletions

7
.gitpod.Dockerfile vendored
View File

@@ -5,11 +5,8 @@ FROM gitpod/workspace-full:latest
USER root USER root
RUN apt-get update && apt-get install -y mc rsync RUN apt-get update && apt-get install -y mc rsync
ADD gitpod/install_docker.sh /tmp/install_docker.sh #prepare for gitpod nodejs env
ADD package.json /tmp/package.json RUN rm -f /tmp/install_docker.sh && curl -s -o /tmp/install_docker.sh https://raw.githubusercontent.com/threefoldfoundation/data_threefold/development/gitpod_scripts/install_docker.sh && bash /tmp/install_docker.sh
RUN bash /tmp/install_docker.sh
# RUN apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* # RUN apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*

View File

@@ -3,7 +3,11 @@ image:
# # Commands to start on workspace startup # # Commands to start on workspace startup
tasks: tasks:
# - init: bash /workspace/www_threefold_io/gitpod/install.sh # - init: bash /workspace/www_threefold_io/gitpod/install.sh
- command: bash /workspace/www_threefold_io/gitpod/install.sh && bash /workspace/www_threefold_io/gitpod/run.sh - command: rm -f /tmp/install.sh \
&& curl -s -o /tmp/install.sh https://raw.githubusercontent.com/threefoldfoundation/data_threefold/development/install.sh \
&& bash /tmp/install.sh \
&& bash /workspace/data_threefold/gitpod_scripts/install.sh
&& bash /workspace/data_threefold/gitpod_scripts/run.sh
ports: ports:
- port: 8080 - port: 8080
onOpen: open-browser onOpen: open-browser

2
run.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
bash /workspace/data_threefold/gitpod_scripts/run.sh