This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
352 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
FROM openjdk:11.0.2-jre-slim-stretch | ||
|
||
COPY ethsigner /opt/ethsigner/ | ||
WORKDIR /opt/ethsigner | ||
|
||
# Expose services ports | ||
# 8545 HTTP JSON-RPC | ||
EXPOSE 8545 | ||
|
||
ENTRYPOINT ["/opt/ethsigner/bin/ethsigner"] | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
ARG BUILD_DATE | ||
ARG VCS_REF | ||
ARG VERSION | ||
LABEL org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="Ethsigner" \ | ||
org.label-schema.description="Ethereum transaction signing application" \ | ||
org.label-schema.url="https://docs.ethsigner.pegasys.tech/" \ | ||
org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.vcs-url="https://github.com/PegaSysEng/ethsigner.git" \ | ||
org.label-schema.vendor="Pegasys" \ | ||
org.label-schema.version=$VERSION \ | ||
org.label-schema.schema-version="1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export GOSS_PATH=tests/goss-linux-amd64 | ||
export GOSS_OPTS="$GOSS_OPTS --format junit" | ||
export GOSS_FILES_STRATEGY=cp | ||
|
||
DOCKER_IMAGE=$1 | ||
DOCKER_TEST_IMAGE=ethsigner_goss | ||
|
||
# create test docker image that includes the test key file and password files | ||
TEST_CONTAINER_ID=$(docker create ${DOCKER_IMAGE}) | ||
docker cp ./tests/test_keyfile.json ${TEST_CONTAINER_ID}:/tmp/test_keyfile.json | ||
docker cp ./tests/test_password ${TEST_CONTAINER_ID}:/tmp/test_password | ||
docker commit ${TEST_CONTAINER_ID} ${DOCKER_TEST_IMAGE} | ||
|
||
i=0 | ||
|
||
# Test for normal startup with ports opened | ||
GOSS_FILES_PATH=tests/01 \ | ||
bash tests/dgoss \ | ||
run ${DOCKER_TEST_IMAGE} \ | ||
--chain-id=2018 \ | ||
--http-listen-host=0.0.0.0 \ | ||
--downstream-http-port=8590 \ | ||
file-based-signer \ | ||
--key-file /tmp/test_keyfile.json \ | ||
--password-file /tmp/test_password \ | ||
> ./reports/01.xml || i=`expr $i + 1` | ||
|
||
docker image rm ${DOCKER_TEST_IMAGE} | ||
|
||
exit $i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
file: | ||
/opt/ethsigner/bin/ethsigner: | ||
exists: true | ||
mode: "0755" | ||
owner: root | ||
group: root | ||
filetype: file | ||
contains: [] | ||
port: | ||
tcp:8545: | ||
listening: true | ||
ip: | ||
- 0.0.0.0 | ||
process: | ||
java: | ||
running: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
port: | ||
tcp:8545: | ||
listening: true | ||
ip: | ||
- 0.0.0.0 |
Oops, something went wrong.