-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move HE samples to separate docker layer (#190)
Signed-off-by: Jack Crawford <[email protected]>
- Loading branch information
1 parent
a395e90
commit 859025f
Showing
6 changed files
with
53 additions
and
10 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,28 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
ARG CUSTOM_FROM | ||
|
||
FROM $CUSTOM_FROM | ||
|
||
LABEL maintainer="https://github.com/intel/he-toolkit" | ||
|
||
# User setup | ||
ARG UNAME | ||
ARG UID | ||
ARG GID | ||
ARG HOME="/home/$UNAME" | ||
ENV SHELL="/bin/bash" | ||
|
||
# Switch user to $UNAME | ||
USER $UNAME | ||
|
||
# Change directories to $HOME/he-toolkit | ||
WORKDIR $HOME/he-toolkit | ||
|
||
# Build and install libraries, examples, and kernels | ||
RUN ./hekit install recipes/default.toml && \ | ||
./hekit build recipes/examples.toml --recipe_arg "toolkit-path=${HOME}/he-toolkit" && \ | ||
./hekit build recipes/sample-kernels.toml --recipe_arg "toolkit-path=${HOME}/he-toolkit" | ||
|
||
ENTRYPOINT . docker/runners.sh && welcome_message && cd $HOME && /bin/bash |
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
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
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