Skip to content

Commit

Permalink
[Docker] manylinux plugins deps pre-built image (WasmEdge#2737)
Browse files Browse the repository at this point in the history
Signed-off-by: Lîm Tsú-thuàn <[email protected]>
  • Loading branch information
dannypsnl authored Aug 15, 2023
1 parent 4c6ea9e commit 5116dcf
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,21 @@ jobs:
org.opencontainers.image.version=${{ needs.prep.outputs.version }}
org.opencontainers.image.created=${{ needs.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
- name: "Rebuild wasmedge/wasmedge:manylinux2014_x86_64-plugins-deps"
uses: docker/build-push-action@v4
with:
build-args: BASE=wasmedge/wasmedge:manylinux2014_x86_64
context: ./utils/docker
file: utils/docker/Dockerfile.manylinux2014-build-plugins-deps
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ needs.prep.outputs.docker_image }}:manylinux2014_x86_64-plugins-deps
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.version=${{ needs.prep.outputs.version }}
org.opencontainers.image.created=${{ needs.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
15 changes: 15 additions & 0 deletions utils/docker/Dockerfile.manylinux2014-build-plugins-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG BASE=wasmedge/wasmedge:manylinux2014_x86_64
FROM ${BASE}

ENV PATH /opt/rh/devtoolset-11/root/usr/bin${PATH:+:${PATH}}
ENV MANPATH /opt/rh/devtoolset-11/root/usr/share/man${MANPATH:+:${MANPATH}}
ENV INFOPATH /opt/rh/devtoolset-11/root/usr/share/info${INFOPATH:+:${INFOPATH}}
ENV PKG_CONFIG_PATH /opt/rh/devtoolset-11/root/usr/lib64/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}

RUN cd && (yum check-update || true) && yum install -y cmake wget unzip

COPY install-opencvmini.sh .
ENV OPENCV_VERSION=4.8.0
RUN [ "/bin/bash", "install-opencvmini.sh" ]

RUN yum clean all

0 comments on commit 5116dcf

Please sign in to comment.