Skip to content

Commit

Permalink
Merge pull request #291 from emqx/develop
Browse files Browse the repository at this point in the history
fix(docker): fix path error (#290)
  • Loading branch information
jinfahua authored Jun 2, 2020
2 parents ebebabb + c9f8a9d commit 2dd5379
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,22 @@ jobs:
docker buildx create --use --name mybuild
- name: build docker image
run: make docker
- name: tests docker image
run: |
container_id=$(docker run -d emqx/kuiper:$(git describe --tags --always))
ip_address=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $container_id)
sleep 10
if [ "$(curl ${ip_address}:9081)" != "OK" ]; then echo "docker image failed"; exit 1; fi
container_id=$(docker run -d emqx/kuiper:$(git describe --tags --always)-slim)
ip_address=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $container_id)
sleep 10
if [ "$(curl ${ip_address}:9081)" != "OK" ]; then echo "docker image failed"; exit 1; fi
container_id=$(docker run -d emqx/kuiper:$(git describe --tags --always)-alpine)
ip_address=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $container_id)
sleep 10
if [ "$(curl ${ip_address}:9081)" != "OK" ]; then echo "docker image failed"; exit 1; fi
- name: build docker images
if: github.event_name == 'release'
run: |
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN make build_with_edgex \

RUN go build -o kuiper_conf_util deploy/docker/conf_util.go \
&& upx ./kuiper_conf_util \
&& ln -s /go/kuiper/deploy/kuiper_conf_util /usr/bin/kuiper_conf_util
&& ln -s /go/kuiper/kuiper_conf_util /usr/bin/kuiper_conf_util

RUN ln -s /go/kuiper/deploy/docker/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh

Expand Down

0 comments on commit 2dd5379

Please sign in to comment.