-
-
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.
- Loading branch information
Showing
65 changed files
with
2,162 additions
and
816 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,41 @@ | ||
# Use an official Python runtime based on Debian 12 "bookworm" as a parent image. | ||
FROM python:3.12-slim-bookworm | ||
|
||
# Install system packages required by Wagtail and Django. | ||
RUN apt-get update --yes --quiet | ||
RUN apt-get install --yes --quiet --no-install-recommends build-essential | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy poetry files and get ready to install package | ||
WORKDIR /opt | ||
COPY poetry.lock poetry.lock | ||
COPY pyproject.toml pyproject.toml | ||
|
||
# Ask poetry to install all packages including the app | ||
# not in virtual machine as we are in a container | ||
# In prodduction add --no-dev to poetry installation | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install poetry | ||
RUN poetry config virtualenvs.create false | ||
RUN poetry install --no-root | ||
|
||
# Build and install the package | ||
COPY gallagher gallagher | ||
# README is reference by the package | ||
COPY README.md README.md | ||
RUN poetry build | ||
|
||
# Install the package | ||
RUN pip3 install dist/*.whl | ||
|
||
# Remove the source | ||
RUN rm -rf gallagher | ||
RUN rm -rf dist | ||
RUN rm README.md | ||
|
||
# Copy the files in the src directory which is the app package | ||
# and the dependency matrix dedescribed by pyproject.toml | ||
WORKDIR /opt/gallagher | ||
|
||
# Run the CLI | ||
ENTRYPOINT [ "gala" ] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Gallagher Python Toolkit Assets | ||
|
||
This directory contains assets for the Gallagher Python Toolkit project. There are two types of files found in here: | ||
|
||
- Screenshots from the Command Centre application | ||
- Branding assets for the project | ||
|
||
The screenshots are used for documentation purposes and are copyright of Gallagher Group Limited. | ||
|
||
The branding assets are used for the project's logo and are copyright of the project's maintainers. | ||
|
||
> [!WARNING] | ||
> Please seek appropriate permission before referencing or reusing any of the assets in this directory. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.