Skip to content

Commit 575c6d0

Browse files
authored
Update to CCF 4.0.14 (#24)
1 parent 189f646 commit 575c6d0

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM mcr.microsoft.com/ccf/app/dev:3.0.1-virtual
1+
FROM mcr.microsoft.com/ccf/app/dev:4.0.14-virtual
22

33
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - && sudo apt-get install -y nodejs

.github/workflows/ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,35 @@ on:
99
jobs:
1010
build-cpp-app-sgx:
1111
runs-on: ubuntu-20.04
12-
container: mcr.microsoft.com/ccf/app/dev:3.0.1-sgx
12+
container: mcr.microsoft.com/ccf/app/dev:4.0.14-sgx
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Build app (SGX)
19-
run: mkdir -p build && cd build && CC="/opt/oe_lvi/clang-10" CXX="/opt/oe_lvi/clang++-10" cmake -GNinja -DCOMPILE_TARGET=sgx .. && ninja
19+
run: mkdir -p build && cd build && CC="clang-11" CXX="clang++-11" cmake -GNinja -DCOMPILE_TARGET=sgx .. && ninja
2020
working-directory: cpp
2121

2222
build-cpp-app-virtual:
2323
runs-on: ubuntu-20.04
24-
container: mcr.microsoft.com/ccf/app/dev:3.0.1-virtual
24+
container: mcr.microsoft.com/ccf/app/dev:4.0.14-virtual
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: Build app (virtual)
31-
run: mkdir -p build && cd build && CC="$(which clang-10)" CXX="$(which clang++-10)" cmake -GNinja -DCOMPILE_TARGET=virtual .. && ninja
31+
run: mkdir -p build && cd build && CC="$(which clang-15)" CXX="$(which clang++-15)" cmake -GNinja -DCOMPILE_TARGET=virtual .. && ninja
3232
working-directory: cpp
3333

3434
build-containers:
3535
runs-on: ubuntu-20.04
36-
container: mcr.microsoft.com/ccf/app/dev:3.0.1-sgx
36+
container: mcr.microsoft.com/ccf/app/dev:4.0.14-sgx
3737

3838
steps:
3939
- name: Checkout repository
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242
- name: Build C++ enclave container
4343
run: docker build -t ccf-app-template:cpp-enclave -f docker/ccf_app_cpp.enclave .

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ In the checkout of this repository:
122122
```bash
123123
$ cd cpp/
124124
$ mkdir build && cd build
125-
$ CC="/opt/oe_lvi/clang-10" CXX="/opt/oe_lvi/clang++-10" cmake -GNinja ..
125+
$ CC="clang-11" CXX="clang++-11" cmake -GNinja ..
126126
$ ninja
127127
$ ls
128128
libccf_app.enclave.so.signed # SGX-enabled application
@@ -175,10 +175,10 @@ $ docker run ccf-app-template:cpp-virtual
175175
If this repository is checked out on a bare VM (e.g. [for SGX deployments](https://docs.microsoft.com/en-us/azure/confidential-computing/quick-create-portal)), the dependencies required to build and run the C++ app can be installed as follows:
176176

177177
```bash
178-
$ wget https://github.com/microsoft/CCF/releases/download/ccf-2.0.0/ccf_2.0.7_amd64.deb
179-
$ sudo dpkg -i ccf_2.0.7_amd64.deb # Install CCF under /opt/ccf
180-
$ cat /opt/ccf/share/VERSION_LONG
181-
ccf-2.0.7
178+
$ wget https://github.com/microsoft/CCF/releases/download/ccf-4.0.14/ccf_virtual_4.0.14_amd64.deb
179+
$ sudo dpkg -i ccf_virtual_4.0.14_amd64.deb # Install CCF under /opt/ccf
180+
$ cat /opt/ccf_virtual/share/VERSION_LONG
181+
ccf-4.0.14
182182
$ /opt/ccf/getting_started/setup_vm/run.sh /opt/ccf/getting_started/setup_vm/app-dev.yml # Install dependencies
183183
```
184184

docker/ccf_app_cpp.enclave

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Build
2-
FROM mcr.microsoft.com/ccf/app/dev:3.0.1-sgx as builder
2+
FROM mcr.microsoft.com/ccf/app/dev:4.0.14-sgx as builder
33
COPY ./cpp /cpp
44
RUN mkdir -p /build/
55
WORKDIR /build/
6-
RUN CC="/opt/oe_lvi/clang-10" CXX="/opt/oe_lvi/clang++-10" cmake -DCOMPILE_TARGET=sgx -GNinja /cpp && ninja
6+
RUN CC="clang-11" CXX="clang++-11" cmake -DCOMPILE_TARGET=sgx -GNinja /cpp && ninja
77

88
# Run
9-
FROM mcr.microsoft.com/ccf/app/run:3.0.1-sgx
9+
FROM mcr.microsoft.com/ccf/app/run:4.0.14-sgx
1010

1111
COPY --from=builder /build/libccf_app.enclave.so.signed /app/
1212
COPY --from=builder /opt/ccf_sgx/bin/*.js /app/

docker/ccf_app_cpp.virtual

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Build
2-
FROM mcr.microsoft.com/ccf/app/dev:3.0.1-virtual as builder
2+
FROM mcr.microsoft.com/ccf/app/dev:4.0.14-virtual as builder
33
COPY ./cpp /cpp
44
RUN mkdir -p /build/
55
WORKDIR /build/
6-
RUN CC="$(which clang-10)" CXX="$(which clang++-10)" cmake -GNinja -DCOMPILE_TARGET=virtual /cpp && ninja
6+
RUN CC="clang-15" CXX="clang++-15" cmake -GNinja -DCOMPILE_TARGET=virtual /cpp && ninja
77

88
# Run
9-
FROM mcr.microsoft.com/ccf/app/run:3.0.1-virtual
9+
FROM mcr.microsoft.com/ccf/app/run:4.0.14-virtual
1010

1111
COPY --from=builder /build/libccf_app.virtual.so /app/
1212
COPY --from=builder /opt/ccf_virtual/bin/*.js /app/

docker/ccf_app_js.enclave

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Build
2-
FROM mcr.microsoft.com/ccf/app/dev:3.0.1-sgx as builder
2+
FROM mcr.microsoft.com/ccf/app/dev:4.0.14-sgx as builder
33

44
# Run
5-
FROM mcr.microsoft.com/ccf/app/run-js:3.0.1-sgx
5+
FROM mcr.microsoft.com/ccf/app/run-js:4.0.14-sgx
66

77
COPY --from=builder /opt/ccf_sgx/bin/*.js /app/
88
COPY --from=builder /opt/ccf_sgx/bin/keygenerator.sh /app/

docker/ccf_app_js.virtual

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Build
2-
FROM mcr.microsoft.com/ccf/app/dev:3.0.1-virtual as builder
2+
FROM mcr.microsoft.com/ccf/app/dev:4.0.14-virtual as builder
33

44
# Run
5-
FROM mcr.microsoft.com/ccf/app/run-js:3.0.1-virtual
5+
FROM mcr.microsoft.com/ccf/app/run-js:4.0.14-virtual
66

77
# Note: libjs_generic.virtual is not included in run-js container
88
COPY --from=builder /opt/ccf_virtual/lib/libjs_generic.virtual.so /usr/lib/ccf

js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"node": ">=14"
1111
},
1212
"dependencies": {
13-
"@microsoft/ccf-app": "^3.0.1"
13+
"@microsoft/ccf-app": "^4.0.14"
1414
},
1515
"devDependencies": {
1616
"@rollup/plugin-commonjs": "^17.1.0",

0 commit comments

Comments
 (0)