Skip to content

Commit

Permalink
dockerfile fix (#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1iktea committed Jul 2, 2024
1 parent 9b7946b commit d20cff3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bitacross-worker/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ ARG UID=1000
RUN adduser -u ${UID} --disabled-password --gecos '' litentry
RUN adduser -u ${UID} litentry sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# to fix Multi-node distributed worker encounters SGX permission errors.
RUN groupadd -g 121 sgx_prv && \
groupadd -g 108 sgx && \
usermod -aG sgx litentry && \
usermod -aG sgx_prv litentry

COPY --from=local-builder:latest /opt/sgxsdk /opt/sgxsdk
COPY --from=local-builder:latest /lib/x86_64-linux-gnu/libsgx* /lib/x86_64-linux-gnu/
Expand Down
5 changes: 5 additions & 0 deletions tee-worker/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ ARG UID=1000
RUN adduser -u ${UID} --disabled-password --gecos '' litentry
RUN adduser -u ${UID} litentry sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# to fix Multi-node distributed worker encounters SGX permission errors.
RUN groupadd -g 121 sgx_prv && \
groupadd -g 108 sgx && \
usermod -aG sgx litentry && \
usermod -aG sgx_prv litentry

COPY --from=local-builder:latest /opt/sgxsdk /opt/sgxsdk
COPY --from=local-builder:latest /lib/x86_64-linux-gnu/libsgx* /lib/x86_64-linux-gnu/
Expand Down

0 comments on commit d20cff3

Please sign in to comment.