Skip to content

Commit c2e8c0d

Browse files
alexey-gruzdevIgor Davidyukigor-davidyuk
authored
Bump version to 1.3 (#359)
* Bump version to 1.3 * Docker scan fixes (#361) * docker scan fixes * hadolint fix * anothe hadolint fix * revert installing libprotobuf Co-authored-by: igor-davidyuk <“iprotonv@protonmail.ch”> * Adding Gramine-related manual changes Co-authored-by: Igor Davidyuk <igor.davidyuk@intel.com> Co-authored-by: igor-davidyuk <“iprotonv@protonmail.ch”>
1 parent 3e33d43 commit c2e8c0d

File tree

6 files changed

+18
-15
lines changed

6 files changed

+18
-15
lines changed

openfl-gramine/Dockerfile.gramine

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ARG BASE_IMAGE=python:3.8
22
FROM ${BASE_IMAGE}
33

4+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
5+
46
# until these changes are not in pip, install from repo
57
RUN git clone https://github.com/intel/openfl.git
68
WORKDIR /openfl
@@ -16,7 +18,8 @@ RUN curl -fsSLo /usr/share/keyrings/gramine-keyring.gpg https://packages.gramine
1618
RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt \
1719
apt-get update && \
1820
apt-get install -y --no-install-recommends \
19-
gramine libprotobuf-c-dev
21+
gramine libprotobuf-c-dev \
22+
&& rm -rf /var/lib/apt/lists/*
2023
# there is an issue for libprotobuf-c in gramine repo, install from apt for now
2124

2225
# graminelibos is under this dir

openfl-gramine/Dockerfile.graminized.workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG BASE_IMAGE=gramine_openfl
22
FROM ${BASE_IMAGE} as builder
33

44
ARG WORKSPACE_ARCHIVE
5-
ADD ${WORKSPACE_ARCHIVE} /workspace.zip
5+
COPY ${WORKSPACE_ARCHIVE} /workspace.zip
66
RUN --mount=type=cache,target=/root/.cache/ \
77
fx workspace import --archive /workspace.zip
88

openfl-gramine/MANUAL.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ Building machine:
77
- Docker should be installed, user included in Docker group
88

99
Machines that will run an Aggregator and Collaborator containers should have the following:
10-
- SGX enabled in BIOS
11-
- Ubuntu with Linux kernel 5.11+
12-
- ? SGX drivers, it is built in kernel: `/dev/sgx_enclave`
13-
- [aesmd service](https://github.com/intel/linux-sgx) (`/var/run/aesmd/aesm.socket`)
10+
- FSGSBASE feature and SGX enabled from BIOS
11+
- Intel SGX driver or Linux 5.11+ driver
12+
- Intel SGX SDK/PSW
1413
</br>
1514
This is a short list, see more in [Gramine docs](https://gramine.readthedocs.io/en/latest/devel/building.html).
1615

openfl/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright (C) 2020-2021 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33
"""openfl version information."""
4-
__version__ = '1.2.1'
4+
__version__ = '1.3'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='openfl',
13-
version='1.2.1',
13+
version='1.3',
1414
author='Intel Corporation',
1515
description='Federated Learning for the Edge',
1616
long_description=long_description,

tests/github/test_graminize.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set -e
1+
set -euxo pipefail
22
# Test the pipeline
33
# =========== Set SGX_RUN variable to 0 or 1 ============
44

@@ -15,11 +15,6 @@ FQDN=localhost
1515
COL1_DATA_PATH=1
1616
COL2_DATA_PATH=2
1717

18-
if [ $REBUILD_IMAGES -gt 0 ]
19-
then
20-
REBUILD_OPTION="--rebuild"
21-
fi
22-
2318
# START
2419
# =====
2520
# Make sure you are in a Python virtual environment with the FL package installed.
@@ -34,8 +29,14 @@ FED_DIRECTORY=`pwd` # Get the absolute directory path for the workspace
3429
fx plan initialize -a ${FQDN}
3530

3631
openssl genrsa -3 -out ${FED_DIRECTORY}/key.pem 3072
32+
3733
# Build graminized app image
38-
fx workspace graminize -s ${FED_DIRECTORY}/key.pem --no-save $REBUILD_OPTION
34+
if [ $REBUILD_IMAGES -gt 0 ]
35+
then
36+
fx workspace graminize -s ${FED_DIRECTORY}/key.pem --no-save --rebuild
37+
else
38+
fx workspace graminize -s ${FED_DIRECTORY}/key.pem --no-save
39+
fi
3940

4041
# CERTIFICATION PART------------------------------
4142
# ================================================

0 commit comments

Comments
 (0)