source: ogBrowser-Git/vagrant/ogbrowser-sway/init.sh @ 0cc9c2a

jenkinsmain
Last change on this file since 0cc9c2a was bdc9fe4, checked in by Vadim Troshchinskiy Shmelev <vtroshchinskiy@…>, 16 months ago

Demo de contenedor minimo de OGBrowser

  • Property mode set to 100755
File size: 1010 bytes
Line 
1#!/bin/bash
2set -e
3export DEBIAN_FRONTEND=noninteractive
4export DEBIAN_PRIORITY=critical
5export NEEDRESTART_MODE=a
6
7
8BUILD_DEPENDENCIES="build-essential cmake g++ qt6-base-dev qt6-webengine-dev linguist-qt6  libgl1-mesa-dev qt6-tools-dev qt6-l10n-tools  qt6-tools-dev-tools libqt6core5compat6-dev lxqt-build-tools qt6-webengine-dev-tools libqt6webenginecore6-bin"
9
10
11## Initial setup
12sudo apt update
13sudo apt dist-upgrade -y
14
15
16## Install dependencies and build
17sudo apt install -y $BUILD_DEPENDENCIES
18
19mkdir -p /tmp/build
20cd /tmp/build
21cmake /vagrant_data/
22make -j2
23sudo make install
24
25
26## Ensure we have the requirements to run the browser
27sudo apt install -y sway qt6-wayland kitty-terminfo ncdu libqt6core5compat6 libqt6webenginewidgets6 libqt6webenginecore6-bin
28
29
30
31## Remove everything unneeded.
32sudo apt -y remove $BUILD_DEPENDENCIES
33sudo apt -y autoremove
34sudo apt clean all
35sudo journalctl --vacuum-size=16M
36
37## Setup sway
38
39mkdir -p $HOME/.config/sway
40cp -v /vagrant/files/sway/config $HOME/.config/sway
41
Note: See TracBrowser for help on using the repository browser.