Skip to content

Commit

Permalink
fix(docker-casa): upgrade lxml version (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
iromli authored Jul 21, 2022
1 parent a2050c8 commit bfc2c34
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
fi
# If the user passed a war version to build off ,change this war version.
GLUU_VERSION=${{ github.event.inputs.gluu_version }}
if [ ! -z "GLUU_VERSION" ]
if [ ! -z "$GLUU_VERSION" ]
then
python3 -c "from dockerfile_parse import DockerfileParser ; dfparser = DockerfileParser('./docker-${{ matrix.docker-images }}') ; dfparser.envs['GLUU_VERSION'] = '${{ github.event.inputs.gluu_version }}'"
echo "War vesrion has been modified."
Expand Down
4 changes: 4 additions & 0 deletions docker-casa/.hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ignored:
- DL3018 # Pin versions in apk add
- DL3013 # Pin versions in pip
- DL3003 # Use WORKDIR to switch to a directory
4 changes: 2 additions & 2 deletions docker-casa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM bellsoft/liberica-openjre-alpine:11.0.15
# ===============

RUN apk update \
&& apk upgrade \
&& apk add --no-cache python3 openssl tini py3-cryptography py3-lxml py3-psycopg2 py3-grpcio \
&& apk upgrade --available \
&& apk add --no-cache python3 openssl tini py3-cryptography py3-psycopg2 py3-grpcio \
&& apk add --no-cache --virtual .build-deps git wget zip \
&& mkdir -p /usr/java/latest \
&& ln -sf /usr/lib/jvm/jre /usr/java/latest/jre
Expand Down
15 changes: 13 additions & 2 deletions docker-casa/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
GLUU_VERSION=5.0.0
GLUU_VERSION?=5.0.0
IMAGE_NAME=gluufederation/casa
UNSTABLE_VERSION=dev
UNSTABLE_VERSION?=dev

.PHONY: test clean all build-dev trivy-scan grype-scan
.DEFAULT_GOAL := build-dev

build-dev:
@echo "[I] Building Docker image ${IMAGE_NAME}:${GLUU_VERSION}_${UNSTABLE_VERSION}"
@docker build --rm --force-rm -t ${IMAGE_NAME}:${GLUU_VERSION}_${UNSTABLE_VERSION} .

trivy-scan:
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${GLUU_VERSION}_${UNSTABLE_VERSION} using trivy"
@trivy image ${IMAGE_NAME}:${GLUU_VERSION}_${UNSTABLE_VERSION}

grype-scan:
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${GLUU_VERSION}_${UNSTABLE_VERSION} using grype"
@grype -v ${IMAGE_NAME}:${GLUU_VERSION}_${UNSTABLE_VERSION}

0 comments on commit bfc2c34

Please sign in to comment.