Skip to content

Commit

Permalink
Add the docker files for conqueue and linked blocking queue
Browse files Browse the repository at this point in the history
benchmarking.

Signed-off-by: Keshava Munegowda <[email protected]>
  • Loading branch information
kmgowda committed May 25, 2024
1 parent 3af9d4f commit e32a5c2
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ allprojects {

if (project.path.startsWith(":drivers")) {
doLast {
println "generatering file : " + outDir + "/" + outFile
println "generating file : " + outDir + "/" + outFile

configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts.each { artifact ->
def id = artifact.moduleVersion.id
Expand Down
3 changes: 3 additions & 0 deletions dockers/sbk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ RUN mkdir -p ${APP_HOME}/drivers

# Copy the SBK storage drivers
COPY --chown=root:root drivers/file ${APP_HOME}/drivers/file
COPY --chown=root:root drivers/conqueue ${APP_HOME}/drivers/conqueue
COPY --chown=root:root drivers/linkedbq ${APP_HOME}/drivers/linkedbq
COPY --chown=root:root drivers/concurrentq ${APP_HOME}/drivers/concurrentq
COPY --chown=root:root drivers/filestream ${APP_HOME}/drivers/filestream
COPY --chown=root:root drivers/asyncfile ${APP_HOME}/drivers/asyncfile
COPY --chown=root:root drivers/hdfs ${APP_HOME}/drivers/hdfs
Expand Down
61 changes: 61 additions & 0 deletions dockers/sbk-conqueue
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
##
# Copyright (c) KMG. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
##

# Building Container
FROM gradle:7.5.0-jdk17 as SbkGradleBuilder
MAINTAINER Keshava Munegowda <[email protected]>
USER root

ENV APP_NAME=sbk
ENV SBK_PROJECT=conqueue
ENV APP_HOME=/opt/${APP_NAME}

WORKDIR /opt/sbk

COPY --chown=root:root gradle ${APP_HOME}/gradle
COPY --chown=root:root build.gradle ${APP_HOME}/build.gradle
COPY --chown=root:root build-drivers.gradle ${APP_HOME}/build-drivers.gradle
COPY --chown=root:root gradle.properties ${APP_HOME}/gradle.properties
COPY --chown=root:root settings.gradle ${APP_HOME}/settings.gradle
COPY --chown=root:root settings-drivers.gradle ${APP_HOME}/settings-drivers.gradle
COPY --chown=root:root gradlew ${APP_HOME}/gradlew
COPY --chown=root:root checkstyle ${APP_HOME}/checkstyle
COPY --chown=root:root perl ${APP_HOME}/perl
COPY --chown=root:root sbk-api ${APP_HOME}/sbk-api
COPY --chown=root:root sbk-yal ${APP_HOME}/sbk-yal
COPY --chown=root:root sbm ${APP_HOME}/sbm
COPY --chown=root:root sbk-gem ${APP_HOME}/sbk-gem
COPY --chown=root:root sbk-gem-yal ${APP_HOME}/sbk-gem-yal

RUN mkdir -p ${APP_HOME}/drivers

# Copy the SBK storage drivers
COPY --chown=root:root drivers/concurrentq ${APP_HOME}/drivers/concurrentq
COPY --chown=root:root drivers/conqueue ${APP_HOME}/drivers/conqueue



ENV GRADLE_USER_HOME=/opt/SBK
RUN gradle :${SBK_PROJECT}:distTar --no-daemon --info --stacktrace

# Runtime Container
FROM openjdk:17-jdk-slim as SbkApp
ENV APP_NAME=sbk
ENV SBK_PROJECT=conqueue
ENV APP_HOME=/opt/${APP_NAME}

COPY --from=SbkGradleBuilder ${APP_HOME}/${SBK_PROJECT}/build/distributions/${APP_NAME}-*.tar /opt/${APP_NAME}.tar

RUN tar -xvf /opt/${APP_NAME}.tar -C /opt/.
RUN mv /opt/${APP_NAME}-* /opt/${APP_NAME}

EXPOSE 9718

ENTRYPOINT ["/opt/sbk/bin/sbk-conqueue"]
61 changes: 61 additions & 0 deletions dockers/sbk-linkedbq
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
##
# Copyright (c) KMG. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
##

# Building Container
FROM gradle:7.5.0-jdk17 as SbkGradleBuilder
MAINTAINER Keshava Munegowda <[email protected]>
USER root

ENV APP_NAME=sbk
ENV SBK_PROJECT=linkedbq
ENV APP_HOME=/opt/${APP_NAME}

WORKDIR /opt/sbk

COPY --chown=root:root gradle ${APP_HOME}/gradle
COPY --chown=root:root build.gradle ${APP_HOME}/build.gradle
COPY --chown=root:root build-drivers.gradle ${APP_HOME}/build-drivers.gradle
COPY --chown=root:root gradle.properties ${APP_HOME}/gradle.properties
COPY --chown=root:root settings.gradle ${APP_HOME}/settings.gradle
COPY --chown=root:root settings-drivers.gradle ${APP_HOME}/settings-drivers.gradle
COPY --chown=root:root gradlew ${APP_HOME}/gradlew
COPY --chown=root:root checkstyle ${APP_HOME}/checkstyle
COPY --chown=root:root perl ${APP_HOME}/perl
COPY --chown=root:root sbk-api ${APP_HOME}/sbk-api
COPY --chown=root:root sbk-yal ${APP_HOME}/sbk-yal
COPY --chown=root:root sbm ${APP_HOME}/sbm
COPY --chown=root:root sbk-gem ${APP_HOME}/sbk-gem
COPY --chown=root:root sbk-gem-yal ${APP_HOME}/sbk-gem-yal

RUN mkdir -p ${APP_HOME}/drivers

# Copy the SBK storage drivers
COPY --chown=root:root drivers/concurrentq ${APP_HOME}/drivers/concurrentq
COPY --chown=root:root drivers/linkedbq ${APP_HOME}/drivers/linkedbq



ENV GRADLE_USER_HOME=/opt/SBK
RUN gradle :${SBK_PROJECT}:distTar --no-daemon --info --stacktrace

# Runtime Container
FROM openjdk:17-jdk-slim as SbkApp
ENV APP_NAME=sbk
ENV SBK_PROJECT=linkedbq
ENV APP_HOME=/opt/${APP_NAME}

COPY --from=SbkGradleBuilder ${APP_HOME}/${SBK_PROJECT}/build/distributions/${APP_NAME}-*.tar /opt/${APP_NAME}.tar

RUN tar -xvf /opt/${APP_NAME}.tar -C /opt/.
RUN mv /opt/${APP_NAME}-* /opt/${APP_NAME}

EXPOSE 9718

ENTRYPOINT ["/opt/sbk/bin/sbk-linkedbq"]

0 comments on commit e32a5c2

Please sign in to comment.