Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
e50a3bff
Unverified
Commit
e50a3bff
authored
Nov 25, 2020
by
Stan Kladko
Committed by
GitHub
Nov 25, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #238 from skalenetwork/develop
Testing github actions
parents
665e91a2
4aaa6cb8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
5 deletions
+57
-5
dockerimageintelsubmission.yml
.github/workflows/dockerimageintelsubmission.yml
+35
-0
dockerimagerelease.yml
.github/workflows/dockerimagerelease.yml
+0
-2
DockerfileIntelSubmission
DockerfileIntelSubmission
+19
-0
secure_enclave.config.xml
secure_enclave/secure_enclave.config.xml
+2
-2
secure_enclave.config.xml.release
secure_enclave/secure_enclave.config.xml.release
+1
-1
No files found.
.github/workflows/dockerimageintelsubmission.yml
0 → 100644
View file @
e50a3bff
name
:
Build, test and push Intel SGX container
on
:
workflow_dispatch
:
push
:
jobs
:
build
:
runs-on
:
ubuntu-18.04
env
:
DOCKER_USERNAME
:
${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD
:
${{ secrets.DOCKER_PASSWORD }}
steps
:
-
name
:
Fail, if older Github Actions machine. Click "Re-run jobs"
run
:
cat /proc/cpuinfo | grep avx512
-
name
:
Login to docker
run
:
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
-
uses
:
actions/checkout@v1
-
name
:
submodule update
run
:
git submodule update --init --recursive
-
name
:
build and deploy docker image
if
:
|
contains(github.ref, 'stable')
run
:
|
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(cat VERSION)
echo "Version $VERSION"
export VERSION=$(bash ./scripts/calculate_version.sh $BRANCH $VERSION)
echo "::set-env name=VERSION::$VERSION"
echo "Version $VERSION"
export RELEASE=true
echo "::set-env name=RELEASE::$RELEASE"
bash ./scripts/build_image.sh DockerfileIntelSubmission sgxwallet_intelsubmission
bash ./scripts/publish_image.sh sgxwallet_intelsubmission
env
:
ACTIONS_ALLOW_UNSECURE_COMMANDS
:
true
.github/workflows/dockerimagerelease.yml
View file @
e50a3bff
...
...
@@ -16,8 +16,6 @@ jobs:
-
uses
:
actions/checkout@v1
-
name
:
submodule update
run
:
git submodule update --init --recursive
-
name
:
build
run
:
python3 scripts/docker_build.py Dockerfile sgxwallet ${GITHUB_SHA}
-
name
:
build and deploy docker image
if
:
|
contains(github.ref, 'develop') || contains(github.ref, 'beta') ||
...
...
DockerfileIntelSubmission
0 → 100644
View file @
e50a3bff
FROM skalenetwork/sgxwallet_base:latest
COPY . /usr/src/sdk
WORKDIR /usr/src/sdk
RUN cp -f secure_enclave/secure_enclave.config.xml.release secure_enclave/secure_enclave.config.xml
RUN apt update && apt install -y curl secure-delete
#Test signing key generation
RUN cd scripts && ./generate_signing_key.bash
RUN touch /var/hwmode
RUN ./autoconf.bash
RUN ./configure --with-sgx-build=release
RUN bash -c "make -j$(nproc)"
RUN cd scripts && ./sign_enclave.bash
RUN ccache -sz
RUN mkdir -p /usr/src/sdk/sgx_data
COPY docker/start.sh ./
RUN rm -rf /usr/src/sdk/sgx-sdk-build/
RUN rm /opt/intel/sgxsdk/lib64/*_sim.so
ENTRYPOINT ["/usr/src/sdk/start.sh"]
secure_enclave/secure_enclave.config.xml
View file @
e50a3bff
<EnclaveConfiguration>
<ProdID>
0
</ProdID>
<ISVSVN>
2
</ISVSVN>
<StackMaxSize>
0x
2
00000
</StackMaxSize>
<HeapMaxSize>
0x
2
00000
</HeapMaxSize>
<StackMaxSize>
0x
10
00000
</StackMaxSize>
<HeapMaxSize>
0x
1000
00000
</HeapMaxSize>
<TCSNum>
256
</TCSNum>
<TCSMaxNum>
256
</TCSMaxNum>
<TCSMinPool>
256
</TCSMinPool>
...
...
secure_enclave/secure_enclave.config.xml.release
View file @
e50a3bff
...
...
@@ -2,7 +2,7 @@
<ProdID>0</ProdID>
<ISVSVN>2</ISVSVN>
<StackMaxSize>0x1000000</StackMaxSize>
<HeapMaxSize>0x100000000</HeapMaxSize>
<HeapMaxSize>0x100000000
00
</HeapMaxSize>
<TCSNum>256</TCSNum>
<TCSMaxNum>256</TCSMaxNum>
<TCSMinPool>256</TCSMinPool>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment