Skip to content

Commit

Permalink
[#Issue 93] update all HTTP2HTTP containers to 'edgehub/deviceshifu-h…
Browse files Browse the repository at this point in the history
…ttp-http:v0.0.1' (#96)
  • Loading branch information
Tom Qin authored May 17, 2022
1 parent fac9752 commit 57d21b9
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ IMAGE_VERSION = v0.0.1

.PHONY: build-image-deviceshifu
build-image-deviceshifu:
docker build -f ${PROJECT_ROOT}/deviceshifu/Dockerfile.deviceshifu --build-arg PROJECT_ROOT="${PROJECT_ROOT}" ${PROJECT_ROOT} -t edgehub/deviceshifu-http:${IMAGE_VERSION}
docker build -f ${PROJECT_ROOT}/deviceshifu/Dockerfile.deviceshifu --build-arg PROJECT_ROOT="${PROJECT_ROOT}" ${PROJECT_ROOT} -t edgehub/deviceshifu-http-http:${IMAGE_VERSION}

.PHONY: buildx-push-image-deviceshifu
buildx-push-image-deviceshifu:
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm -f ${PROJECT_ROOT}/deviceshifu/Dockerfile.deviceshifu --build-arg PROJECT_ROOT="${PROJECT_ROOT}" ${PROJECT_ROOT} -t edgehub/deviceshifu-http-multi:${IMAGE_VERSION} --push
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm -f ${PROJECT_ROOT}/deviceshifu/Dockerfile.deviceshifu --build-arg PROJECT_ROOT="${PROJECT_ROOT}" ${PROJECT_ROOT} -t edgehub/deviceshifu-http-http:${IMAGE_VERSION} --push
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm -f ${PROJECT_ROOT}/deviceshifu/Dockerfile.deviceshifuMQTT --build-arg PROJECT_ROOT="${PROJECT_ROOT}" ${PROJECT_ROOT} -t edgehub/deviceshifu-http-mqtt:${IMAGE_VERSION} --push
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm -f ${PROJECT_ROOT}/deviceshifu/Dockerfile.deviceshifuSocket --build-arg PROJECT_ROOT="${PROJECT_ROOT}" ${PROJECT_ROOT} -t edgehub/deviceshifu-http-socket:${IMAGE_VERSION} --push

Expand All @@ -23,7 +23,7 @@ download-demo-files:
docker pull edgehub/mockdevice-plate-reader:${IMAGE_VERSION}
docker pull edgehub/mockdevice-robot-arm:${IMAGE_VERSION}
docker pull edgehub/mockdevice-thermometer:${IMAGE_VERSION}
docker pull edgehub/deviceshifu-http:${IMAGE_VERSION}
docker pull edgehub/deviceshifu-http-http:${IMAGE_VERSION}
docker pull edgehub/edgedevice-controller:${IMAGE_VERSION}
docker pull quay.io/brancz/kube-rbac-proxy:v0.8.0
docker pull kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6
Expand All @@ -36,7 +36,7 @@ compress-demo-files:
docker save edgehub/mockdevice-plate-reader:${IMAGE_VERSION} | gzip > build_dir/mockdevice-plate-reader.tar.gz
docker save edgehub/mockdevice-robot-arm:${IMAGE_VERSION} | gzip > build_dir/mockdevice-robot-arm.tar.gz
docker save edgehub/mockdevice-thermometer:${IMAGE_VERSION} | gzip > build_dir/mockdevice-thermometer.tar.gz
docker save edgehub/deviceshifu-http:${IMAGE_VERSION} | gzip > build_dir/deviceshifu-http.tar.gz
docker save edgehub/deviceshifu-http-http:${IMAGE_VERSION} | gzip > build_dir/deviceshifu-http-http.tar.gz
docker save edgehub/edgedevice-controller:${IMAGE_VERSION} | gzip > build_dir/edgedevice-controller.tar.gz
docker save kindest/node:v1.21.1@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 | gzip > build_dir/kind-image.tar.gz
docker save nginx:1.21 | gzip > build_dir/nginx.tar.gz
Expand All @@ -48,7 +48,7 @@ compress-edgenesis-files:
docker save edgehub/mockdevice-plate-reader:${IMAGE_VERSION} | gzip > build_dir/mockdevice-plate-reader.tar.gz
docker save edgehub/mockdevice-robot-arm:${IMAGE_VERSION} | gzip > build_dir/mockdevice-robot-arm.tar.gz
docker save edgehub/mockdevice-thermometer:${IMAGE_VERSION} | gzip > build_dir/mockdevice-thermometer.tar.gz
docker save edgehub/deviceshifu-http:${IMAGE_VERSION} | gzip > build_dir/deviceshifu-http.tar.gz
docker save edgehub/deviceshifu-http-http:${IMAGE_VERSION} | gzip > build_dir/deviceshifu-http-http.tar.gz
docker save edgehub/edgedevice-controller:${IMAGE_VERSION} | gzip > build_dir/edgedevice-controller.tar.gz

.PHONY: build-deviceshifu-demo-image
Expand All @@ -71,7 +71,7 @@ buildx-push-image-mockdevices:


docker-push-image-deviceshifu:
docker push edgehub/deviceshifu-http:${IMAGE_VERSION}
docker push edgehub/deviceshifu-http-http:${IMAGE_VERSION}

docker-push-deviceshifu-demo-image:
docker push edgehub/demo-image-alpine:${IMAGE_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-agv-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-plate-reader-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-robotarm-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-thermometer-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
app: edgedevice-mockdevice-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion docs/design/design-shifuController-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ spec:
app: edgedevice-thermometer-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion docs/design/design-shifuController.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ spec:
app: edgedevice-thermometer-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-helloworld-deployment
spec:
containers:
- image: edgehub/deviceshifu-http:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-camera-deployment
spec:
containers:
- image: edgehub/deviceshifu-http-multi:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app: edgedevice-plc-deployment
spec:
containers:
- image: edgehub/deviceshifu-http-multi:v0.0.1
- image: edgehub/deviceshifu-http-http:v0.0.1
name: deviceshifu-http
ports:
- containerPort: 8080
Expand Down
4 changes: 2 additions & 2 deletions test/scripts/deviceshifu-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ "$1" == "apply" ] || [ "$1" == "delete" ]; then
kind load docker-image edgehub/mockdevice-plate-reader:v0.0.1
kind load docker-image edgehub/mockdevice-robot-arm:v0.0.1
kind load docker-image edgehub/mockdevice-thermometer:v0.0.1
kind load docker-image edgehub/deviceshifu-http:v0.0.1
kind load docker-image edgehub/deviceshifu-http-http:v0.0.1
kind load docker-image edgehub/edgedevice-controller:v0.0.1
kubectl apply -f k8s/crd
kubectl create ns devices
Expand All @@ -27,7 +27,7 @@ if [ "$1" == "apply" ] || [ "$1" == "delete" ]; then
else
kind delete cluster
docker rmi $(docker images | grep 'edgehub/mockdevice' | awk '{print $3}')
docker rmi $(docker images | grep 'edgehub/deviceshifu-http' | awk '{print $3}')
docker rmi $(docker images | grep 'edgehub/deviceshifu-http-http' | awk '{print $3}')
docker rmi $(docker images | grep 'edgehub/edgedevice-controller' | awk '{print $3}')
docker rmi quay.io/brancz/kube-rbac-proxy:v0.8.0
docker rmi $(docker images | grep 'kindest/node' | awk '{print $3}')
Expand Down

0 comments on commit 57d21b9

Please sign in to comment.