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
3afd49ef
Unverified
Commit
3afd49ef
authored
Mar 19, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2341 Added tags for older commits
parent
81c9d709
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
4 deletions
+21
-4
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+3
-3
enabling-sgx.md
docs/enabling-sgx.md
+10
-0
docker_build.py
scripts/docker_build.py
+4
-0
docker_push.py
scripts/docker_push.py
+3
-1
docker_test.py
scripts/docker_test.py
+1
-0
No files found.
.github/workflows/dockerimagesim.yml
View file @
3afd49ef
...
@@ -12,11 +12,11 @@ jobs:
...
@@ -12,11 +12,11 @@ jobs:
-
name
:
submodule update
-
name
:
submodule update
run
:
git submodule update --init --recursive
run
:
git submodule update --init --recursive
-
name
:
build
-
name
:
build
run
:
python3 scripts/docker_build.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_build.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
${GITHUB_SHA}
-
name
:
test
-
name
:
test
run
:
python3 scripts/docker_test.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_test.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
${GITHUB_SHA}
-
name
:
push
-
name
:
push
run
:
python3 scripts/docker_push.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_push.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
${GITHUB_SHA}
docs/enabling-sgx.md
View file @
3afd49ef
...
@@ -49,6 +49,16 @@ that we use in testing.
...
@@ -49,6 +49,16 @@ that we use in testing.
Reboot you machine after driver install. Do
`ls /dev/isgx`
to check that
`isgx`
device is properly installed.
Reboot you machine after driver install. Do
`ls /dev/isgx`
to check that
`isgx`
device is properly installed.
If you do not see the
`isgx`
device, you need to troubleshoot your driver installation.
If you do not see the
`isgx`
device, you need to troubleshoot your driver installation.
If driver installation fails, you can also try installing driver from the
Intel github repository. Do
```
bash
git clone https://github.com/intel/linux-sgx-driver
```
And then follow instructions in README.md
# Troubleshooting Installation
# Troubleshooting Installation
-
If the message
`intel_sgx: SGX is not enabled`
appears in
`/var/log/syslog`
-
If the message
`intel_sgx: SGX is not enabled`
appears in
`/var/log/syslog`
...
...
scripts/docker_build.py
View file @
3afd49ef
...
@@ -52,6 +52,7 @@ topDir = os.getcwd() + "/sgxwallet"
...
@@ -52,6 +52,7 @@ topDir = os.getcwd() + "/sgxwallet"
BRANCH
=
sys
.
argv
[
1
];
BRANCH
=
sys
.
argv
[
1
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
IMAGE_NAME
=
sys
.
argv
[
3
];
IMAGE_NAME
=
sys
.
argv
[
3
];
COMMIT_HASH
=
sys
.
argv
[
4
]
if
(
BRANCH
==
"develop"
)
:
if
(
BRANCH
==
"develop"
)
:
TAG_POSTFIX
=
"latest"
;
TAG_POSTFIX
=
"latest"
;
else
:
else
:
...
@@ -67,3 +68,6 @@ assert subprocess.call(["pwd"]) == 0;
...
@@ -67,3 +68,6 @@ assert subprocess.call(["pwd"]) == 0;
assert
subprocess
.
call
([
"docker"
,
"build"
,
topDir
,
"--file"
,
topDir
+
"/"
+
DOCKER_FILE_NAME
,
"--tag"
,
assert
subprocess
.
call
([
"docker"
,
"build"
,
topDir
,
"--file"
,
topDir
+
"/"
+
DOCKER_FILE_NAME
,
"--tag"
,
FULL_IMAGE_NAME
])
==
0
;
FULL_IMAGE_NAME
])
==
0
;
assert
subprocess
.
call
([
"docker"
,
"tag"
,
FULL_IMAGE_NAME
,
IMAGE_NAME
+
":"
+
COMMIT_HASH
])
==
0
;
scripts/docker_push.py
View file @
3afd49ef
...
@@ -56,6 +56,8 @@ SCRIPTS_DIR = topDir + "/scripts"
...
@@ -56,6 +56,8 @@ SCRIPTS_DIR = topDir + "/scripts"
BRANCH
=
sys
.
argv
[
1
];
BRANCH
=
sys
.
argv
[
1
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
IMAGE_NAME
=
sys
.
argv
[
3
];
IMAGE_NAME
=
sys
.
argv
[
3
];
COMMIT_HASH
=
sys
.
argv
[
4
]
if
(
BRANCH
==
"develop"
)
:
if
(
BRANCH
==
"develop"
)
:
TAG_POSTFIX
=
"latest"
;
TAG_POSTFIX
=
"latest"
;
else
:
else
:
...
@@ -63,5 +65,5 @@ else :
...
@@ -63,5 +65,5 @@ else :
FULL_IMAGE_NAME
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
;
FULL_IMAGE_NAME
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
;
assert
subprocess
.
call
([
"docker"
,
"push"
,
FULL_IMAGE_NAME
]
)
==
0
;
assert
subprocess
.
call
([
"docker"
,
"push"
)
==
0
;
scripts/docker_test.py
View file @
3afd49ef
...
@@ -38,6 +38,7 @@ SCRIPTS_DIR = topDir + "/scripts"
...
@@ -38,6 +38,7 @@ SCRIPTS_DIR = topDir + "/scripts"
BRANCH
=
sys
.
argv
[
1
];
BRANCH
=
sys
.
argv
[
1
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
DOCKER_FILE_NAME
=
sys
.
argv
[
2
];
IMAGE_NAME
=
sys
.
argv
[
3
];
IMAGE_NAME
=
sys
.
argv
[
3
];
COMMIT_HASH
=
sys
.
argv
[
4
]
if
(
BRANCH
==
"develop"
)
:
if
(
BRANCH
==
"develop"
)
:
TAG_POSTFIX
=
"latest"
;
TAG_POSTFIX
=
"latest"
;
...
...
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