Skip to content

Commit

Permalink
Добавил контейнер с mongo5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkarataev committed Oct 30, 2023
1 parent c816c46 commit 998ad04
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
- master
tags:
- 'v*.*.*'
permissions:
packages: write
jobs:
docker-build-and-publish:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@master
- name: Set env
Expand All @@ -27,11 +31,12 @@ jobs:
else
echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
fi
- name: Publish tag to registry
env:
IMAGE: ${{ github.repository }}
GITHUB_USER: ${{ secrets.GH_USER }}
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ github.token }}
run: |
image=`echo -n "${IMAGE}" | tr 'A-Z' 'a-z'`
echo "${image}:${RELEASE_VERSION}"
Expand Down
23 changes: 12 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ RUN apt-get update && \
mysql-client \
redis-tools \
nodejs \
gnupg && \
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list && \
curl https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - && \
apt-get update && \
apt-get --no-install-recommends -y install mongodb-org-shell && \
apt-get autoclean && \
apt-get clean && \

rm -rf /var/lib/apt/lists/* && \
rm -fv /bin/sh && \
ln -s -v /bin/bash /bin/sh
gnupg \
libcurl4 \
openssl \
liblzma5 \
wget && \
wget https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-shell_5.0.22_amd64.deb && \
dpkg -i mongodb-org-shell_5.0.22_amd64.deb && \
apt-get autoclean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -fv /bin/sh && \
ln -s -v /bin/bash /bin/sh

COPY ./.bash_profile /root/
COPY ./entrypoint.sh /
Expand Down

0 comments on commit 998ad04

Please sign in to comment.