2020-10-07 15:47:42 -05:00
|
|
|
image:
|
|
|
|
file: .gitpod.dockerfile
|
|
|
|
|
2020-10-08 06:29:29 -05:00
|
|
|
ports:
|
|
|
|
- port: 9980
|
2020-10-16 14:19:49 -05:00
|
|
|
onOpen: ignore
|
2020-10-09 17:12:37 -05:00
|
|
|
- port: 6080
|
2021-11-25 09:13:10 -06:00
|
|
|
onOpen: "open-browser"
|
2020-10-16 14:19:49 -05:00
|
|
|
- port: 5900
|
|
|
|
onOpen: ignore
|
2020-10-08 06:29:29 -05:00
|
|
|
|
2020-10-07 15:47:42 -05:00
|
|
|
github:
|
|
|
|
prebuilds:
|
|
|
|
# enable for the master/default branch (defaults to true)
|
|
|
|
master: true
|
|
|
|
# enable for all branches in this repo (defaults to false)
|
|
|
|
branches: false
|
|
|
|
# enable for pull requests coming from this repo (defaults to true)
|
|
|
|
pullRequests: false
|
|
|
|
# enable for pull requests coming from forks (defaults to false)
|
|
|
|
pullRequestsFromForks: false
|
|
|
|
# add a check to pull requests (defaults to true)
|
|
|
|
addCheck: false
|
|
|
|
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
|
|
|
|
addComment: false
|
|
|
|
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
|
|
|
|
addBadge: false
|
|
|
|
# add a label once the prebuild is ready to pull requests (defaults to false)
|
|
|
|
addLabel: false
|
|
|
|
|
2021-08-19 09:09:31 -05:00
|
|
|
# Update URL unders tasks after any major release,
|
|
|
|
# on a daily-basis there is a core tar ball that it's used by gitpod during prebuilds:
|
|
|
|
# 1. Ping infra team to re-configure with the new URL
|
|
|
|
# 2. Update URL here under tasks
|
2020-10-07 15:47:42 -05:00
|
|
|
tasks:
|
2021-11-25 09:13:10 -06:00
|
|
|
- name: Get Core & Configure
|
|
|
|
before: |
|
|
|
|
cd ..
|
2024-03-11 09:26:10 -05:00
|
|
|
wget https://github.com/CollaboraOnline/online/releases/download/for-code-assets/core-co-24.04-assets.tar.gz
|
|
|
|
tar xvf core-co-24.04-assets.tar.gz
|
|
|
|
rm core-co-24.04-assets.tar.gz
|
2021-11-25 09:13:10 -06:00
|
|
|
cd online
|
|
|
|
init: |
|
|
|
|
./autogen.sh
|
|
|
|
./configure --enable-silent-rules --with-lokit-path=/workspace/include --with-lo-path=/workspace/instdir --enable-debug -enable-cypress --disable-setcap
|
|
|
|
gp sync-done configuring
|
|
|
|
cp .gitpod-files/coolwsd-gitpod.xml coolwsd.xml
|
|
|
|
mkdir .vscode
|
|
|
|
cp .gitpod-files/settings.json .vscode/settings.json
|
|
|
|
- name: Building
|
|
|
|
init: gp sync-await configuring
|
|
|
|
command: make -j$(nproc) run
|
|
|
|
- name: Test
|
|
|
|
init: gp await-port 9980
|
|
|
|
command: |
|
2021-11-26 11:26:05 -06:00
|
|
|
echo "If you are not using the VS Code desktop and instead just your web browser, to open and test Collabora Online:"
|
2021-11-25 09:13:10 -06:00
|
|
|
echo "1. Make sure your web browser is not blocking any tabs from opening;"
|
|
|
|
echo "2. Check that you have the VCN tab opened (if not, open it up from the left side Remote explorer > 6080)"
|
|
|
|
echo "3. In the terminal where make is running: scroll and copy the the URL ending with: hello-world.odt"
|
|
|
|
echo "4. In a new terminal execute the following:"
|
|
|
|
echo " firefox [paste copied URL here]"
|
|
|
|
openMode: split-right
|
2020-10-07 15:47:42 -05:00
|
|
|
|