Skip to content

Commit

Permalink
Add dockerfile for sct
Browse files Browse the repository at this point in the history
SCT expects to have shell on docker image and entry point pointing to it
  • Loading branch information
dkropachev committed Sep 18, 2024
1 parent 1441853 commit 212c5fa
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 212c5fa

Please sign in to comment.