diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 193f205..06d2709 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -13,10 +13,23 @@ jobs: push-image-to-docker-hub: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: checkout repo + uses: actions/checkout@v4 with: submodules: recursive + - name: checkout yiddish submodules (1/2) + uses: actions/checkout@v4 + with: + repository: ibleaman/loshn-koydesh-pronunciation + path: ext/yiddish/yiddish/submodules/loshn-koydesh-pronunciation + + - name: checkout yiddish submodules (2/2) + uses: actions/checkout@v4 + with: + repository: ibleaman/hasidify_lexicon + path: ext/yiddish/yiddish/submodules/hasidify_lexicon + - name: Build the Docker image run: > docker build . --tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }} diff --git a/.github/workflows/push-test-image.yml b/.github/workflows/push-test-image.yml index 786b893..538544a 100644 --- a/.github/workflows/push-test-image.yml +++ b/.github/workflows/push-test-image.yml @@ -13,10 +13,23 @@ jobs: push-image-to-docker-hub: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: checkout repo + uses: actions/checkout@v4 with: submodules: recursive + - name: checkout yiddish submodules (1/2) + uses: actions/checkout@v4 + with: + repository: ibleaman/loshn-koydesh-pronunciation + path: ext/yiddish/yiddish/submodules/loshn-koydesh-pronunciation + + - name: checkout yiddish submodules (2/2) + uses: actions/checkout@v4 + with: + repository: ibleaman/hasidify_lexicon + path: ext/yiddish/yiddish/submodules/hasidify_lexicon + - name: Build the Docker image run: docker build . --tag $DOCKER_USER/$REPO_NAME:test diff --git a/.gitmodules b/.gitmodules index cc82df3..4d50032 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,5 +3,5 @@ url = https://github.com/fadhleryani/Arabic_ALA-LC_Romanization.git [submodule "ext/yiddish"] path = ext/yiddish - url = https://github.com/ibleaman/yiddish.git + url = https://github.com/scossu/yiddish.git branch = loc diff --git a/Dockerfile b/Dockerfile index 578751e..7b569e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,18 +10,17 @@ RUN addgroup --system www RUN adduser --system www RUN gpasswd -a www www +WORKDIR ${_workroot} COPY entrypoint.sh uwsgi.ini wsgi.py ./ COPY ext ./ext/ COPY scriptshifter ./scriptshifter/ -WORKDIR ${_workroot} COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt # Remove development packages. RUN apt remove -y build-essential git RUN apt autoremove -y -RUN rm -rf ext/yiddish RUN chmod +x ./entrypoint.sh RUN chown -R www:www ${_workroot} .