Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4acbca17 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Add docker image for ai review repo

parent a90bd5f2
Loading
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -55,3 +55,17 @@ build_chromium:
        docker tag $CI_REGISTRY_IMAGE:chromium-master $CI_REGISTRY_IMAGE:chromium-latest;
        docker push $CI_REGISTRY_IMAGE:chromium-latest;
      fi

build_ai:
  stage: build
  tags:
    - generic_privileged
  script:
    - docker pull $CI_REGISTRY_IMAGE:ai-latest || true
    - docker build --cache-from $CI_REGISTRY_IMAGE:ai-latest -t $CI_REGISTRY_IMAGE:ai-$CI_COMMIT_REF_NAME -f Dockerfile.ai .
    - docker push $CI_REGISTRY_IMAGE:ai-$CI_COMMIT_REF_NAME
    - |
      if [ "$CI_COMMIT_REF_NAME" = "master" ]; then
        docker tag $CI_REGISTRY_IMAGE:ai-master $CI_REGISTRY_IMAGE:ai-latest;
        docker push $CI_REGISTRY_IMAGE:ai-latest;
      fi

Dockerfile.ai

0 → 100644
+11 −0
Original line number Diff line number Diff line
FROM python:3.13-slim

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && \
  apt-get install -qqy --no-install-recommends \
  git nodejs npm openssh-client

RUN npm install -g @openai/codex

COPY requirements-ai.txt /tmp/requirements-ai.txt
RUN pip install --root-user-action=ignore -q -r /tmp/requirements-ai.txt
+4 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ docker-android-apps-cicd is an open-source fork of [gitlab-ci-android](https://g

## How to add docker images to projects

This repo contains 3 images slim, full and chromium. 
This repo contains 4 images slim, full, chromium and ai.

The slim image is small in size and can be used for tasks like updating projects from upstream, running rsync tasks, etc. As those tasks doesn't need many packages therefore slim docker image can be used

@@ -16,12 +16,15 @@ The full image is used to build android apps. So it contains packages like pytho

The chromium image is used to build our browser.

The ai image is used to setup an environment for ai-review pipeline job

To add it to the project for use add one of the following changes according to requirements to .gitlab-ci.yml file

```
image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest
image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest
image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:chromium-latest
image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:ai-latest
```

To use changes which are not from master branch change latest to branch name or use commit sha

requirements-ai.txt

0 → 100644
+1 −0
Original line number Diff line number Diff line
httpx>=0.27.0