mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 07:28:20 +08:00
Merge pull request #4489 from ipfs/fix/sharness-docker
Fix sharness docker
This commit is contained in:
@ -44,8 +44,7 @@ RUN set -x \
|
||||
&& cd /tmp \
|
||||
&& wget -q -O tini https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini \
|
||||
&& chmod +x tini \
|
||||
# Install them
|
||||
&& mv su-exec/su-exec tini /sbin/
|
||||
&& mv su-exec/su-exec tini /sbin/ # Install them
|
||||
|
||||
# Ports for Swarm TCP, Swarm uTP, API, Gateway, Swarm Websockets
|
||||
EXPOSE 4001
|
||||
|
@ -1,5 +1,9 @@
|
||||
# Generic test functions for go-ipfs
|
||||
|
||||
ansi_strip() {
|
||||
sed 's/\x1b\[[0-9;]*m//g'
|
||||
}
|
||||
|
||||
# Quote arguments for sh eval
|
||||
shellquote() {
|
||||
_space=''
|
||||
@ -48,7 +52,7 @@ test_path_cmp() {
|
||||
|
||||
# This takes a Dockerfile, and a build context directory
|
||||
docker_build() {
|
||||
docker build --rm -f "$1" "$2"
|
||||
docker build --rm -f "$1" "$2" | ansi_strip
|
||||
}
|
||||
|
||||
# This takes an image as argument and writes a docker ID on stdout
|
||||
|
@ -43,6 +43,8 @@ SHARNESS_LIB="lib/sharness/sharness.sh"
|
||||
# Make sure the ipfs path is set, also set in test_init_ipfs but that
|
||||
# is not always used.
|
||||
export IPFS_PATH="$(pwd)/.ipfs"
|
||||
# Ask programs to please not print ANSI codes
|
||||
export TERM=dumb
|
||||
|
||||
TEST_OS="$(uname -s | tr '[a-z]' '[A-Z]')"
|
||||
|
||||
|
Reference in New Issue
Block a user