refactor
This commit is contained in:
15
.gitignore
vendored
15
.gitignore
vendored
@@ -1,4 +1,17 @@
|
|||||||
|
examples/builder
|
||||||
|
examples/docker
|
||||||
|
examples/publisher
|
||||||
|
examples/texttools
|
||||||
|
examples/gittools
|
||||||
|
examples/tmux
|
||||||
|
examples/vredis2
|
||||||
|
*dSYM/
|
||||||
|
publisher/publish
|
||||||
|
install_publisher
|
||||||
|
.vmodules/
|
||||||
|
vex_webserver
|
||||||
|
publishtools/publishtools
|
||||||
|
.vscode
|
||||||
*.log
|
*.log
|
||||||
!.env.example
|
!.env.example
|
||||||
.cache
|
.cache
|
||||||
|
|||||||
8
.gitpod.Dockerfile
vendored
8
.gitpod.Dockerfile
vendored
@@ -3,13 +3,11 @@
|
|||||||
FROM gitpod/workspace-full:latest
|
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 redis-server mc
|
||||||
|
|
||||||
#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/*
|
# RUN apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
|
||||||
|
|
||||||
USER gitpod
|
USER gitpod
|
||||||
|
|
||||||
# ENTRYPOINT [ "/usr/bin/bash" ]
|
|
||||||
|
# ENTRYPOINT [ "entrypoint.sh" ]
|
||||||
|
|||||||
37
.gitpod.yml
37
.gitpod.yml
@@ -1,17 +1,24 @@
|
|||||||
image:
|
image:
|
||||||
file: .gitpod.Dockerfile
|
file: .gitpod.Dockerfile
|
||||||
# # Commands to start on workspace startup
|
|
||||||
tasks:
|
tasks:
|
||||||
# - init: bash /workspace/www_threefold_io/gitpod/install.sh
|
- name: WIKI
|
||||||
- command: |
|
command: |
|
||||||
rm -f /tmp/install.sh
|
export PBRANCH=development
|
||||||
curl -s -o /tmp/install.sh https://raw.githubusercontent.com/threefoldfoundation/data_threefold/development/install.sh
|
curl https://raw.githubusercontent.com/crystaluniverse/crystaltools/$PBRANCH/install.sh > /tmp/install.sh
|
||||||
bash /tmp/install.sh
|
bash /tmp/install.sh
|
||||||
bash /workspace/data_threefold/gitpod_scripts/install.sh
|
source /workspace/env.sh
|
||||||
bash /workspace/data_threefold/gitpod_scripts/run.sh
|
# publtools_check
|
||||||
|
# cd wiki_config && publishtools flatten
|
||||||
|
web_install
|
||||||
|
website_install
|
||||||
|
website_run
|
||||||
|
echo ' - do "website_run" to run wiki or website.'
|
||||||
|
echo ' - do "open workspace.code-workspace" to open all relevant dirs in your editor.'
|
||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 9998
|
||||||
onOpen: open-browser
|
onOpen: open-browser
|
||||||
|
- port: 8080
|
||||||
|
onOpen: open-browser
|
||||||
- port: 6379
|
- port: 6379
|
||||||
onOpen: ignore
|
onOpen: ignore
|
||||||
vscode:
|
vscode:
|
||||||
@@ -28,15 +35,15 @@ github:
|
|||||||
prebuilds:
|
prebuilds:
|
||||||
# enable for the master/default branch (defaults to true)
|
# enable for the master/default branch (defaults to true)
|
||||||
master: true
|
master: true
|
||||||
# enable for all branches in this repo (defaults to false)
|
# enable for all branches in this repo (defaults to false)
|
||||||
branches: true
|
branches: true
|
||||||
# enable for pull requests coming from this repo (defaults to true)
|
# enable for pull requests coming from this repo (defaults to true)
|
||||||
pullRequests: true
|
pullRequests: true
|
||||||
# enable for pull requests coming from forks (defaults to false)
|
# enable for pull requests coming from forks (defaults to false)
|
||||||
pullRequestsFromForks: false
|
pullRequestsFromForks: false
|
||||||
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
|
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
|
||||||
addComment: true
|
addComment: true
|
||||||
# add a "Review in Gitpod" button to pull requests (defaults to false)
|
# add a "Review in Gitpod" button to pull requests (defaults to false)
|
||||||
addBadge: false
|
addBadge: false
|
||||||
# add a label once the prebuild is ready to pull requests (defaults to false)
|
# add a label once the prebuild is ready to pull requests (defaults to false)
|
||||||
addLabel: prebuilt-in-gitpod
|
addLabel: prebuilt-in-gitpod
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "../../home/gitpod/codewiki"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "../data_threefold"
|
"path": "wiki_cmd"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {}
|
"settings": {}
|
||||||
|
|||||||
Reference in New Issue
Block a user