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
ead75c9d
Unverified
Commit
ead75c9d
authored
Aug 16, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-3039-downloadwhitelist
parent
4050b97e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
3 deletions
+72
-3
dockerimagerelease.yml
.github/workflows/dockerimagerelease.yml
+32
-0
Dockerfile
Dockerfile
+2
-2
DockerfileRelease
DockerfileRelease
+16
-0
DockerfileSimulation
DockerfileSimulation
+1
-1
build_instructions.txt
build_instructions.txt
+21
-0
No files found.
.github/workflows/dockerimagerelease.yml
0 → 100644
View file @
ead75c9d
name
:
Build, test and push release SGX container
on
:
[
push
]
jobs
:
build
:
runs-on
:
ubuntu-latest
env
:
DOCKER_USERNAME
:
${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD
:
${{ secrets.DOCKER_PASSWORD }}
steps
:
-
name
:
Login to docker
env
:
GITHUB_TOKEN
:
${{ secrets.DOCKER_SECRET }}
run
:
docker login -u skalelabs -p ${GITHUB_TOKEN}
-
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
:
deploy docker image
if
:
contains(github.ref, 'develop') || contains(github.ref, 'beta') || contains(github.ref, 'master') || 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 DockerfileRelease sgxwallet_release
bash ./scripts/publish_image.sh sgxwallet_release
\ No newline at end of file
Dockerfile
View file @
ead75c9d
FROM
skalenetwork/sgxwallet_base:latest
FROM
skalenetwork/sgxwallet_base:latest
COPY
. /usr/src/sdk
COPY
. /usr/src/sdk
RUN
apt
-install
curl
RUN
apt
install
-y
curl
WORKDIR
/usr/src/sdk
WORKDIR
/usr/src/sdk
RUN
cp
-f
secure_enclave/secure_enclave.config.xml.release secure_enclave/secure_enclave.config.xml
RUN
touch
/var/hwmode
RUN
touch
/var/hwmode
...
...
DockerfileRelease
0 → 100644
View file @
ead75c9d
FROM skalenetwork/sgxwallet_base:latest
COPY . /usr/src/sdk
RUN apt install -y curl
WORKDIR /usr/src/sdk
RUN touch /var/hwmode
RUN ./autoconf.bash
RUN ./configure --with-sgx-build=release
RUN bash -c "make -j$(nproc)"
RUN ccache -sz
RUN mkdir /usr/src/sdk/sgx_data
COPY docker/start.sh ./
ENTRYPOINT ["/usr/src/sdk/start.sh"]
DockerfileSimulation
View file @
ead75c9d
FROM skalenetwork/sgxwallet_base:latest
FROM skalenetwork/sgxwallet_base:latest
RUN apt
-install
curl
RUN apt
install -y
curl
RUN ccache -sz
RUN ccache -sz
...
...
build_instructions.txt
0 → 100644
View file @
ead75c9d
How to Build/Execute the C++11 sample program
---------------------------------------------
1. Install Intel(R) Software Guard Extensions (Intel(R) SGX) SDK for Linux* OS
2. Make sure your environment is set:
$ source ${sgx-sdk-install-path}/environment
3. Build the project with the prepared Makefile:
a. Hardware Mode, Debug build:
$ make
b. Hardware Mode, Pre-release build:
$ make SGX_PRERELEASE=1 SGX_DEBUG=0
c. Hardware Mode, Release build:
$ make SGX_DEBUG=0
d. Simulation Mode, Debug build:
$ make SGX_MODE=SIM
e. Simulation Mode, Pre-release build:
$ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
f. Simulation Mode, Release build:
$ make SGX_MODE=SIM SGX_DEBUG=0
4. Execute the binary directly:
$ ./app
5. Remember to "make clean" before switching build mode
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