- #HOW TO INSTALL GITLAB RUNNER ON GOOGLE CLOUD INSTALL#
- #HOW TO INSTALL GITLAB RUNNER ON GOOGLE CLOUD UPDATE#
If it shows that the service is not found, we need to reload the daemon sudo systemctl daemon-reload Sudo -u " $user" $cmd > " $stdout_log" 2> " $stderr_log" &Įcho "Unable to start, see $stdout_log and $stderr_log"Įcho "Not stopped may still be shutting down or shutdown may have failed"Įcho "Unable to stop, will not attempt to start"Įcho "Usage: $0 " Sudo $cmd > " $stdout_log" 2> " $stderr_log" & # Description: Enable service provided by daemon.Ĭmd= "theCommandItRequiresToStartYourService" # Short-Description: Start daemon at boot time We will run our service with Daemon so it will be run automatically when it’s disconnected.
#HOW TO INSTALL GITLAB RUNNER ON GOOGLE CLOUD INSTALL#
" $NVM_DIR/bash_completion" & nvm install v12.1.0 & apt-get install npm -y
#HOW TO INSTALL GITLAB RUNNER ON GOOGLE CLOUD UPDATE#
You could get more detail via the official document apt-get update -y & apt-get install curl -y & curl -o- | bash & export NVM_DIR= " $HOME/.nvm" & & \. Here we mainly install nvm, node with version v12.1.0, and npm. (Be careful! This command will replace all of your SSH keys on this instance, that said, any keys without appearing on this file will be gone) gcloud compute instances add-metadata instanceName -metadata-from-file ssh-keys=instanceSSHList Get the name of the instance gcloud compute instances list
![how to install gitlab runner on google cloud how to install gitlab runner on google cloud](https://about.gitlab.com/images/gitlab_ee/gitlab_geo_diagram_migrate.png)
Put root before the key in instanceSSHList file, whose format is as follows: :ssh-rsa tags=example-instance-1,http-server,https-server \Īfter creating, let’s produce ssh-key first ssh-keygen -t rsa -b 4096 -C that the key is named example cat example.pub > instanceSSHConfig & vim instanceSSHList Some resources are limited in certain zone and regionĪs follows: gcloud compute instances create example-instance-1 \ We identify each instance with tags, and we will it when we want to create a firewall-rules.The machine type is f1-micro, you could check the types wit command gcloud compute machine-types list.The type of boot-drive is pd-stand, you could check the types with command gcloud compute disk-types list.We use ubuntu-1804-lts as the image-family, so the latest version of this family will be used automatically.Pull image we need from ubuntu-os-cloud.As to the installation, you could refer to official document Ray use Mac, so I install Google Cloud SDK locally.Here is how I would do, you could have your own way.
![how to install gitlab runner on google cloud how to install gitlab runner on google cloud](https://about.gitlab.com/images/blogimages/ci-gke-in-15/ci_gke_in_15_009.png)