diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 9d61a6289..a7ddb0300 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -5,11 +5,8 @@ FROM gitpod/workspace-full:latest USER root RUN apt-get update && apt-get install -y mc rsync -ADD gitpod/install_docker.sh /tmp/install_docker.sh -ADD package.json /tmp/package.json - -RUN bash /tmp/install_docker.sh - +#prepare for gitpod nodejs env +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 apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* diff --git a/.gitpod.yml b/.gitpod.yml index 3e51fe687..34e14adf1 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,7 +3,11 @@ image: # # Commands to start on workspace startup tasks: # - 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: - port: 8080 onOpen: open-browser diff --git a/run.sh b/run.sh new file mode 100644 index 000000000..1566c9721 --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +bash /workspace/data_threefold/gitpod_scripts/run.sh