Skip to content

Commit 27998de

Browse files
authored
Merge pull request #47 from mobilecoinofficial/jgreat/24-04
update to 24.04 base
2 parents 29a1b45 + 9fe3e62 commit 27998de

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode/

Dockerfile.devcontainer

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ ARG USER_UID=1000
1717
ARG USER_GID=$USER_UID
1818

1919
# Create the user
20-
RUN groupadd --gid "${USER_GID}" "${USERNAME}" \
20+
RUN userdel -r ubuntu \
21+
&& groupadd --gid "${USER_GID}" "${USERNAME}" \
2122
&& useradd --uid "${USER_UID}" --gid "${USER_GID}" -m "${USERNAME}" -s /bin/bash \
2223
&& echo "${USERNAME} ALL=(root) NOPASSWD:ALL" > "/etc/sudoers.d/${USERNAME}" \
2324
&& chmod 0440 "/etc/sudoers.d/${USERNAME}" \
24-
&& chown -R sentz:sentz /opt
25+
&& chown -R sentz:sentz /opt \
26+
&& mkdir -p /home/sentz/.config/pip \
27+
&& echo "[global]" >> /home/sentz/.config/pip/pip.conf \
28+
&& echo "break-system-packages = true" >> /home/sentz/.config/pip/pip.conf \
29+
&& chown -R sentz:sentz /home/sentz
2530

2631
COPY startup-devcontainer.sh /usr/local/bin/startup-devcontainer.sh
2732

@@ -35,7 +40,7 @@ COPY --from=base / /
3540
ENV RUSTUP_HOME=/opt/rustup
3641
ENV CARGO_HOME=/opt/cargo
3742
ENV GOPATH=/opt/go/
38-
ENV PATH="/opt/cargo/bin:/usr/local/go/bin:${GOPATH}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/intel/sgxsdk/bin:/opt/intel/sgxsdk/bin/x64"
43+
ENV PATH="/home/sentz/.local/bin:/opt/cargo/bin:/usr/local/go/bin:${GOPATH}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/intel/sgxsdk/bin:/opt/intel/sgxsdk/bin/x64"
3944
ENV SGX_SDK=/opt/intel/sgxsdk
4045
ENV PKG_CONFIG_PATH=/opt/intel/sgxsdk/pkgconfig
4146
ENV LD_LIBRARY_PATH=/opt/intel/sgxsdk/sdk_libs

Dockerfile.fat-builder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apt-get update \
2121
postgresql-client \
2222
python3 \
2323
python3-pip \
24+
python3-poetry \
2425
psmisc \
2526
sudo \
2627
&& apt-get clean \

Dockerfile.rust-base

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2022 to 2024 MobileCoin Inc.
22
# hadolint global ignore=DL3008, DL3015
33

4-
FROM ubuntu:focal-20241011
4+
FROM ubuntu:noble-20241118.1
55
ARG TARGETARCH
66

77
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -34,7 +34,6 @@ RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime \
3434
libhidapi-dev \
3535
libprotobuf-dev \
3636
libpq-dev \
37-
libssl1.1 \
3837
libssl-dev \
3938
libudev-dev \
4039
libusb-1.0-0-dev \

Dockerfile.rust-sgx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ FROM mobilecoin/rust-base:${BASE_IMAGE_TAG}
99
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1010

1111
# Install SGX SDK
12-
ARG SGX_URL=https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu20.04-server/sgx_linux_x64_sdk_2.23.100.2.bin
12+
ARG SGX_URL=https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.23.100.2.bin
1313
RUN curl -sSfL -o sgx.bin "${SGX_URL}" \
1414
&& chmod +x ./sgx.bin \
1515
&& ./sgx.bin --prefix=/opt/intel \
1616
&& rm ./sgx.bin
1717

1818
# Install DCAP libraries
19-
ARG DCAP_VERSION=1.20.100.2-focal1
19+
ARG DCAP_VERSION=1.22.100.3-noble1
2020
RUN mkdir -p /etc/apt/keyrings \
2121
&& curl -sSfL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | gpg --dearmor -o /etc/apt/keyrings/intel-sgx.gpg \
22-
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main" | tee /etc/apt/sources.list.d/intel-sgx.list \
22+
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu noble main" | tee /etc/apt/sources.list.d/intel-sgx.list \
2323
&& apt-get update \
2424
&& apt-get install -y \
2525
libsgx-dcap-ql=${DCAP_VERSION} \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ We recommend referencing the image by the hash instead of a tag to verify a cons
1212
`rust-base` can be used by CI/CD for building and testing mobilecoin rust projects.
1313

1414
To build locally.
15+
1516
```
1617
docker build -f ./Dockerfile.rust-base -t mobilecoin/rust-base:latest .
1718
```

0 commit comments

Comments
 (0)