-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal Czyz <mczyz@antmicro.com>
- Loading branch information
1 parent
150529f
commit 833605c
Showing
6 changed files
with
91 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
FROM ghcr.io/antmicro/openroad-codespace:orfs | ||
|
||
COPY ./scripts/common.sh /usr/local/bin/common.sh | ||
COPY ./scripts/install-desktop-deps.sh /usr/local/bin/install-desktop-deps.sh | ||
RUN bash /usr/local/bin/install-desktop-deps.sh | ||
|
||
COPY ./scripts/install-desktop.sh /usr/local/bin/install-desktop.sh | ||
RUN bash /usr/local/bin/install-desktop.sh | ||
RUN chsh -s /bin/bash | ||
|
||
ENV DISPLAY=:1 | ||
ENTRYPOINT [ "/usr/local/share/desktop-init.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
apt_get_update() | ||
{ | ||
apt-get update -y | ||
} | ||
|
||
# Checks if packages are installed and installs them if not | ||
check_packages() { | ||
if ! dpkg -s "$@" > /dev/null 2>&1; then | ||
apt_get_update | ||
apt-get -y install --no-install-recommends "$@" | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
|
||
. common.sh | ||
|
||
package_list=" | ||
tigervnc-standalone-server \ | ||
tigervnc-common \ | ||
dbus-x11 \ | ||
x11-utils \ | ||
x11-xserver-utils \ | ||
xdg-utils \ | ||
fbautostart \ | ||
at-spi2-core \ | ||
xterm \ | ||
eterm \ | ||
nautilus\ | ||
mousepad \ | ||
seahorse \ | ||
gnome-icon-theme \ | ||
gnome-keyring \ | ||
libx11-dev \ | ||
libxkbfile-dev \ | ||
libsecret-1-dev \ | ||
libgbm-dev \ | ||
libnotify4 \ | ||
libnss3 \ | ||
libxss1 \ | ||
libasound2 \ | ||
xfonts-base \ | ||
xfonts-terminus \ | ||
fonts-noto \ | ||
fonts-wqy-microhei \ | ||
fonts-droid-fallback \ | ||
htop \ | ||
ncdu \ | ||
curl \ | ||
ca-certificates\ | ||
unzip \ | ||
nano \ | ||
locales \ | ||
xfwm4 \ | ||
lxqt \ | ||
breeze-icon-theme \ | ||
vim \ | ||
" | ||
|
||
# Packages to attempt to install if essential tools are missing (ie: vncpasswd). | ||
# This is useful, at least, for Ubuntu 22.04 (jammy) | ||
package_list_additional=" | ||
tigervnc-tools" | ||
|
||
set -e | ||
|
||
# Ensure apt is in non-interactive to avoid prompts | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt_get_update | ||
check_packages ${package_list} | ||
|
||
# On newer versions of Ubuntu (22.04), | ||
# we need an additional package that isn't provided in earlier versions | ||
if ! type vncpasswd > /dev/null 2>&1; then | ||
check_packages ${package_list_additional} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters