From 35996baa9e92d8eb9cf03c0bc22ac88145784479 Mon Sep 17 00:00:00 2001 From: ahmad-9611 Date: Sun, 14 Dec 2025 23:39:58 +0100 Subject: [PATCH 1/5] Adds the Dockerfile and the pipeline --- .github/workflows/docker-image.yml | 0 Dockerfile | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 .github/workflows/docker-image.yml create mode 100644 Dockerfile diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 000000000..e69de29bb diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..5880d8c54 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:18-alpine +WORKDIR /app +COPY . . +RUN yarn install --production && yarn cache clean +ENTRYPOINT ["node"] +CMD ["src/index.js"] +EXPOSE 3000 From f28b46ed8fbf9f30092d381755cf5d41f547481f Mon Sep 17 00:00:00 2001 From: ahmad-9611 Date: Sun, 14 Dec 2025 23:45:53 +0100 Subject: [PATCH 2/5] Adds the Dockerfile and the pipeline2 --- .github/workflows/docker-image.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e69de29bb..331837ed5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,35 @@ +# .github/workflows/docker-image.yml +name: Docker Image CI +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:latest + ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:${{ github.sha }} \ No newline at end of file From 290ac7898e4beef9f1cf840f538fa9b687202a6d Mon Sep 17 00:00:00 2001 From: ahmad-9611 Date: Sun, 14 Dec 2025 23:54:54 +0100 Subject: [PATCH 3/5] Adds the Dockerfile and the pipeline3 --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 331837ed5..6a59950e2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -31,5 +31,5 @@ jobs: context: . push: true tags: | - ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:latest - ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:${{ github.sha }} \ No newline at end of file + ghcr.io/${{ github.repository_owner }}/getting-started:latest + ghcr.io/${{ github.repository_owner }}/getting-started:${{ github.sha }} \ No newline at end of file From 7181091fb2f1ab9fbe4264259f2fade172f1793b Mon Sep 17 00:00:00 2001 From: ahmad-9611 Date: Thu, 18 Dec 2025 00:44:10 +0100 Subject: [PATCH 4/5] creating aws config file --- Dockerrun.aws.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerrun.aws.json diff --git a/Dockerrun.aws.json b/Dockerrun.aws.json new file mode 100644 index 000000000..8ef2ff7b1 --- /dev/null +++ b/Dockerrun.aws.json @@ -0,0 +1,10 @@ +{ + "AWSEBDDocker runVersion": "1", + "Ports": [ + { + "ContainerPort": "3000" + } + ], + "Logging": "/var/log/node" +} + From c5844ee69c4cd22acee33f7ba24bcf65b69b0868 Mon Sep 17 00:00:00 2001 From: ahmad-9611 Date: Thu, 18 Dec 2025 00:55:18 +0100 Subject: [PATCH 5/5] new changes --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 000000000..e69de29bb