Skip to content

Commit

Permalink
Added make and build target for exporter
Browse files Browse the repository at this point in the history
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
  • Loading branch information
maia-iyer committed Aug 21, 2023
1 parent d205954 commit bc04a25
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
############### Default settings ###############
BACKEND_PORT=8080
IMAGE_REPOSITORY=quay.io/opendatahub/odh-dashboard:nightly
EXPORTER_IMAGE_TAG=ghcr.io/project-codeflare/mcad-exporter:nightly
DOC_LINK ='https://opendatahub.io/docs'
COMMUNITY_LINK ='https://opendatahub.io/community'
ENABLED_APPS_CM = 'odh-enabled-applications-config'
Expand Down
12 changes: 12 additions & 0 deletions Dockerfile.exporter
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:17.9.0-alpine

WORKDIR /usr/src/app

COPY exporter .

RUN npm install

EXPOSE 9101

CMD ["npm", "run", "start:dev"]
#ENTRYPOINT npm run start:dev
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ endif

CONTAINER_BUILDER=podman
CONTAINER_DOCKERFILE=Dockerfile
EXPORTER_DOCKERFILE=Dockerfile.exporter

##################################

Expand All @@ -28,6 +29,11 @@ build:
echo "Building ${IMAGE_REPOSITORY} from ${CONTAINER_DOCKERFILE}"
${CONTAINER_BUILDER} build -f ${CONTAINER_DOCKERFILE} -t ${IMAGE_REPOSITORY} .

.PHONY: build-exporter
build-exporter:
echo "Building ${EXPORTER_IMAGE_TAG} from ${EXPORTER_DOCKERFILE}"
${CONTAINER_BUILDER} build -f ${EXPORTER_DOCKERFILE} -t ${EXPORTER_IMAGE_TAG} .

##################################

# PUSH - push image to repository
Expand Down

0 comments on commit bc04a25

Please sign in to comment.