mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-07 11:10:16 +01:00
0dda643bc5
Robot tests have been always executed in docker container, but API pyt-test is not, so rebuild Dockerfile for it. During that, some of tools have been upgraded, so API py-test scripts need some modification. Signed-off-by: danfengliu <danfengl@vmware.com>
8 lines
282 B
Bash
Executable File
8 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $(cat /$HOME/.docker/config.json |grep experimental |wc -l) -eq 0 ];then
|
|
sudo sed -i '$d' /$HOME/.docker/config.json
|
|
sudo sed -i '$d' /$HOME/.docker/config.json
|
|
sudo echo -e "},\n \"experimental\": \"enabled\"\n}" >> /$HOME/.docker/config.json
|
|
fi
|