Skip to content

Commit

Permalink
[#61664] codespace: Dockerfile-lxqt: Update base image
Browse files Browse the repository at this point in the history
Updates the base image for the `lxqt` to use latest ORFS from docker
registries.

Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Jul 3, 2024
1 parent d55ddf2 commit a6ae441
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 72 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/github-actions-publish-docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prebuild docker images
name: Prebuild lxqt docker image
on:
push:
pull_request:
Expand All @@ -18,26 +18,21 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set environment variables
run: echo "IMAGE=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):lxqt" >> $GITHUB_ENV

- name: Build LXQt
run: |
docker build -t ${{ env.IMAGE }} -f tools/codespace/Dockerfile-lxqt .
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-flow-scripts'
if: github.event_name != 'pull_request'
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-flow-scripts:orfs -f tools/codespace/Dockerfile-orfs .
- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-flow-scripts'
run: docker push ghcr.io/antmicro/openroad-flow-scripts:orfs

- name: Build LXQt
run: |
docker build -t ghcr.io/antmicro/openroad-flow-scripts:lxqt -f tools/codespace/Dockerfile-lxqt .
- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-flow-scripts'
run: docker push ghcr.io/antmicro/openroad-flow-scripts:lxqt
if: github.event_name != 'pull_request'
run: docker push ${{ env.IMAGE }}
2 changes: 1 addition & 1 deletion tools/codespace/Dockerfile-lxqt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0

FROM ghcr.io/antmicro/openroad-flow-scripts:orfs
FROM openroad/orfs:latest

COPY ./tools/codespace/scripts/common.sh /usr/local/bin/common.sh
COPY ./tools/codespace/scripts/install-desktop-deps.sh /usr/local/bin/install-desktop-deps.sh
Expand Down
13 changes: 0 additions & 13 deletions tools/codespace/Dockerfile-orfs

This file was deleted.

6 changes: 3 additions & 3 deletions tools/codespace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ First time Codespace users are encouraged to read the tutorial [creating a codes

### OpenROAD GUI

At the bottom, there should be tab `PORTS`, where you will find the `Forwarded Address`. A link labelled `Desktop (6080) is provided, which you can follow to open the OpenROAD GUI.
At the bottom, there should be tab `PORTS`, where you will find the `Forwarded Address`. A link labelled `Desktop (6080)` is provided, which you can follow to open the OpenROAD GUI.

![open](../../docs/images/open_vnc.gif)

Test that the ORFS flow works by running the following commands:

```
cd ~/OpenROAD-flow-scripts/flow
. ../env.sh
cd /OpenROAD-flow-scripts/flow
source ../env.sh
make
make gui_final
```
Expand Down
39 changes: 0 additions & 39 deletions tools/codespace/scripts/install-orfs.sh

This file was deleted.

0 comments on commit a6ae441

Please sign in to comment.