Skip to content

Commit

Permalink
added usearch dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDMurray committed Apr 3, 2024
1 parent dfa7159 commit 2662544
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/push-usearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build usearch

on:
workflow_dispatch

#When updating images change image tag below to correspond to changes
env:
IMAGE_NAME: usearch
IMAGE_TAG: v11

jobs:
build:
name: Build
#Using ubuntu-22.04 instead of ubuntu-latest to use Docker 24 instead of Docker 25 as it causes gitpod issues
runs-on: ubuntu-22.04

steps:
- name: Clean workspace before start
run: rm -rf $GITHUB_WORKSPACE/*

- uses: actions/[email protected]

- name: Check Docker version
run: docker --version

- name: Build image
id: build-image
run: docker build -t ${IMAGE_NAME}:${IMAGE_TAG} -f ${IMAGE_NAME}/Dockerfile .

- name: Quay.io login
run: docker login -u ${{ secrets.DOCKERBUILD_ROBOT_USERNAME }} --password-stdin <<< ${{ secrets.DOCKERBUILD_ROBOT_PASSWORD }} quay.io

- name: Tag image
run: docker tag ${IMAGE_NAME}:${IMAGE_TAG} quay.io/ecoflowucl/${IMAGE_NAME}:${IMAGE_TAG}

- name: Push image
run: docker push quay.io/ecoflowucl/${IMAGE_NAME}:${IMAGE_TAG}

- name: Remove docker config
run: rm -rf /home/runner/.docker

- name: Clean workspace after finish
run: rm -rf $GITHUB_WORKSPACE/*
13 changes: 13 additions & 0 deletions usearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:jammy-20240227

ARG usearch_version='11.0.667_i86linux32'

RUN apt-get update \
&& apt-get install -y procps wget \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

RUN wget "https://www.drive5.com/downloads/usearch${usearch_version}.gz" -O /opt/usearch.gz && \
gunzip /opt/usearch.gz && \
chmod +x /opt/usearch

ENV PATH="${PATH}:/opt"

0 comments on commit 2662544

Please sign in to comment.