Skip to content

Commit

Permalink
simplify dcap installation, switching completely to 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Vavala <[email protected]>
  • Loading branch information
bvavala committed Nov 5, 2024
1 parent 115d440 commit 6b602ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions common/crypto/attestation-api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)

INCLUDE(CMakeVariables.txt)

# get the tag of the dcap primitives (necessary to manage library links)
EXECUTE_PROCESS(COMMAND bash -c "cd $ENV{DCAP_PRIMITIVES} && git describe --tags" OUTPUT_VARIABLE DCAP_PRIMITIVES_TAG)
STRING(STRIP ${DCAP_PRIMITIVES_TAG} DCAP_PRIMITIVES_TAG)

###################################################################################################
# First run cmake in common
###################################################################################################
Expand Down Expand Up @@ -99,9 +95,7 @@ ADD_CUSTOM_COMMAND(TARGET ${B64ATTESTATION_TO_B64COLLATERAL}

TARGET_INCLUDE_DIRECTORIES(${B64ATTESTATION_TO_B64COLLATERAL} PRIVATE common)

IF("${DCAP_PRIMITIVES_TAG}" STREQUAL "DCAP_1.22")
SET(DCAP_LINK_LIBS ${DCAP_QV_PATH}/appraisal/qal/libdcap_qal.a)
ENDIF()
SET(DCAP_LINK_LIBS ${DCAP_QV_PATH}/appraisal/qal/libdcap_qal.a)

TARGET_LINK_LIBRARIES(${B64ATTESTATION_TO_B64COLLATERAL}
#${DCAP_QV_PATH}/dcap_quoteverify/linux/libsgx_dcap_quoteverify.a
Expand Down
5 changes: 1 addition & 4 deletions docker/pdo_services_base.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ RUN apt-get install -y \
libsgx-dcap-default-qpl-dev \
jq

ARG DCAP=1.19
ARG DCAP=1.22
ENV DCAP_PRIMITIVES=/tmp/SGXDataCenterAttestationPrimitives

RUN git clone https://github.com/intel/SGXDataCenterAttestationPrimitives.git ${DCAP_PRIMITIVES} \
Expand Down Expand Up @@ -146,7 +146,4 @@ RUN useradd -m -u $UID -g $GID -d /project/pdo -o -s /bin/bash $UNAME
RUN chown --recursive $UNAME:$UNAME /project/pdo
USER $UNAME

#this is necessary for git operations such as "git describe --tags" from the new user
RUN git config --global --add safe.directory ${DCAP_PRIMITIVES}

ENTRYPOINT ["/bin/bash"]

0 comments on commit 6b602ed

Please sign in to comment.