Skip to content

Commit

Permalink
Script to build container images
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Dec 12, 2024
1 parent 6ed0f73 commit 733b0d3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/build-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Version
RCS_VERSION=v0.2.1

# To build container for local use
if [ -z "$RCS_NO_IMAGE_CACHE" ]; then
podman build --no-cache --build-arg=VERSION="${RCS_VERSION}" -t "${RCS_API_IMAGE:-quay.io/openshift-lightspeed/lightspeed-service-api:latest}" -f Containerfile
else
podman build --build-arg=VERSION=${RCS_VERSION} -t "${RCS_API_IMAGE:-quay.io/openshift-lightspeed/lightspeed-service-api:latest}" -f Containerfile
fi

# To test-run for local development
# podman run --rm -ti -p 8080:8080 ${RCS_API_IMAGE:-quay.io/openshift-lightspeed/lightspeed-service-api:latest}

0 comments on commit 733b0d3

Please sign in to comment.