Skip to content

Commit

Permalink
Update Makefile (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 authored Oct 16, 2023
1 parent 5d7df96 commit 8e1c5ab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
8 changes: 6 additions & 2 deletions integrations/sentry/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ define deactivate_virtualenv
fi
endef

.SILENT: install lint run test clean
.SILENT: install lint run test clean install/prod

install:
$(call deactivate_virtualenv) && \
$(call install_poetry) && \
poetry install --with dev

install/prod:
$(call install_poetry) && \
poetry install --without dev --no-root --no-interaction --no-ansi --no-cache

lint:
$(ACTIVATE) && \
$(call run_checks,.)
Expand All @@ -68,4 +72,4 @@ clean:
rm -rf htmlcov
rm -rf .tox/
rm -rf docs/_build
rm -rf dist/
rm -rf dist/
11 changes: 5 additions & 6 deletions integrations/sonarqube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ ENV LIBRDKAFKA_VERSION 1.9.2

WORKDIR /app

RUN apt update && apt install -y wget make g++ libssl-dev autoconf automake libtool curl
RUN wget https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz && \
tar xvzf v${LIBRDKAFKA_VERSION}.tar.gz && \
(cd librdkafka-${LIBRDKAFKA_VERSION}/ && ./configure && make && make install && ldconfig)
RUN apt update && \
apt install -y wget make g++ libssl-dev autoconf automake libtool curl librdkafka-dev && \
apt-get clean

COPY . /app

RUN make install
RUN export POETRY_VIRTUALENVS_CREATE=false && make install/prod && pip cache purge

ENTRYPOINT make run
ENTRYPOINT ocean sail
8 changes: 6 additions & 2 deletions integrations/sonarqube/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ define deactivate_virtualenv
fi
endef

.SILENT: install lint run test clean
.SILENT: install lint run test clean install/prod

install:
$(call deactivate_virtualenv) && \
$(call install_poetry) && \
poetry install --with dev

install/prod:
$(call install_poetry) && \
poetry install --without dev --no-root --no-interaction --no-ansi --no-cache

lint:
$(ACTIVATE) && \
$(call run_checks,.)
Expand All @@ -68,4 +72,4 @@ clean:
rm -rf htmlcov
rm -rf .tox/
rm -rf docs/_build
rm -rf dist/
rm -rf dist/

0 comments on commit 8e1c5ab

Please sign in to comment.