-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'split_image' into test
- Loading branch information
Showing
9 changed files
with
91 additions
and
46 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,39 @@ | ||
name: Push app image | ||
on: | ||
# This runs on v *.*.0 after the base image has been | ||
# built and pushed, or on v | ||
push: | ||
tags: | ||
- "v*.*.[1-9]*" | ||
workflow_run: | ||
workflows: ["Push base image"] | ||
types: ["completed"] | ||
|
||
env: | ||
DOCKER_USER: lcnetdev | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_HUB}} | ||
REPO_NAME: scriptshifter | ||
|
||
jobs: | ||
push-image-to-docker-hub: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build the Docker image | ||
run: > | ||
docker build -f Dockerfile . | ||
--tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }} | ||
--tag $DOCKER_USER/$REPO_NAME:latest | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: lcnetdev | ||
password: ${{ secrets.DOCKER_HUB }} | ||
|
||
- name: Push to Docker Hub | ||
run: docker push $DOCKER_USER/$REPO_NAME --all-tags |
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
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
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
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,7 @@ | ||
# External dependencies. | ||
aksharamukha>=2.1,<3 | ||
camel-tools>=1.5 | ||
funcy>=1.15,<2 | ||
pymarc>=4.0,<5 | ||
repackage>=0.7.3 | ||
./ext/yiddish |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
aksharamukha>=2.1,<3 | ||
camel-tools>=1.5 | ||
# Core application dependencies. | ||
flask>=2.3,<3 | ||
funcy>=1.15,<2 | ||
pymarc>=4.0,<5 | ||
python-dotenv>=1.0,<2 | ||
pyyaml>=6.0,<7 | ||
repackage>=0.7.3 | ||
uwsgi>=2.0,<2.1 | ||
./ext/yiddish |
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
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,21 @@ | ||
FROM python:3.10-slim-bookworm | ||
|
||
RUN apt update | ||
RUN apt install -y build-essential tzdata gfortran libopenblas-dev libboost-all-dev libpcre2-dev | ||
|
||
ENV TZ=America/New_York | ||
ARG WORKROOT "/usr/local/scriptshifter/src" | ||
|
||
RUN addgroup --system www | ||
RUN adduser --system www | ||
RUN gpasswd -a www www | ||
|
||
# Copy external dependencies. | ||
WORKDIR ${WORKROOT} | ||
COPY ext ./ext/ | ||
COPY deps.txt ./ | ||
RUN pip install --no-cache-dir -r deps.txt | ||
|
||
# Remove development packages. | ||
RUN apt remove -y build-essential git | ||
RUN apt autoremove -y |
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,7 @@ | ||
FROM python:3.10-slim-bookworm | ||
|
||
RUN apt update | ||
RUN apt install -y build-essential libpcre2-dev | ||
|
||
RUN pip install uwsgi | ||
|