Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited outdated Joget and software versions


English

Google Cloud Platform is Google's cloud computing and hosting platform. The Compute Engine is a part of the Google Cloud Platform that runs virtual machines (VM) on Google's high performance, scalable infrastructure. 

As an open source platform to easily build enterprise web apps for cloud and mobile, Joget is a good complement for the Google Cloud Platform. 


Thai

Google Cloud Platform เป็นคลาวด์คอมพิวติ้งและแพลตฟอร์มการโฮสต์ Compute Engine เป็นส่วนหนึ่งของแพลตฟอร์ม Google Cloud ที่ใช้งานเครื่องเสมือน (VM) บนโครงสร้างพื้นฐานที่ปรับขนาดได้และประสิทธิภาพสูงของ Google

ในฐานะที่เป็นแพลตฟอร์มโอเพ่นซอร์สเพื่อสร้างเว็บแอปองค์กรสำหรับคลาวด์และอุปกรณ์พกพาได้ง่าย Joget เป็นส่วนประกอบที่ดีสำหรับแพลตฟอร์ม Google Cloud


Image Added  Image Removed  




This article describes the steps required to deploy Joget on a Linux VM using the Compute Engine. You can also use other OS platforms (e.g. Windows, macOS, etc) by adapting the commands accordingly.

...

Code Block
titleOn Linux
export INSTANCE_NAME=joget7joget8
export IMAGE_ID=ubuntu-18042204-bionicjammy-v20200129av20240628 
export IMAGE_PROJECT=gceubuntu-uefios-imagescloud
export MACHINE_TYPE=n1-standard-1
export JOGET_VERSION=8.01.02
export MYSQL_VERSION=58.74
export MYSQL_PASSWORD=root

echo "== Create VM instance $INSTANCE_NAME for $IMAGE_ID on $MACHINE_TYPE =="
gcloud compute instances create $INSTANCE_NAME --image $IMAGE_ID --image-project $IMAGE_PROJECT --machine-type=$MACHINE_TYPE
Code Block
titleOn Windows
set INSTANCE_NAME=joget7joget8
set IMAGE_ID=ubuntu-18042204-bionicjammy-v20200129av20240628  
set IMAGE_PROJECT=gceubuntu-uefios-imagescloud
set MACHINE_TYPE=n1-standard-1
set JOGET_VERSION=8.01.02
set MYSQL_VERSION=58.74
set MYSQL_PASSWORD=root
 
echo "== Create VM instance %INSTANCE_NAME% for %IMAGE_ID% on %MACHINE_TYPE% =="
gcloud compute instances create %INSTANCE_NAME% --image %IMAGE_ID% --image-project %IMAGE_PROJECT% --machine-type=%MACHINE_TYPE%

...

Code Block
titleOn Linux
echo "== Deploy Joget =="
gcloud compute ssh $INSTANCE_NAME -- "\
    echo === Install Java ===;\
    sudo apt-get update;\
    sudo apt-get install -y openjdk-811-jdk-headless;\
    echo === Install MySQL ===;\
    sudo debconf-set-selections <<< \"mysql-server-$MYSQL_VERSION mysql-server/root_password password $MYSQL_PASSWORD\";\
    sudo debconf-set-selections <<< \"mysql-server-$MYSQL_VERSION mysql-server/root_password_again password $MYSQL_PASSWORD\";\
    sudo apt-get -y install mysql-server-$MYSQL_VERSION;\
    sudo -E apt-get -q -y install mysql-server;\
    echo === Download Joget $JOGET_VERSION ===;\
    cd ~;\
    wget https://devdownload.joget.org/downloads/enterprise/joget-enterprise-linux-$JOGET_VERSION.tar.gz;\
    echo === Extract Bundle ===;\
    tar xvfz joget-enterprise-linux-$JOGET_VERSION.tar.gz;\
    cd joget-enterprise-linux-$JOGET_VERSION;\
    echo === Setup Datasource ===;\
    apache-ant-1.7.1/bin/ant setup -Dprofile.name=default -Ddb.name=jwdb -Ddb.host=localhost -Ddb.port=3306 -Ddb.user=root -Ddb.password=$MYSQL_PASSWORD;\
    echo === Reduce JAVA VM Memory Allocation ===;\ 
    sed -i -e 's/768/256/g' tomcat8tomcat.sh;\
    echo === Clean Bundle ===;\
    cd ..;\
    rm -r joget-enterprise-linux-$JOGET_VERSION.tar.gz;\
    echo === Start Joget $JOGET_VERSION ===;\
    cd joget-enterprise-linux-$JOGET_VERSION;\
    ./tomcat8tomcat.sh start"
Code Block
titleOn Windows
echo "== Deploy Joget =="
gcloud compute ssh %INSTANCE_NAME% --command="echo === Install Java ===;sudo apt-get install -y openjdk-811-jdk-headless;    echo === Install MySQL ===;    sudo debconf-set-selections ^<^<^< \"mysql-server-%MYSQL_VERSION% mysql-server/root_password password %MYSQL_PASSWORD%\";    sudo debconf-set-selections ^<^<^< \"mysql-server-%MYSQL_VERSION% mysql-server/root_password_again password %MYSQL_PASSWORD%\";    sudo apt-get -y install mysql-server-%MYSQL_VERSION%;    sudo -E apt-get -q -y install mysql-server;    echo === Download Joget %JOGET_VERSION% ===;    cd ~;    wget https://dev.joget.org/downloads/enterprise/joget-enterprise-linux-%JOGET_VERSION%.tar.gz;    echo === Extract Bundle ===;    tar xvfz joget-enterprise-linux-%JOGET_VERSION%.tar.gz;    cd joget-enterprise-linux-%JOGET_VERSION%;    echo === Setup Datasource ===;    apache-ant-1.7.1/bin/ant setup -Dprofile.name=default -Ddb.name=jwdb -Ddb.host=localhost -Ddb.port=3306 -Ddb.user=root -Ddb.password=%MYSQL_PASSWORD%;    echo === Reduce JAVA VM Memory Allocation ===;    sed -i -e 's/768/256/g' tomcat8tomcat.sh;    echo === Clean Bundle ===;    cd ..;    rm -r joget-enterprise-linux-%JOGET_VERSION%.tar.gz;    echo === Start Joget %JOGET_VERSION% ===;    cd joget-enterprise-linux-%JOGET_VERSION%;    ./tomcat8tomcat.sh start"


Deployment may take several minutes (depending on the type of VM) so be patient.

...