From 57a8382f3921f9a4def8cefe6bc06fe9d286858c Mon Sep 17 00:00:00 2001 From: Wojciech Pluta <60693402+WSPluta@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:03:08 +0100 Subject: [PATCH] fixing node installation on the build runner --- README.md | 12 ++++++------ command_spec.yaml | 11 ++++++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 785fc94..061df87 100644 --- a/README.md +++ b/README.md @@ -2,20 +2,20 @@ [![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_save-the-wildlife)](https://sonarcloud.io/dashboard?id=oracle-devrel_save-the-wildlife) -## The power of Cloud Native on Oracle Cloud +## Multiplayer powered by Cloud Native on Oracle Cloud Infrastructure -In this workshop, you will learn how to deploy a simple multiplayer [Three.js](https://threejs.org/) application to the cloud, then iterate through the modernization process to enhance the application and ultimately deploy it to [Kubernetes](https://kubernetes.io/) with CI/CD, Terraform, Kustomize, Coherence and Redis as a base line backend to run applications that require in-memory concurrency management. In our case we are using +In this workshop, you will learn how to deploy a simple multiplayer [Three.js](https://threejs.org/) application to Oracle Cloud Infrastructure, then iterate through the modernization process to enhance the application and ultimately deploy it to [Kubernetes](https://kubernetes.io/) with CI/CD, Terraform, Kustomize, Coherence and Redis as a base line backend to run applications that require in-memory concurrency management. ![Save The Wildlife Banner](images/screenshot.png) ## Getting Started -This workshop leverages a broad array of OCI services to illustrate how to deploy, migrate, and modernize applications in the cloud. +This workshop leverages a broad array of OCI services to illustrate how to deploy, migrate, and modernize applications in the cloud. -You can start with app modernization journey and follow a stet by step guide on VM deployment via Terraform, then containerize the application and move to OCI Container Instances. +You can start with app modernization journey and follow a stet by step guide on VM deployment via Terraform, then containerize the application and move to OCI Container Instances. In the final phase, the application design is enhanced to provide scalability while being deployed to Oracle Container Engine for Kubernetes (OKE). The best part is, you get to play a really cool 3D "Save the Wildlife" game when you finish the deployment. -Or you can dive (pun intended) into the ocean of DevOPS CI/CD and release our [Three.js](https://threejs.org/) minigame as many times as you like. +Or you can dive (pun intended) into the ocean of DevOPS CI/CD and release our [Three.js](https://threejs.org/) multiplayer game using build and deploy pipelines. ### Prerequisites @@ -49,4 +49,4 @@ Licensed under the Universal Permissive License (UPL), Version 1.0. See [LICENSE](LICENSE) for more details. -ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK. \ No newline at end of file +ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK. \ No newline at end of file diff --git a/command_spec.yaml b/command_spec.yaml index 50b1398..b49141b 100644 --- a/command_spec.yaml +++ b/command_spec.yaml @@ -8,10 +8,15 @@ steps: - type: Command name: "Install nodejs" shell: bash - timeoutInSeconds: 300 + timeoutInSeconds: 3600 command: | - yum --disablerepo=ol7_oci_included install -y oracle-nodejs-release-el7 oracle-release-el7 - yum --disablerepo=ol7_oci_included install -y nodejs + rm -rf /etc/yum.repos.d/default.repo + sed -i 's/included\//included\/x86_64/g' /etc/yum.repos.d/oci-included-ol8.repo + (echo -e '[ol8_appstream]' && echo 'name=Oracle Linux 8 Application Stream' && echo "baseurl=https://yum-$OCI_RESOURCE_PRINCIPAL_REGION.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/" && echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle' && echo 'gpgcheck=1' && echo 'enabled=1') >> /etc/yum.repos.d/oci-included-ol8.repo + cat /etc/yum.repos.d/oci-included-ol8.repo + dnf module list --all nodejs + dnf module enable -y nodejs:16 + dnf module install -y nodejs - type: Command name: "Git Clone" shell: bash