Skip to content

Commit

Permalink
docker test
Browse files Browse the repository at this point in the history
use local files

update action

try cd

sfd

back to src
  • Loading branch information
jorendumoulin committed Sep 17, 2024
1 parent b06e585 commit 36144ed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
name: Deploy Docker image
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: docker/setup-buildx-action@v3
- name: GHCR Log-in
uses: docker/login-action@v3
Expand Down
33 changes: 16 additions & 17 deletions util/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0


FROM ubuntu:24.04 AS build-bender

RUN apt-get update && apt-get install -y curl build-essential
Expand Down Expand Up @@ -114,9 +115,12 @@ RUN wget https://github.com/pulp-platform/riscv-isa-sim/releases/download/snitch
# Remove cache
rm -rf /root/.cache

# Copy snax_cluster contents to /snax_cluster
COPY . /snax_cluster

# Install Python Requirements from kuleuven-micas/snax_cluster
RUN git clone https://github.com/kuleuven-micas/snax_cluster.git && \
cd snax_cluster && pip3 install --no-cache-dir -r python-requirements.txt && \
WORKDIR /snax_cluster/
RUN pip3 install --no-cache-dir -r python-requirements.txt && \
cd .. && \
rm -rf snax_cluster && \
# Install Python Requirements from kuleuven-micas/snax-mlir
Expand All @@ -138,9 +142,8 @@ CMD ["zsh"]
# Default systems
FROM base as snax-mac

RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \
cd /src && git submodule update --init && \
cd /src && sbt package && \
COPY . /src/
RUN cd /src && sbt package && \
cd /src && \
make DEBUG=ON sw -j$(nproc) \
-C target/snitch_cluster \
Expand All @@ -155,9 +158,8 @@ RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \

FROM base as snax-alu

RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \
cd /src && git submodule update --init && \
cd /src && sbt package && \
COPY . /src/
RUN cd /src && sbt package && \
cd /src && \
make DEBUG=ON sw -j$(nproc) \
-C target/snitch_cluster \
Expand All @@ -172,9 +174,8 @@ RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \

FROM base as snax-streamer-gemm

RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \
cd /src && git submodule update --init && \
cd /src && sbt package && \
COPY . /src/
RUN cd /src && sbt package && \
cd /src && \
make DEBUG=ON sw -j$(nproc) \
-C target/snitch_cluster \
Expand All @@ -190,9 +191,8 @@ RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \

FROM base as snax-streamer-gemm-add-c

RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \
cd /src && git submodule update --init && \
cd /src && sbt package && \
COPY . /src/
RUN cd /src && sbt package && \
cd /src && \
make DEBUG=ON sw -j$(nproc) \
-C target/snitch_cluster \
Expand All @@ -207,9 +207,8 @@ RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \

FROM base as snax-kul-cluster-mixed-narrow-wide

RUN git clone https://github.com/kuleuven-micas/snax_cluster /src && \
cd /src && git submodule update --init && \
cd /src && sbt package && \
COPY . /src/
RUN cd /src && sbt package && \
cd /src && \
make DEBUG=ON sw -j$(nproc) \
-C target/snitch_cluster \
Expand Down

0 comments on commit 36144ed

Please sign in to comment.