Skip to content

Commit

Permalink
halve docker image size
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Werner-Meier <dylan.bloger@gmail.com>
  • Loading branch information
unautre authored and farodin91 committed Jun 24, 2024
1 parent 4fd338b commit 55880ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janusgraph-dist/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN groupadd -r janusgraph --gid=999 && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends krb5-user && \
rm -rf /var/lib/apt/lists/*

COPY --from=builder /opt/janusgraph/ /opt/janusgraph/
COPY --from=builder --chown=999:999 /opt/janusgraph/ /opt/janusgraph/
COPY --from=builder /opt/yq /usr/bin/yq
COPY docker/docker-entrypoint.sh /usr/local/bin/
COPY docker/load-initdb.sh /usr/local/bin/
Expand All @@ -73,7 +73,7 @@ RUN chmod 755 /usr/local/bin/docker-entrypoint.sh && \
chmod 755 /usr/local/bin/load-initdb.sh && \
chmod 755 /usr/bin/yq && \
mkdir -p ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR} && \
chown -R janusgraph:janusgraph ${JANUS_HOME} ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR}
chown -R janusgraph:janusgraph ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR}

EXPOSE 8182

Expand Down

1 comment on commit 55880ea

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 55880ea Previous: d35fc64 Ratio
org.janusgraph.JanusGraphSpeedBenchmark.basicAddAndDelete 12717.983549294273 ms/op 12468.444225291154 ms/op 1.02
org.janusgraph.GraphCentricQueryBenchmark.getVertices 877.8583097635333 ms/op 918.3423996712321 ms/op 0.96
org.janusgraph.MgmtOlapJobBenchmark.runClearIndex 217.37919817717392 ms/op 216.65935547028985 ms/op 1.00
org.janusgraph.MgmtOlapJobBenchmark.runReindex 338.78720855892857 ms/op 336.6219472083333 ms/op 1.01
org.janusgraph.JanusGraphSpeedBenchmark.basicCount 201.81085063390543 ms/op 212.17318113485976 ms/op 0.95
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 5083.156455663447 ms/op 4934.862177070978 ms/op 1.03
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingEmitRepeatSteps 17161.812726065124 ms/op 17119.84681319412 ms/op 1.00
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithSmallBatch 20548.63699894889 ms/op 20987.51313056889 ms/op 0.98
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.vertexCentricPropertiesFetching 57673.84890709999 ms/op 57050.64306146667 ms/op 1.01
org.janusgraph.CQLMultiQueryDropBenchmark.dropVertices 1578.7108674968902 ms/op 1559.969298241005 ms/op 1.01
org.janusgraph.CQLMultiQueryBenchmark.getAllElementsTraversedFromOuterVertex 7961.723409090149 ms/op 8318.72392928847 ms/op 0.96
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithDoubleUnion 375.62407264246576 ms/op 392.59846986303853 ms/op 0.96
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithUnlimitedBatch 4250.82782911254 ms/op 4240.712364445486 ms/op 1.00
org.janusgraph.CQLMultiQueryBenchmark.getNames 8332.063903372704 ms/op 8406.331584402715 ms/op 0.99
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesThreePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 6026.05832528861 ms/op 5987.64859878139 ms/op 1.01
org.janusgraph.CQLMultiQueryBenchmark.getLabels 7151.886552925887 ms/op 7290.028061798635 ms/op 0.98
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFilteredByAndStep 424.64559339244704 ms/op 435.76237709334333 ms/op 0.97
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFromMultiNestedRepeatStepStartingFromSingleVertex 12342.4058091675 ms/op 12783.126217693469 ms/op 0.97
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithCoalesceUsage 353.37268252339203 ms/op 363.9668594437082 ms/op 0.97
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 15560.873154462737 ms/op 15378.720663330263 ms/op 1.01
org.janusgraph.CQLMultiQueryBenchmark.getIdToOutVerticesProjection 243.2337471168929 ms/op 253.97183167148802 ms/op 0.96
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithUnlimitedBatch 15607.191733609525 ms/op 14617.308247215036 ms/op 1.07
org.janusgraph.CQLMultiQueryBenchmark.getNeighborNames 8486.726841639684 ms/op 8414.490379754512 ms/op 1.01
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingRepeatUntilSteps 8894.106534694 ms/op 9340.049792997386 ms/op 0.95
org.janusgraph.CQLMultiQueryBenchmark.getAdjacentVerticesLocalCounts 8548.31806507837 ms/op 8726.780923948296 ms/op 0.98

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.