Skip to content

Commit

Permalink
test skimmer dockre
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Czyz <[email protected]>
  • Loading branch information
mczyz-antmicro committed Mar 26, 2024
1 parent 824bbd5 commit 5de9afc
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/ubuntu-gui/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "ghcr.io/antmicro/openroad-flow-scripts/ubuntu22.04:latest",
"image": "ghcr.io/antmicro/orfs:latest",
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {}
},
Expand Down
38 changes: 23 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ jobs:
with:
ref: "mczyz/dev"

# - name: Pre-build dev container image
# uses: devcontainers/[email protected]
# with:
# imageName: ghcr.io/openroad-codespace/test
# cacheFrom: ghcr.io/openroad-codespace/test
# push: always
# configFile: ./.devcontainer/ubuntu-gui/devcontainer.json

- name: Devcontainer build
run: |
npm install -g @devcontainers/cli
devcontainer build --config .devcontainer/ubuntu-gui/devcontainer.json --workspace-folder . --push false --image-name test:latest
docker image tag test:latest ghcr.io/antmicro/openroad-codespace:test
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace'
uses: docker/login-action@v2
Expand All @@ -42,6 +28,28 @@ jobs:
username: gha
password: ${{ github.token }}

- name: Docker build
run: |
docker build -t ghcr.io/antmicro/orfs:latest -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/orfs:latest

- name: Devcontainer build
run: |
npm install -g @devcontainers/cli
devcontainer build --config .devcontainer/ubuntu-gui/devcontainer.json --workspace-folder . --push false --image-name ghcr.io/antmicro/openroad-codespace:latest
# docker image tag test:latest ghcr.io/antmicro/openroad-codespace:test
- 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:latest

- name: Docker build
run: |
docker build -t ghcr.io/antmicro/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:test
run: docker push ghcr.io/antmicro/lxqt:latest
4 changes: 4 additions & 0 deletions Dockerfile-lxqt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ghcr.io/antmicro/openroad-codespace:latest

COPY scripts/install-lqxt.sh /usr/local/bin/install-lqxt.sh
RUN bash /usr/local/bin/install-lqxt.sh
6 changes: 6 additions & 0 deletions Dockerfile-orfs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:22.04

COPY scripts/install.sh /usr/local/bin/install.sh
RUN bash /usr/local/bin/install.sh

ENV PATH="$PATH:/opt/oss-cad-suite/bin"
12 changes: 12 additions & 0 deletions scripts/install-lxqt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

. ../common.sh

# Create session config file
sudoIf apt-get -y --no-install-recommends install lxqt

cat << EOF > ~/.config/lxqt/session.conf
[General]
__userfile__=true
window_manager=xfwm4
EOF
28 changes: 28 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

export KLAYOUT_VER=${KLAYOUT_VER:-0.28.17-1}
export DEBIAN_FRONTEND=noninteractive

apt-get -qqy update
apt-get install -qqy --no-install-recommends git wget ca-certificates

update-ca-certificates
wget https://www.klayout.org/downloads/Ubuntu-22/klayout_${KLAYOUT_VER}_amd64.deb
apt-get install -qqy --no-install-recommends ./klayout_${KLAYOUT_VER}_amd64.deb
rm -rf ./klayout_${KLAYOUT_VER}_amd64.deb

wget https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-03-26/oss-cad-suite-linux-x64-20240326.tgz
tar -xvf oss-cad-suite-linux-x64-20240326.tgz
rm -rf oss-cad-suite-linux-x64-20240326.tgz
mkdir -p /opt
mv oss-cad-suite /opt/oss-cad-suite

wget https://github.com/Precision-Innovations/OpenROAD/releases/download/2024-03-25/openroad_2.0_amd64-ubuntu22.04-2024-03-25.deb
apt-get install -qqy --no-install-recommends ./openroad_2.0_amd64-ubuntu22.04-2024-03-25.deb
rm -rf ./openroad_2.0_amd64-ubuntu22.04-2024-03-25.deb

cd ~
git clone https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts.git

apt-get clean
apt-get autoclean

0 comments on commit 5de9afc

Please sign in to comment.