Skip to content

Commit

Permalink
Installing XRT 2021.1 packages in docker container (#8474)
Browse files Browse the repository at this point in the history
* Adding dockerfile to install XRT packages

* Update xrt_master_2021.1.yml

- adding step to copy XRT, XRM and XCR packages under Dockerfile dir 

- installed XRT and XRM packages in 5 docker images as per request (https://jira.xilinx.com/browse/SR-958176)

* docker images steps are coming from composite workflow, passing few secrets to composite workflow
  • Loading branch information
SubhedarV authored Oct 2, 2024
1 parent 98f8063 commit 210dc17
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/xrt_master_2021.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ jobs:
echo "XRT_VERSION_PATCH=$(($GITHUB_RUN_NUMBER+717))" >> $GITHUB_ENV
echo "PATH=/usr/bin:$PATH" >> $GITHUB_ENV
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: '2021.1'
fetch-depth: 0
path: ${{ github.workspace }}/${{ env.XRT_VERSION_PATCH }}
submodules: recursive

- name: Checkout private repository
uses: actions/checkout@v3
with:
Expand All @@ -197,7 +205,6 @@ jobs:
github-server-url: ${{ secrets.SERVER_URL }}
path: composite-workflows
ref: '2021.1'


- name: Use composite action package download
uses: ./composite-workflows/package-download
Expand All @@ -211,6 +218,10 @@ jobs:
NPATH: ${{ secrets.NPATH }}
USER: ${{ secrets.USER }}
github-server-url: ${{ secrets.SERVER_URL }}
workspace: ${{ github.workspace }}
appConfig4: ${{ secrets.APP_CONFIG4 }}
huname: ${{ secrets.HARBOR_USERNAME }}
hpwd: ${{ secrets.HARBOR_PASSWORD }}

# extract-platforms:
# needs: package-download
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE}

RUN echo "Using base image: ${BASE_IMAGE}" # Debug statement

ARG PACKAGE_FILE
RUN echo "Using package file: ${PACKAGE_FILE}" # Debug statement


COPY ${PACKAGE_FILE} /tmp/
COPY xcr_* /tmp/
COPY xrm_* /tmp/

ARG INSTALL_COMMANDS
RUN eval "${INSTALL_COMMANDS}"

0 comments on commit 210dc17

Please sign in to comment.