-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[157] Update package manager to poetry
* update poetry install action * update poetry install method * update unit tests pipeline * update makefile test command * update unit test workflow * run unit tests with multiple python versions * cleanup files & update Makefile * update dependency installation with poetry for integration tests * update unit test workflow * update release workflows * update docs * fix typo * remove verbose argument in terraform integration tests * update toolbox image version * fix build command * add supported python versions & doc * update poetry lock file * add support for python 3.11 * update docs
- Loading branch information
1 parent
00cbdd1
commit 6c080b0
Showing
17 changed files
with
2,094 additions
and
1,609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[run] | ||
branch = True | ||
|
||
[report] | ||
show_missing = True | ||
skip_covered = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ LABEL vendor="Binbash Leverage ([email protected])" | |
RUN apk update &&\ | ||
apk add --no-cache bash bash-completion ncurses git curl gcc musl-dev python3 python3-dev py3-pip | ||
|
||
ENV POETRY_VIRTUALENVS_CREATE=false | ||
ENV PATH="${PATH}:/root/.poetry/bin" | ||
|
||
# Install bats from source | ||
RUN git clone https://github.com/bats-core/bats-core.git && ./bats-core/install.sh /usr/local | ||
# Install other bats modules | ||
|
@@ -16,19 +19,16 @@ RUN mkdir /root/.ssh | |
# Needed for git to run propertly | ||
RUN touch /root/.gitconfig | ||
|
||
WORKDIR /leverage | ||
RUN git config --global --add safe.directory /leverage | ||
# Install requirements for running unit tests | ||
COPY ./dev-requirements.txt . | ||
RUN pip install -r dev-requirements.txt | ||
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local POETRY_VERSION=1.8.2 python3 - | ||
|
||
RUN git config --global --add safe.directory /workdir | ||
|
||
# Copying all necessary files to /workdir directory | ||
COPY . /workdir | ||
WORKDIR /workdir | ||
|
||
RUN poetry install --with=dev --with=main | ||
|
||
COPY entrypoint.sh / | ||
# Make script to configure and start docker daemon the default entrypoint | ||
RUN echo $'#!/bin/bash \n\ | ||
# Configure docker daemon to listen through socket \n\ | ||
mkdir /etc/docker \n\ | ||
echo \'{"tls": false, "hosts": ["unix:///var/run/docker.sock"]}\' > /etc/docker/daemon.json\n\ | ||
# Start daemon silently \n\ | ||
dockerd > /dev/null 2>&1 & \n\ | ||
exec "$@" \n' >> /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT [ "/entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.