Skip to content

Commit 8d36576

Browse files
committed
add arm support
1 parent b185322 commit 8d36576

File tree

6 files changed

+39
-55
lines changed

6 files changed

+39
-55
lines changed

.github/workflows/dockerimage.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
pull_request:
9+
branches:
10+
- master
11+
- develop
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Current branch
19+
uses: actions/checkout@v1
20+
- name: Build Docker Image
21+
run: |
22+
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && make publish
23+
env:
24+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
25+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

Dockerfile-3.6 Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM mongo:3.6
2-
MAINTAINER Ilya Stepanov <[email protected]>
1+
FROM mongo:8.0.3
2+
LABEL org.opencontainers.image.authors="Ilya Stepanov <[email protected]>"
33

44
RUN apt-get update && \
5-
apt-get install -y cron python3 python3-pip && \
5+
apt-get install -y cron python3 python3-pip pipx && \
66
rm -rf /var/lib/apt/lists/*
77

8-
RUN pip3 install awscli
8+
RUN pipx install awscli
99

1010
ADD backup.sh /backup.sh
1111
ADD entrypoint.sh /entrypoint.sh

Dockerfile-4.0

-17
This file was deleted.

Dockerfile-4.2

-17
This file was deleted.

Dockerfile-4.4

-17
This file was deleted.

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version=0.0.1
2+
3+
version:
4+
echo ${version}
5+
6+
build:
7+
docker buildx build --rm -t nellcorp/mongodump:${version} --platform linux/amd64,linux/arm64 .
8+
9+
publish:
10+
docker buildx build --rm -t nellcorp/mongodump:${version} --platform linux/amd64,linux/arm64 --push .

0 commit comments

Comments
 (0)