Skip to content

Commit

Permalink
Merge pull request #146 from scylladb/dk/add-sct-docker-file
Browse files Browse the repository at this point in the history
Add dockerfile for sct
  • Loading branch information
dkropachev authored Sep 18, 2024
2 parents 1441853 + 212c5fa commit 979155d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.sct
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM busybox:1.36.1 AS production
COPY ./scylla-bench .
ENTRYPOINT ["/bin/sh"]
LABEL com.scylladb.loader-type=scylla-bench
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ else
@echo 'Building docker image "${DOCKER_IMAGE_TAG}"'
@docker build -t ${DOCKER_IMAGE_TAG} -f ./Dockerfile build/
endif

build-sct-docker-image:
ifdef DOCKER_IMAGE_LABELS
@echo 'Building sct docker image "${DOCKER_IMAGE_TAG}" with custom labels "${DOCKER_IMAGE_LABELS}"'
@docker build -t ${DOCKER_IMAGE_TAG} --label "${DOCKER_IMAGE_LABELS}" -f ./Dockerfile.sct build/
else
@echo 'Building sct docker image "${DOCKER_IMAGE_TAG}"'
@docker build -t ${DOCKER_IMAGE_TAG} -f ./Dockerfile.sct build/
endif

0 comments on commit 979155d

Please sign in to comment.