Skip to content

Commit 40953fe

Browse files
author
Shlomi Noach
committed
Adding script/dock: simplifying testing/packaging
1 parent 8bdf2d2 commit 40953fe

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ main() {
6161

6262
mkdir -p ${buildpath}
6363
rm -rf ${buildpath:?}/*
64-
build macOS osx darwin amd64
6564
build GNU/Linux linux linux amd64
65+
# build macOS osx darwin amd64
6666

6767
echo "Binaries found in:"
68-
ls -1 $buildpath/gh-ost-binary*${timestamp}.tar.gz
68+
find $buildpath/gh-ost* -type f -maxdepth 1
6969
}
7070

7171
main "$@"

script/dock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/bash
22

33
# Usage:
4-
# dock <test|alpine|packages> [arg]
4+
# dock <test|packages> [arg]
55
# dock test: build gh-ost & run unit and integration tests
6-
# docker alpine: build and run gh-ost on alpine linux
76
# docker pkg [target-path]: build gh-ost release packages and copy to target path (default path: /tmp/gh-ost-release)
87

98
command="$1"
@@ -13,10 +12,6 @@ case "$command" in
1312
docker_target="gh-ost-test"
1413
docker build . -f Dockerfile.test -t "${docker_target}" && docker run --rm -it "${docker_target}:latest"
1514
;;
16-
"alpine")
17-
docker_target="gh-ost-alpine"
18-
docker build . -f Dockerfile -t "${docker_target}" && docker run --rm -it -p 3000:3000 "${docker_target}:latest"
19-
;;
2015
"pkg")
2116
packages_path="${2:-/tmp/gh-ost-release}"
2217
docker_target="gh-ost-packaging"

0 commit comments

Comments
 (0)