-
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 <[email protected]>
- Loading branch information
1 parent
3069953
commit 3811032
Showing
33 changed files
with
979 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2024 Antmicro <www.antmicro.com> | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
{ | ||
"image": "ghcr.io/antmicro/openroad-codespace:lxqt", | ||
"forwardPorts": [6080], | ||
"portsAttributes": { | ||
"6080": { | ||
"label": "desktop" | ||
} | ||
}, | ||
"postAttachCommand": "bash /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,14 @@ | ||
// Copyright (c) 2024 Antmicro <www.antmicro.com> | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// TODO: Create a minimal version of the image | ||
{ | ||
"image": "ghcr.io/antmicro/openroad-codespace:lxqt", | ||
"forwardPorts": [6080], | ||
"portsAttributes": { | ||
"6080": { | ||
"label": "desktop" | ||
} | ||
}, | ||
"postAttachCommand": "bash /usr/local/share/desktop-init.sh" | ||
} |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: Prebuild docker image | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
build: | ||
name: BUILD | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 600 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: gha | ||
password: ${{ github.token }} | ||
|
||
- name: Build ORFS | ||
run: | | ||
docker build -t ghcr.io/antmicro/openroad-codespace:orfs -f Dockerfile-orfs . | ||
- name: Push container image to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
run: docker push ghcr.io/antmicro/openroad-codespace:orfs | ||
|
||
- name: Build LXQt | ||
run: | | ||
docker build -t ghcr.io/antmicro/openroad-codespace:lxqt -f Dockerfile-lxqt . | ||
- name: Push container image to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
run: docker push ghcr.io/antmicro/openroad-codespace:lxqt |
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,3 +0,0 @@ | ||
[submodule "third_party/OpenROAD-flow-scripts"] | ||
path = third_party/OpenROAD-flow-scripts | ||
url = [email protected]:The-OpenROAD-Project/OpenROAD-flow-scripts.git | ||
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,23 @@ | ||
# Copyright (c) 2024 Antmicro <www.antmicro.com> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
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 | ||
|
||
COPY ./scripts/patch-lxqt-config.sh /usr/local/bin/patch-lxqt-config.sh | ||
COPY ./scripts/lxqt-config /usr/local/bin/lxqt-config | ||
RUN bash /usr/local/bin/patch-lxqt-config.sh | ||
|
||
COPY ./scripts/patch-novnc-ui.sh /usr/local/bin/patch-novnc-ui.sh | ||
RUN bash /usr/local/bin/patch-novnc-ui.sh | ||
|
||
CMD ["/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,13 @@ | ||
# Copyright (c) 2024 Antmicro <www.antmicro.com> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM ubuntu:22.04 | ||
|
||
COPY ./scripts/install-orfs.sh /usr/local/bin/install-orfs.sh | ||
RUN bash /usr/local/bin/install-orfs.sh | ||
|
||
ENV PATH="$PATH:/usr/local/bin" | ||
|
||
ENV PATH="$PATH:/yosys/" | ||
ENV OPENROAD_EXE=/usr/bin/openroad | ||
ENV YOSYS_CMD=/yosys/yosys |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
#!/bin/bash | ||
#------------------------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Copyright (c) 2024 Antmicro <www.antmicro.com> | ||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | ||
#------------------------------------------------------------------------------------------------------------- | ||
# | ||
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/desktop-lite.md | ||
# Maintainer: The VS Code and Codespaces Teams | ||
|
||
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,63 @@ | ||
#!/bin/bash | ||
#------------------------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Copyright (c) 2024 Antmicro <www.antmicro.com> | ||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | ||
#------------------------------------------------------------------------------------------------------------- | ||
# | ||
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/desktop-lite.md | ||
# Maintainer: The VS Code and Codespaces Teams | ||
|
||
. 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-keyring \ | ||
libx11-dev \ | ||
libxkbfile-dev \ | ||
libsecret-1-dev \ | ||
libgbm-dev \ | ||
libnotify4 \ | ||
libnss3 \ | ||
libxss1 \ | ||
libasound2 \ | ||
htop \ | ||
ncdu \ | ||
curl \ | ||
ca-certificates\ | ||
unzip \ | ||
locales \ | ||
xfwm4 \ | ||
lxqt \ | ||
" | ||
|
||
# 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 |
Oops, something went wrong.