libreoffice-online/.gitpod.dockerfile
Pedro Pinto Silva cdd00047d1 GitPod: Fix yml and dockerfile, edit configure recipe
- Fix: the initial steps such as extracting the zip were not happening
- Fix deprecated yml task types
- Fix: SSL warning by disabling SSL when doing make
- Add missing task names
- Add missing cypress tests so people can use it
	- Install Chromium dummy package side by side with FF since it's a
		cypress	dependency because on Ubuntu it requires to be installed
		via snapd but gitpod doesn't allow that has there is no plans to do
		so)
	- Users can now run cypress test in GitPod using Firefox, example:
		- CYPRESS_BROWSER="firefox" make check
		- CYPRESS_BROWSER="firefox" make check-[device] spec=[app/test]
- Make use of "wait commands"
	- So we can wait for the configure before doing the make and so we can
	do each one in a different terminal
		- This also makes it easier for new users to go back and check
			configure and make history output
	- So we can listen and wait for the port to be open and then print
		next step instructions
- Better of tasks and setup terminals
	- "Get Core and autgen/Configure Online" in one
	- "Make" and instructions on how to open the browser in another (split)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I915ea0e22c76191651cc0fd50e55edcc2fc58013
2021-11-26 18:20:53 +01:00

15 lines
934 B
Docker

FROM gitpod/workspace-full-vnc
RUN sudo sh -c "echo deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted >> /etc/apt/sources.list" \
&& sudo sh -c "echo deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted >> /etc/apt/sources.list" \
&& sudo sh -c "echo deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted >> /etc/apt/sources.list" \
&& sudo sh -c "echo deb-src http://security.ubuntu.com/ubuntu/ focal-security universe >> /etc/apt/sources.list" \
&& sudo sh -c "echo deb-src http://security.ubuntu.com/ubuntu/ focal-security multiverse >> /etc/apt/sources.list" \
&& sudo apt-get update \
&& sudo apt-get install -y \
build-essential git libpoco-dev libcap-dev python3-polib npm libpng-dev python3-lxml libpam-dev firefox chromium-browser\
&& sudo apt-get build-dep -y libreoffice \
&& pip install lxml \
&& pip install polib \
&& sudo rm -rf /var/lib/apt/lists/*