Merge pull request #1 from dss16694/main

Added docker-image and export GIT_PYTHON_REFRESH=quiet
This commit is contained in:
Herman Semenov 2023-03-06 18:39:05 +00:00 committed by GitHub
commit 05ccb5aad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

18
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

View File

@ -23,7 +23,8 @@ RUN patch -p0 < /no_avx_patch.diff
ARG NUM_JOBS=
RUN python3 -m pip install requirements_parser && \
RUN export GIT_PYTHON_REFRESH=quiet && \
python3 -m pip install requirements_parser && \
python3 -m pip install -r etc/pip/compile-requirements.txt && \
if [ "${NUM_JOBS}" -gt 0 ]; then export JOBS_ARG="-j ${NUM_JOBS}"; fi && \
python3 buildscripts/scons.py install-servers MONGO_VERSION="${MONGO_VERSION}" --release --disable-warnings-as-errors ${JOBS_ARG} && \