Skip to content

Commit

Permalink
Merge pull request #166 from ropable/master
Browse files Browse the repository at this point in the history
Fix bug in ERServicePriorityData validator, update base image minor version, update dependency versions
  • Loading branch information
ropable authored Jul 1, 2024
2 parents 5bbe397 + 69046fe commit cadfea1
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/image-build-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
# Build and push Docker image (not on PR)
#----------------------------------------------
- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# syntax=docker/dockerfile:1
# Prepare the base environment.
FROM python:3.11.8-slim as builder_base_ibms
MAINTAINER [email protected]
LABEL org.opencontainers.image.source https://github.com/dbca-wa/ibms
FROM python:3.11.9-slim AS builder_base_ibms
LABEL org.opencontainers.image.authors=[email protected]
LABEL org.opencontainers.image.source=https://github.com/dbca-wa/ibms

RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y python3-dev libpq-dev gcc \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --upgrade pip
&& pip install --root-user-action=ignore --upgrade pip

# Install Python libs using Poetry.
FROM builder_base_ibms as python_libs_ibms
FROM builder_base_ibms AS python_libs_ibms
WORKDIR /app
ARG POETRY_VERSION=1.7.1
RUN pip install poetry=="${POETRY_VERSION}"
ARG POETRY_VERSION=1.8.3
RUN pip install --root-user-action=ignore poetry=="${POETRY_VERSION}"
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --only main
Expand Down
2 changes: 1 addition & 1 deletion ibms_project/ibms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ def validate_upload_file(file, file_type):
elif file_type == 'ERServicePriorityData':
return validate_headers(
row,
valid_count=8,
valid_count=6,
headings=[
'CategoryID',
'SerPriNo',
Expand Down
16 changes: 0 additions & 16 deletions ibms_project/templates/healthcheck.html

This file was deleted.

2 changes: 1 addition & 1 deletion kustomize/base/deployment_hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ spec:
name: cpu
target:
type: Utilization
averageUtilization: 250
averageUtilization: 500
type: Resource
2 changes: 1 addition & 1 deletion kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ patches:
- path: service_patch.yaml
images:
- name: ghcr.io/dbca-wa/ibms
newTag: 2.8.7
newTag: 2.8.8
216 changes: 55 additions & 161 deletions poetry.lock

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
[tool.poetry]
name = "ibms"
version = "2.8.7"
version = "2.8.8"
description = "Integrated Business Management System corporate application"
authors = ["Ashley Felton <[email protected]>"]
license = "Apache-2.0"
package-mode = false

[tool.poetry.dependencies]
python = ">=3.11"
django = "4.2.11"
psycopg = {version = "3.1.19", extras = ["binary", "pool"]}
psycopg = "3.2.1"
dbca-utils = "2.0.2"
django-extensions = "3.2.3"
python-dotenv = "1.0.1"
dj-database-url = "2.1.0"
dj-database-url = "2.2.0"
gunicorn = "22.0.0"
django-crispy-forms = "2.1"
django-crispy-forms = "2.2"
crispy-bootstrap5 = "2024.2"
xlrd = "2.0.1" # TODO: deprecate
xlutils = "2.0.0" # TODO: deprecate
xlwt = "1.3.0" # TODO: deprecate
openpyxl = "3.1.2"
webtemplate-dbca = "1.7.0"
whitenoise = {version = "6.6.0", extras = ["brotli"]}
openpyxl = "3.1.5"
webtemplate-dbca = "1.7.1"
whitenoise = {version = "6.7.0", extras = ["brotli"]}
mixer = "7.2.2"

[tool.poetry.group.dev.dependencies]
ipython = "^8.23.0"
ipython = "^8.26.0"
ipdb = "^0.13.13"
pre-commit = "^3.7.1"

Expand Down

0 comments on commit cadfea1

Please sign in to comment.