<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mohd Rashid</title>
    <description>The latest articles on Forem by Mohd Rashid (@mohdrashid01).</description>
    <link>https://forem.com/mohdrashid01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F537144%2F1a86938d-b17d-4b05-be16-0b05a4b81645.png</url>
      <title>Forem: Mohd Rashid</title>
      <link>https://forem.com/mohdrashid01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mohdrashid01"/>
    <language>en</language>
    <item>
      <title>Vuejs application showing no webpage was found for the web address http error 404</title>
      <dc:creator>Mohd Rashid</dc:creator>
      <pubDate>Wed, 17 Jan 2024 19:48:47 +0000</pubDate>
      <link>https://forem.com/mohdrashid01/vuejs-application-showing-no-webpage-was-found-for-the-web-address-http-error-404-526</link>
      <guid>https://forem.com/mohdrashid01/vuejs-application-showing-no-webpage-was-found-for-the-web-address-http-error-404-526</guid>
      <description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I  have a repo in github its having Vue.js (Mosaic Vue) application running in AWS (App Runner).&lt;/p&gt;

&lt;p&gt;Now, i want to deploy Vue.js (Mosaic Vue) and Vite plugin application in Google cloud run using github action&lt;/p&gt;

&lt;p&gt;Here is my action.yml file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: Create and publish a Docker image

on: 
  push:
    branches: ['main']

env:
  PROJECT_ID: ${{ secrets.GKE_PROJECT }}
  REPOSITORY: webui                          # Add your repository name here.
  GAR_LOCATION: us-west2                     # Add your repository region name here.
  IMAGE: webui                               # Add your image name here.
  IMAGE_TAG: $(date "+%F-%H%M")              # Add your image date-tag name here.

  GCR_SERVICE: webui                         # Add your cloud run service name here.
  GCR_REGION: us-west1                       # Add your cloud run region name here.

  GKE_CLUSTER: us-cluster1                      # Add your cluster name here.
  GKE_ZONE: us-central1-c                       # Add your cluster zone here.

jobs:
  setup-build-publish-deploy:
      name: Setup, Build, Publish, and Deploy
      runs-on: ubuntu-latest
      environment: Developer Env

      permissions:
        contents: 'read'
        id-token: 'write'

      steps:
      - name: Checkout
        uses: actions/checkout@v4

### Authentication via credentials json ###
      - name: 'Authenticate to Google Cloud'
        id: 'auth'
        uses: 'google-github-actions/auth@v2'
        with:
          credentials_json: '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}'  

### Set up Cloud SDK ###
      - name: Set up Cloud SDK
        uses: google-github-actions/setup-gcloud@v2
        with:
          project_id: '${{ env.PROJECT_ID }}'    

### Docker Authenticating ###        
      - name: 'Docker Auth'
        run: |-
          gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev

### Nodejs v20.11.0 Using ###
      - name: Setup Node.js environment
        uses: actions/setup-node@v4.0.1
        with:
          name: node-version
          node-version: 20.11.0   

      - name: Install dependencies
        run: |-
          cd /home/runner/work/WebUI/WebUI/mosaic-vue/
          npm install
          npm run build

      # - name: Build Vite.js project
      #   run: npm run build

### Build and Push the Docker image to Google Artifact Registry (GAR) ###
      - name: Build and Push to Google Artifact Registry
        run: |-
          docker build -t ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ github.sha }} -f ./docker/Dockerfile .
          docker tag ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ github.sha }} ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ env.IMAGE_TAG }}                                                                                                
          docker push ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ env.IMAGE_TAG }}

### Get the Deploying Container to Gooogle Cloud RUN ###
      - name: Deploy to Cloud Run
        run: |
           gcloud run deploy ${{ env.GCR_SERVICE }} \
             --image ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ env.IMAGE_TAG }} \
             --region ${{ env.GCR_REGION }} \
             --platform managed \
             --allow-unauthenticated \
             --port=8080 \
             --timeout=3600 \
             --update-labels commit-sha=${{ github.sha }}

      - name: 'Show output'
        run: echo ${{ steps.deploy.outputs.url }}   

### Deploy the Docker image to the GKE cluster ###
      - name: Deploy to GKE
        # env:
        #   GOOGLE_PROJECT: ${{ secrets.DEV_PROJECT }}
        run: |
          gcloud container clusters get-credentials dev-autopilot --region us-central1 --project xxxx-dev
          gcloud components install gke-gcloud-auth-plugin
          kubectl apply -f webui.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the screenshot of domain name not working with /home or /dashboard showing 404 not found &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqhf9lcgbgolhkb3qo9gy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqhf9lcgbgolhkb3qo9gy.png" alt="Image description" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is my domain name dev.xxxx.us ---&amp;gt; this is working fine but when i add dev.xxx.us/home its showing 404 page not found. I dont know where im wrong and what im missing in action.yml or need to change code of github repo from 3 week im struggling to solve this issue googling and chatgpt its not working even i add npm v20 but nothing work for me&lt;/p&gt;

&lt;p&gt;And we also we manage.auth0.com for redirecting URL ..like allowed callback URL or Logout URL i already added domain name&lt;/p&gt;

&lt;p&gt;plse tell me how to solve it&lt;/p&gt;

</description>
      <category>vue</category>
      <category>devops</category>
      <category>api</category>
    </item>
    <item>
      <title>Looking for a new job</title>
      <dc:creator>Mohd Rashid</dc:creator>
      <pubDate>Tue, 06 Jun 2023 09:04:46 +0000</pubDate>
      <link>https://forem.com/mohdrashid01/looking-for-a-new-job-55gk</link>
      <guid>https://forem.com/mohdrashid01/looking-for-a-new-job-55gk</guid>
      <description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;please help me in getting a job&lt;/p&gt;

&lt;p&gt;i can work on full time or part time job or contract job&lt;/p&gt;

&lt;p&gt;i have very 7+ years of experience in devops and total 10 years of experience &lt;/p&gt;

&lt;p&gt;presently im not working &lt;/p&gt;

&lt;p&gt;im married with 2 small kids have &lt;/p&gt;

&lt;p&gt;plse help me getting a job&lt;/p&gt;

&lt;p&gt;Thanks&lt;br&gt;
Mohd Rashid&lt;br&gt;
&lt;a href="mailto:rashidmd777@gmail.com"&gt;rashidmd777@gmail.com&lt;/a&gt;&lt;br&gt;
+91-8801151520&lt;/p&gt;

</description>
      <category>devops</category>
    </item>
    <item>
      <title>How to Run Codelyzer Code from Command Prompt </title>
      <dc:creator>Mohd Rashid</dc:creator>
      <pubDate>Wed, 09 Dec 2020 16:11:43 +0000</pubDate>
      <link>https://forem.com/mohdrashid01/how-to-run-codelyzer-and-how-to-solve-angular-seed-4k6o</link>
      <guid>https://forem.com/mohdrashid01/how-to-run-codelyzer-and-how-to-solve-angular-seed-4k6o</guid>
      <description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I got below error when i execute npm run lint command (ERROR : &lt;a href="mailto:angular-seed@1.0.0"&gt;angular-seed@1.0.0&lt;/a&gt; lint: `gulp tslint)&lt;/p&gt;

&lt;p&gt;Actually i want to run my code through codelyzer and im following this link &lt;a href="https://www.npmjs.com/package/codelyzer"&gt;https://www.npmjs.com/package/codelyzer&lt;/a&gt; for installation or setup codelyzer in ubuntu.&lt;br&gt;
image&lt;/p&gt;

&lt;p&gt;Here is the screenshot of npm, nodejs, gulp and angular version showing.&lt;/p&gt;

&lt;p&gt;image&lt;br&gt;
and&lt;br&gt;
image&lt;/p&gt;

&lt;p&gt;when i type ng serve below is the screenshot it showing in my browser&lt;/p&gt;

&lt;p&gt;My company want to run code in local and output should show in command prompt or in terminal NOT FROM BROWSER or UI.&lt;/p&gt;

&lt;p&gt;Please help me im new in codelyzer ..i dont know how to use it and how to execute it.&lt;br&gt;
And how to solve above issue.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>npm</category>
      <category>node</category>
    </item>
  </channel>
</rss>
