Skip to content

Commit

Permalink
Merge pull request kubeedge#5288 from wbc6080/fix-mapper-dockerfile
Browse files Browse the repository at this point in the history
fix mapper framework generate.sh to build image successfully
  • Loading branch information
kubeedge-bot authored Dec 21, 2023
2 parents 86e8b34 + 8452f67 commit 3325bf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import (
"database/sql"
"encoding/json"
"fmt"
"github.com/kubeedge/Template/pkg/common"
_ "github.com/taosdata/driver-go/v3/taosRestful"
"k8s.io/klog/v2"
"os"
"strings"
"time"

_ "github.com/taosdata/driver-go/v3/taosRestful"
"k8s.io/klog/v2"

"github.com/kubeedge/Template/pkg/common"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function entry() {
sed -i "s/Template/${mapperVar}/g" `grep Template -rl ${mapperPath}`
sed -i "s/kubeedge\/${mapperVar}/kubeedge\/${mapperNameLowercase}/g" `grep "kubeedge\/${mapperVar}" -rl $mapperPath`

cd ${mapperPath} && go mod tidy

empty_file_path="${MAPPER_DIR}/.empty"
if [ -f "$empty_file_path" ]; then
rm "$empty_file_path"
Expand All @@ -36,4 +38,4 @@ function entry() {

}

entry "$@"
entry "$@"

0 comments on commit 3325bf9

Please sign in to comment.