Skip to content

Commit

Permalink
Supports ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
ndthuan committed Apr 3, 2024
1 parent 336d6eb commit a1fd06b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Prebuilt Docker images can be found at https://hub.docker.com/r/ndthuan/vi-word-

Usage example:
```shell script
docker run --rm -p8080:8080 ndthuan/vi-word-segmenter:latest
docker run --rm -p8080:8080 ndthuan/vi-word-segmenter:0.0.3
```

# Client Libraries
Expand Down
8 changes: 6 additions & 2 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ SERVICE_NAME=$(./mvnw -Dexec.executable='echo' -Dexec.args='${project.artifactId
SERVICE_VERSION=$(./mvnw -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -q)
DOCKER_IMAGE="ndthuan/$SERVICE_NAME:$SERVICE_VERSION"

docker build -t "$DOCKER_IMAGE" .
# docker buildx create --name builder
# docker buildx use builder
# docker buildx inspect --bootstrap

if [ "$1" == "push" ]; then
docker push "$DOCKER_IMAGE"
docker buildx build --platform linux/amd64,linux/arm64 --push -t "$DOCKER_IMAGE" .
else
docker buildx build --platform linux/amd64,linux/arm64 -t "$DOCKER_IMAGE" .
fi
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.ndthuan.nlp</groupId>
<artifactId>vi-word-segmenter</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<packaging>jar</packaging>
<name>vi-word-segmenter</name>
<description>Service for word segmentation, POS/NER/DEP tagging with VnCoreNLP backend.</description>
Expand Down

0 comments on commit a1fd06b

Please sign in to comment.