-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves luxonis/depthai#295 Build libusb without udev support in the container since udev is typically not run inside containers
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 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,25 @@ | ||
name: Publish Docker image | ||
on: | ||
push: | ||
branches: | ||
- gen2_develop | ||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
file: ci/Dockerfile | ||
tags: luxonis/depthai-library:latest |
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,25 @@ | ||
name: Publish Docker image | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
file: ci/Dockerfile | ||
tags: "luxonis/depthai-library:${{ env.GITHUB_REF }}" |
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,23 @@ | ||
FROM luxonis/depthai-base:latest | ||
|
||
RUN apt install wget | ||
RUN wget https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.tar.bz2 | ||
RUN tar xf libusb-1.0.24.tar.bz2 | ||
RUN cd libusb-1.0.24 && \ | ||
./configure --disable-udev && \ | ||
make -j && make install | ||
|
||
RUN pip install opencv-python | ||
|
||
COPY . /depthai-python | ||
RUN mkdir -p depthai-python/build | ||
RUN cd /depthai-python && \ | ||
git submodule update --init --recursive && \ | ||
cd build && \ | ||
cmake .. && \ | ||
make -j | ||
ENV PYTHONPATH=/depthai-python/build | ||
|
||
RUN mkdir -p /depthai-python/examples/models/ | ||
RUN cd /depthai-python/examples/models/ && \ | ||
wget https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/network/mobilenet.blob |