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
998ac95e
Unverified
Commit
998ac95e
authored
Jan 28, 2020
by
Oleh Nikolaiev
Committed by
GitHub
Jan 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into bug/update-dependencies
parents
b3e5f6f4
38faedb1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
18 deletions
+17
-18
dockerimage.yml
.github/workflows/dockerimage.yml
+5
-10
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+1
-1
docker_build.py
scripts/docker_build.py
+4
-2
docker_push.py
scripts/docker_push.py
+2
-5
docker_test.py
scripts/docker_test.py
+5
-0
No files found.
.github/workflows/dockerimage.yml
View file @
998ac95e
name
:
Build, test and push sgxwallet container
name
:
Build, test and push SGX container
on
:
[
push
]
on
:
[
push
]
jobs
:
jobs
:
build
:
build
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Login to docker
-
name
:
Login to docker
env
:
env
:
...
@@ -16,8 +11,8 @@ jobs:
...
@@ -16,8 +11,8 @@ jobs:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
name
:
submodule update
-
name
:
submodule update
run
:
git submodule update --init --recursive
run
:
git submodule update --init --recursive
-
name
:
Build the Docker image
-
name
:
build
run
:
docker build . --file Dockerfile --tag skalenetwork/sgxwallet:lates
t
run
:
python3 scripts/docker_build.py ${GITHUB_REF##*/} Dockerfile sgxwalle
t
-
name
:
push
docker image
-
name
:
push
run
:
docker push skalenetwork/sgxwallet:lates
t
run
:
python3 scripts/docker_push.py ${GITHUB_REF##*/} Dockerfile sgxwalle
t
.github/workflows/dockerimagesim.yml
View file @
998ac95e
...
@@ -16,7 +16,7 @@ jobs:
...
@@ -16,7 +16,7 @@ jobs:
-
name
:
test
-
name
:
test
run
:
python3 scripts/docker_test.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_test.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
-
name
:
push
-
name
:
push
run
:
python3 scripts/docker_
test
.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
run
:
python3 scripts/docker_
push
.py ${GITHUB_REF##*/} DockerfileSimulation sgxwalletsim
scripts/docker_build.py
View file @
998ac95e
...
@@ -56,12 +56,14 @@ if (BRANCH == "develop") :
...
@@ -56,12 +56,14 @@ if (BRANCH == "develop") :
TAG_POSTFIX
=
"latest"
;
TAG_POSTFIX
=
"latest"
;
else
:
else
:
TAG_POSTFIX
=
"latest_commit"
TAG_POSTFIX
=
"latest_commit"
FULL_IMAGE_NAME
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
;
print
(
"Starting build for branch "
+
BRANCH
,
flush
=
True
)
print
(
"Starting build for branch "
+
BRANCH
,
flush
=
True
)
assert
subprocess
.
call
([
"pwd"
])
==
0
;
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"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
])
==
0
;
FULL_IMAGE_NAME
])
==
0
;
scripts/docker_push.py
View file @
998ac95e
...
@@ -61,10 +61,7 @@ if (BRANCH == "develop") :
...
@@ -61,10 +61,7 @@ if (BRANCH == "develop") :
else
:
else
:
TAG_POSTFIX
=
"latest_commit"
TAG_POSTFIX
=
"latest_commit"
FULL_IMAGE_NAME
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
;
assert
subprocess
.
call
([
"docker"
,
"push"
,
FULL_IMAGE_NAME
])
==
0
;
#print(sys.argv[1]);
#print(sys.argv[2]);
assert
subprocess
.
call
([
"docker"
,
"push"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
])
==
0
;
scripts/docker_test.py
View file @
998ac95e
...
@@ -22,7 +22,12 @@ if (BRANCH == "develop") :
...
@@ -22,7 +22,12 @@ if (BRANCH == "develop") :
else
:
else
:
TAG_POSTFIX
=
"latest_commit"
TAG_POSTFIX
=
"latest_commit"
FULL_IMAGE_NAME
=
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
;
print
(
"Running tests for branch "
+
BRANCH
);
print
(
"Running tests for branch "
+
BRANCH
);
assert
subprocess
.
call
([
"docker"
,
"image"
,
"inspect"
,
FULL_IMAGE_NAME
])
==
0
;
assert
subprocess
.
call
([
"docker"
,
"run"
,
"-v"
,
topDir
+
"/sgx_data:/usr/src/sdk/sgx_data"
,
assert
subprocess
.
call
([
"docker"
,
"run"
,
"-v"
,
topDir
+
"/sgx_data:/usr/src/sdk/sgx_data"
,
"-d"
,
"--network=host"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
])
==
0
"-d"
,
"--network=host"
,
"skalenetwork/"
+
IMAGE_NAME
+
":"
+
TAG_POSTFIX
])
==
0
...
...
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