Skip to content

Commit

Permalink
Remove run layer
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Ivanov <[email protected]>
  • Loading branch information
alexander-e1off committed Jan 22, 2025
1 parent 55ab64a commit 339407f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/sanitizer-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ jobs:
- name: Check disk space
run: df . -h

- name: Check working space directory
run: du ${GITHUB_WORKSPACE} -h -d 1

- name : Cleanup image
- name : Remove unneeded packages to avoid runner quota exceeding.
run: |
sudo apt-get purge \
azure-cli microsoft-edge-stable google-cloud-cli \
google-chrome-stable temurin-21-jdk temurin-17-jdk \
temurin-11-jdk dotnet-sdk-8.0 firefox temurin-8-jdk \
clang-* ruby-* swift-* kotlin-* julia-* nodejs-* \
&& sudo apt-get autoremove && sudo rm -rf /var/lib/apt/lists/*
powershell libllvm17t64 libllvm18 libllvm16t64 \
openjdk-21-jre-headless mysql-server-core-8.0
sudo apt-get autoremove
sudo apt-get autoclean
- name: Check disk space after cleanup
run: |
Expand All @@ -37,7 +36,10 @@ jobs:
df . -h
- name: Create docker image with BlazingMQ and dependencies built with sanitizer instrumentation
run: docker build -f ${{ github.workspace }}/docker/sanitizers/Dockerfile --no-cache --build-arg SANITIZER_NAME=${{ inputs.sanitizer-name }} -t sanitizer-${{ inputs.sanitizer-name }} .
run: |
docker build -f ${{ github.workspace }}/docker/sanitizers/Dockerfile \
--no-cache --build-arg SANITIZER_NAME=${{ inputs.sanitizer-name }} \
-t sanitizer-${{ inputs.sanitizer-name }} .
- name: Run docker container with unit tests under sanitizer
run: docker run --rm sanitizer-${{ inputs.sanitizer-name }}
10 changes: 4 additions & 6 deletions docker/sanitizers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ RUN chmod +x docker/build_deps.sh
RUN chmod +x docker/sanitizers/build_sanitizer.sh
RUN docker/sanitizers/build_sanitizer.sh ${SANITIZER_NAME}

FROM build AS run
# FROM build AS run
# Copy the built binaries and run unit test script
COPY --from=build /blazingmq/cmake.bld/Linux /blazingmq
#WORKDIR /blazingmq
#RUN chmod +x run-unittests.sh
#ENTRYPOINT [ "/bin/bash" ]
CMD [ "./run-unittests.sh" ]
# COPY --from=build /blazingmq/cmake.bld/Linux /blazingmq

CMD [ "/blazingmq/cmake.bld/Linux/run-unittests.sh" ]

0 comments on commit 339407f

Please sign in to comment.