Skip to content

Commit

Permalink
deployment: update
Browse files Browse the repository at this point in the history
* Updates python packages.
* Updates github action script.

 Co-Authored-by: Peter Weber <peter.weber@rero.ch>
  • Loading branch information
rerowep committed Jun 6, 2022
1 parent 851a172 commit ad6a1a8
Show file tree
Hide file tree
Showing 4 changed files with 621 additions and 618 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/continuous-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '12'

- name: Docker compose up
run: docker-compose up -d

- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9

Expand All @@ -35,7 +35,7 @@ jobs:
# echo "VIRTUAL_ENV=~/.cache/pypoetry/virtualenvs" >> $GITHUB_ENV

- name: Install Poetry
uses: snok/install-poetry@v1.1.1
uses: snok/install-poetry@v1

- name: Use Cache
uses: actions/cache@v2
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,22 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
FROM python:3.9-slim
FROM python:3.9-slim-buster

# # uwsgi uwsgitop uwsgi-tools

LABEL maintainer="software@rero.ch"
LABEL description="MEF (Multilingual Entity File) server with records for persons, works, etc. for reuse in integrated library systems (ILS)."

# require debian packages
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install --no-install-recommends -y git vim-tiny curl gcc gnupg libc6-dev && rm -rf /var/lib/apt/lists/*
RUN apt-get install --no-install-recommends -y git vim-tiny curl gcc gnupg libc6-dev procps && rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade setuptools wheel pip poetry

# # uwsgi uwsgitop uwsgi-tools

# Install Node
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install --no-install-recommends -y nodejs && rm -rf /var/lib/apt/lists/*

# RUN npm update
Expand Down
Loading

0 comments on commit ad6a1a8

Please # to comment.