You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/10/13 09:08:26 UTC
[GitHub] [incubator-linkis] jacktao007 commented on a diff in pull request #3629: fix(linkis-dist): optimized the install-kubernetes.sh script
jacktao007 commented on code in PR #3629:
URL: https://github.com/apache/incubator-linkis/pull/3629#discussion_r994369699
##########
linkis-dist/bin/install-kubernetes.sh:
##########
@@ -14,16 +14,182 @@
# limitations under the License.
#
-docker pull ghcr.io/apache/incubator-linkis/linkis-ldh:latest
-docker pull ghcr.io/apache/incubator-linkis/linkis:latest
-docker pull ghcr.io/apache/incubator-linkis/linkis-web:latest
-docker tag ghcr.io/apache/incubator-linkis/linkis:latest linkis:dev
-docker tag ghcr.io/apache/incubator-linkis/linkis-web:latest linkis-web:dev
-docker tag ghcr.io/apache/incubator-linkis/linkis-ldh:latest linkis-ldh:dev
-../docker/scripts/make-linikis-image-with-mysql-jdbc.sh
-docker tag linkis:with-jdbc linkis:dev
-../helm/scripts/create-kind-cluster.sh
-../helm/scripts/install-mysql.shl
-../helm/scripts/install-ldh.sh
-../helm/scripts/install-linkis.sh
-kubectl get pods -A
+#variable
+WORK_DIR=`cd $(dirname $0); pwd -P`
+MIRRORS="ghcr.io"
+COMMAND="pull-install"
+DEBUG=false
+WITH_LDH=false
+
+#help info
+help() {
+ echo "Command Describe"
+ echo "pull-install pull and install linkis images"
+ echo "install pull linkis images"
+ echo "pull pull linkis images"
+ echo "help print help info"
+ echo ""
+ echo "Params Describe"
+ echo "-m,--mirrors url (default:ghcr.io , eg: ghcr.dockerproxy.com)"
+ echo "-d,--debug print debug info"
+ echo "-l,--ldh install linkis with ldh"
+ echo ""
+ echo "example:"
+ echo "./install-kubernetes.sh pull pull image with ghcr.io"
+ echo "./install-kubernetes.sh pull -m ghcr.dockerproxy.com pull image with ghcr.dockerproxy.com"
+ echo "./install-kubernetes.sh install install linkis to kind and kubernetes"
+ echo "./install-kubernetes.sh pull-install -m ghcr.dockerproxy.com pull image and install linkis to kind and kubernetes"
+}
+
+#pull the container image of the linkis
+pull(){
+ docker pull $MIRRORS/apache/incubator-linkis/linkis-ldh:latest
+ docker pull $MIRRORS/apache/incubator-linkis/linkis:latest
+ docker pull $MIRRORS/apache/incubator-linkis/linkis-web:latest
+}
+#change the label
+tag(){
+ docker tag $MIRRORS/apache/incubator-linkis/linkis:latest linkis:dev
+ docker tag $MIRRORS/apache/incubator-linkis/linkis-web:latest linkis-web:dev
+ docker tag $MIRRORS/apache/incubator-linkis/linkis-ldh:latest linkis-ldh:dev
+}
+#create an image to carry mysql
+make-linikis-image-with-mysql-jdbc(){
+ ../docker/scripts/make-linikis-image-with-mysql-jdbc.sh
Review Comment:
好的
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org