Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
82fc62a2
Unverified
Commit
82fc62a2
authored
6 years ago
by
Silas Davis
Browse files
Options
Downloads
Patches
Plain Diff
Fix keys test that was silently failing
Signed-off-by:
Silas Davis
<
silas@monax.io
>
parent
86c64d2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.circleci/Dockerfile
+2
-1
2 additions, 1 deletion
.circleci/Dockerfile
keys/test.sh
+2
-1
2 additions, 1 deletion
keys/test.sh
with
4 additions
and
2 deletions
.circleci/Dockerfile
+
2
−
1
View file @
82fc62a2
# docker build -t quay.io/monax/burrow:ci .
FROM
golang:1.10.1-alpine3.7
MAINTAINER
Monax <support@monax.io>
ENV
DOCKER_VERSION "17.12.1-ce"
# This is the image used by the Circle CI config in this directory pushed to quay.io/monax/bosmarmot:ci
# docker build -t quay.io/monax/burrow:ci -f ./.circleci/Dockerfile .
RUN
apk add
--update
--no-cache
nodejs netcat-openbsd git openssh-client make bash gcc g++ jq curl
RUN
apk add
--update
--no-cache
nodejs netcat-openbsd git openssh-client
openssl
make bash gcc g++ jq curl
# get docker client
RUN
curl
-L
-o
/tmp/docker-
$DOCKER_VERSION
.tgz https://download.docker.com/linux/static/stable/x86_64/docker-
$DOCKER_VERSION
.tgz
\
&&
tar
-xz
-C
/tmp
-f
/tmp/docker-
$DOCKER_VERSION
.tgz
\
...
...
This diff is collapsed.
Click to expand it.
keys/test.sh
+
2
−
1
View file @
82fc62a2
...
...
@@ -5,6 +5,7 @@
# TODO: run the suite with/without encryption!
set
-e
burrow_bin
=
${
burrow_bin
:-
burrow
}
...
...
@@ -93,7 +94,7 @@ do
DIR
=
$keys_dir
/data
FILE
=
$DIR
/
$ADDR
.json
PRIV
=
`
cat
$FILE
| jq
-r
.PrivateKey.Plain
`
HEXPRIV
=
`
echo
-n
"
$PRIV
"
|
base64
-d
| xxd
-p
-u
-c
256
`
HEXPRIV
=
`
echo
-n
"
$PRIV
"
|
base64
-d
| xxd
-p
-c
256
|
tr
'[:lower:]'
'[:upper:]'
`
cp
$FILE
~/
$ADDR
rm
-rf
$DIR
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment