I'm Samuel FajreldinesI am a specialist in the entire JavaScript and TypeScript ecosystem (including Node.js, React, Angular and Vue.js) I am expert in AI and in creating AI integrated solutions I am expert in DevOps and Serverless Architecture (AWS, Google Cloud and Azure) I am expert in PHP and its frameworks (such as Codeigniter and Laravel). |
Samuel FajreldinesI am a specialist in the entire JavaScript and TypeScript ecosystem. I am expert in AI and in creating AI integrated solutions. I am expert in DevOps and Serverless Architecture I am expert in PHP and its frameworks.
|
In today's fast-paced development environment, deploying applications quickly and efficiently is more important than ever. Google Cloud Run emerges as a powerful solution for developers looking to deploy containerized applications without the overhead of managing servers. This comprehensive guide will walk you through the essentials of Google Cloud Run, helping you leverage its capabilities to streamline your deployment process.
Google Cloud Run is a fully managed compute platform that automatically scales your stateless containers. Built on top of Knative, it allows you to run containers in a serverless environment, meaning you don't have to worry about infrastructure management. Just deploy your container, and Cloud Run takes care of the rest.
Start by writing a simple application. For demonstration purposes, we'll use a basic Node.js app:
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello, Google Cloud Run!');
});
const port = process.env.PORT || 8080;
app.listen(port, () => {
console.log(`App listening on port ${port}`);
});
Create a Dockerfile
for your application:
FROM node:14
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
ENV PORT 8080
EXPOSE 8080
CMD [ "node", "index.js" ]
Build your Docker image:
docker build -t gcr.io/your-project-id/your-app .
Run your container locally to test:
docker run -p 8080:8080 gcr.io/your-project-id/your-app
Visit http://localhost:8080
to ensure it's working.
Authenticate with Google Cloud:
gcloud auth login
Set your project ID:
gcloud config set project your-project-id
Push your Docker image to Google Container Registry:
docker push gcr.io/your-project-id/your-app
Deploy your container to Cloud Run:
gcloud run deploy your-app \
--image gcr.io/your-project-id/your-app \
--platform managed \
--region us-central1 \
--allow-unauthenticated
After deployment, Google Cloud Run will provide a URL for your service. Visit the URL to see your application live.
Google Cloud Run seamlessly integrates with other GCP services:
Google Cloud Run simplifies the deployment of containerized applications by abstracting away infrastructure management. Its serverless nature, coupled with automatic scaling and cost-effectiveness, makes it an excellent choice for modern application development.
Whether you're a seasoned developer or just starting, Cloud Run provides the tools you need to deploy applications quickly and efficiently. Start leveraging Google Cloud Run today and take your application deployment to the next level.
Samuel Fajreldines is a specialist in JavaScript and TypeScript ecosystems, expert in DevOps and Serverless Architecture, and proficient in PHP frameworks.
About Me
Since I was a child, I've always wanted to be an inventor. As I grew up, I specialized in information systems, an area which I fell in love with and live around it. I am a full-stack developer and work a lot with devops, i.e., I'm a kind of "jack-of-all-trades" in IT. Wherever there is something cool or new, you'll find me exploring and learning... I am passionate about life, family, and sports. I believe that true happiness can only be achieved by balancing these pillars. I am always looking for new challenges and learning opportunities, and would love to connect with other technology professionals to explore possibilities for collaboration. If you are looking for a dedicated and committed full-stack developer with a passion for excellence, please feel free to contact me. It would be a pleasure to talk with you! |
SecurityScoreCard
Nov. 2023 - Present
New York, United States
Senior Software Engineer
I joined SecurityScorecard, a leading organization with over 400 employees, as a Senior Full Stack Software Engineer. My role spans across developing new systems, maintaining and refactoring legacy solutions, and ensuring they meet the company's high standards of performance, scalability, and reliability.
I work across the entire stack, contributing to both frontend and backend development while also collaborating directly on infrastructure-related tasks, leveraging cloud computing technologies to optimize and scale our systems. This broad scope of responsibilities allows me to ensure seamless integration between user-facing applications and underlying systems architecture.
Additionally, I collaborate closely with diverse teams across the organization, aligning technical implementation with strategic business objectives. Through my work, I aim to deliver innovative and robust solutions that enhance SecurityScorecard's offerings and support its mission to provide world-class cybersecurity insights.
Technologies Used:
Node.js Terraform React Typescript AWS Playwright and Cypress