Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3323e80
logical backup
deepak7340 Aug 8, 2023
11681dd
removed the old ci
deepak7340 Aug 8, 2023
393145d
removed the old ci
deepak7340 Aug 8, 2023
ae8bed0
working with new CI
deepak7340 Aug 8, 2023
877331f
working with new CI
deepak7340 Aug 8, 2023
40c95df
working with new CI
deepak7340 Aug 8, 2023
25826a1
working with new CI
deepak7340 Aug 8, 2023
e7e1435
working with new CI
deepak7340 Aug 8, 2023
188d0e5
working with new CI
deepak7340 Aug 8, 2023
62e5855
working with new CI
deepak7340 Aug 8, 2023
71583e1
working with new CI
deepak7340 Aug 8, 2023
25db67f
working with new CI
deepak7340 Aug 8, 2023
df005e9
working with new CI
deepak7340 Aug 8, 2023
025ff88
working with new CI
deepak7340 Aug 8, 2023
5b70b7a
updted the template
deepak7340 Aug 8, 2023
a15185c
updted the template
deepak7340 Aug 8, 2023
a19e713
updted the template
deepak7340 Aug 8, 2023
876de2f
updted the template
deepak7340 Aug 8, 2023
b949c7c
updted the template
deepak7340 Aug 8, 2023
34c679a
updted the template
deepak7340 Aug 9, 2023
5f538d7
updted the template
deepak7340 Aug 9, 2023
decea84
updted the template
deepak7340 Aug 9, 2023
c4ea2e2
updted the template
deepak7340 Aug 9, 2023
f65e3cc
updted the template
deepak7340 Aug 9, 2023
4ba648f
updated the template
deepak7340 Aug 9, 2023
2b802b8
updted the template
deepak7340 Aug 9, 2023
5e5b124
updted the template
deepak7340 Aug 9, 2023
4f64f7f
updted the template
deepak7340 Aug 9, 2023
6c533da
Testing in master
deepak7340 Aug 9, 2023
ce8423b
Testing in mongotest2
deepak7340 Aug 9, 2023
fd06638
Testing in mongotest2
deepak7340 Aug 9, 2023
38760fd
Testing in mongotest2
deepak7340 Aug 9, 2023
3424809
Testing in mongotest2
deepak7340 Aug 9, 2023
88efe88
Testing in mongotest2
deepak7340 Aug 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/docker-build.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/mongo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build mongodb backup

on:
pull_request:
branches: [ "*" ]
paths: 'mongodb-backup/**'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Generate container metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/deepak7340/mongodb-backup
tags: |
type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }}
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=tag
flavor: |
latest=false

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build & push container image
id: docker_build
uses: docker/build-push-action@v2
with:
file: "./mongodb-backup/Dockerfile"
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}
61 changes: 0 additions & 61 deletions .github/workflows/mongodump-build.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/sealed-secret-build.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/sealed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build backup-sealed-secrets-keys

on:
pull_request:
branches: [ "*" ]
paths: 'backup-sealed-secrets-keys/**'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Generate container metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/deepak7340/backup-sealed-secrets-keys
tags: |
type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }}
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=tag
flavor: |
latest=false

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build & push container image
id: docker_build
uses: docker/build-push-action@v2
with:
file: "./backup-sealed-secrets-keys/Dockerfile"
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}
32 changes: 16 additions & 16 deletions mongodb-backup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
FROM ubuntu:22.04@sha256:965fbcae990b0467ed5657caceaec165018ef44a4d2d46c7cdea80a9dff0d1ea

RUN apt-get -y update && apt-get -y install --no-install-recommends python3 python3-pymongo curl wget awscli gcc musl-dev python3-dev libffi-dev cargo make pip
#RUN apt-get -y update && apt-get -y install --no-install-recommends python3 python3-pymongo curl wget awscli gcc musl-dev python3-dev libffi-dev cargo make pip

RUN wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.6.1.deb -O /tmp/mongodb-tools.deb && \
dpkg -i /tmp/mongodb-tools.deb && \
rm /tmp/mongodb-tools.deb
#RUN wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.6.1.deb -O /tmp/mongodb-tools.deb && \
# dpkg -i /tmp/mongodb-tools.deb && \
# rm /tmp/mongodb-tools.deb

RUN pip install --upgrade pip
RUN pip install azure-cli
RUN mkdir /backup
#RUN pip install --upgrade pip
#RUN pip install azure-cli
RUN mkdir /backup /tiw

ENV S3_PATH=mongodb AWS_DEFAULT_REGION=us-east-1
#ENV S3_PATH=mongodb AWS_DEFAULT_REGION=us-east-1

COPY ./mongodb-backup/script/entrypoint.sh /usr/local/bin/entrypoint
COPY ./mongodb-backup/script/backup.sh /usr/local/bin/backup
COPY ./mongodb-backup/script/mongouri.py /usr/local/bin/mongouri
#COPY ./mongodb-backup/script/entrypoint.sh /usr/local/bin/entrypoint
#COPY ./mongodb-backup/script/backup.sh /usr/local/bin/backup
#COPY ./mongodb-backup/script/mongouri.py /usr/local/bin/mongouri

RUN chmod 775 /usr/local/bin/entrypoint
RUN chmod 775 /usr/local/bin/backup
RUN chmod 775 /usr/local/bin/mongouri
#RUN chmod 775 /usr/local/bin/entrypoint
#RUN chmod 775 /usr/local/bin/backup
#RUN chmod 775 /usr/local/bin/mongouri

VOLUME /backup
#VOLUME /backup

CMD /usr/local/bin/entrypoint
#CMD /usr/local/bin/entrypoint