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
685980a0
Unverified
Commit
685980a0
authored
Jan 27, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added image tagging
parent
dc8774d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
11 deletions
+69
-11
dockerimagesim.yml
.github/workflows/dockerimagesim.yml
+2
-11
docker_build_push.py
scripts/docker_build_push.py
+67
-0
No files found.
.github/workflows/dockerimagesim.yml
View file @
685980a0
...
...
@@ -7,12 +7,9 @@ jobs:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
test
run
:
echo ${GITHUB_REF##*/}
-
name
:
test2
run
:
if [ ${GITHUB_REF##*/} = "two_docker_images" ]; then TAG="${GITHUB_REF##*/}"; else export TAG="haha"; fi;
-
name
:
test3
run
:
echo ${TAG}
-
name
:
Login to docker
...
...
@@ -22,12 +19,6 @@ jobs:
-
uses
:
actions/checkout@v1
-
name
:
submodule update
run
:
git submodule update --init --recursive
-
name
:
Build the Docker image
run
:
docker build . --file DockerfileSimulation --tag skalenetwork/sgxwalletsim:latest
-
name
:
run docker image
run
:
docker run -v ${PWD}/sgx_data:/usr/src/sdk/sgx_data -d --network=host skalenetwork/sgxwalletsim:latest
-
name
:
sleep and check
run
:
sleep 5; scripts/docker_test.py
-
name
:
push docker image
run
:
docker push skalenetwork/sgxwalletsim:latest
-
name
:
build and push
run
:
python3 scripts/build_push.py
scripts/docker_build_push.py
0 → 100755
View file @
685980a0
#!/usr/bin/env python
# ------------------------------------------------------------------------------
# Bash script to build cpp-ethereum within TravisCI.
#
# The documentation for cpp-ethereum is hosted at http://cpp-ethereum.org
#
# ------------------------------------------------------------------------------
# This file is part of cpp-ethereum.
#
# cpp-ethereum is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# cpp-ethereum is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>
#
# (c) 2016 cpp-ethereum contributors.
# ------------------------------------------------------------------------------
#
# Copyright (C) 2018-2019 SKALE Labs
#
# This file is part of skale-consensus.
#
# skale-consensus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe r version 3 of the License, or
# (at your option) any later version.
#
# skale-consensus is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with skale-consensus. If not, see <http://www.gnu.org/licenses/>.
#
# @file docker_build_push.py
# @author Stan Kladko
# @date 2018
#
import
sys
,
os
,
subprocess
,
time
os
.
chdir
(
".."
)
topDir
=
os
.
getcwd
()
print
(
"Starting build push"
)
print
(
"Top directory is:"
+
topDir
)
dockerExecutable
=
subprocess
.
check_output
([
"which"
,
"docker"
])
SCRIPTS_DIR
=
topDir
+
"/scripts"
assert
subprocess
.
call
([
"docker"
,
"build"
,
"."
,
"--file"
,
"DockerfileSimulation"
,
"--tag"
,
"skalenetwork/sgxwalletsim:latest"
])
assert
subprocess
.
call
([
"docker"
,
"run"
,
"-v"
,
topDir
+
"/sgx_data:/usr/src/sdk/sgx_data"
,
"-d"
,
"--network=host"
,
"skalenetwork/sgxwalletsim:latest"
]);
time
.
sleep
(
5
);
assert
subprocess
.
call
([
"docker"
,
"push"
,
"skalenetwork/sgxwalletsim:latest"
]);
print
(
"Build and push successfull."
)
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