-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from satisfactorymodding/bork-fixes
2.22.11 - mediaonly forums, fixes, CI improvements
- Loading branch information
Showing
22 changed files
with
704 additions
and
1,185 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
services: | ||
postgres: | ||
image: postgres:14.0-alpine | ||
image: postgres:14-alpine | ||
environment: | ||
POSTGRES_PASSWORD: fred | ||
POSTGRES_USER: fred | ||
|
@@ -14,7 +14,7 @@ services: | |
pgadmin: | ||
depends_on: | ||
- postgres | ||
image: dpage/pgadmin4:6 | ||
image: dpage/pgadmin4:8 | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: '[email protected]' | ||
PGADMIN_DEFAULT_PASSWORD: 'fred' | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
include: | ||
- docker-compose-deps.yml | ||
services: | ||
fred: | ||
depends_on: | ||
|
@@ -16,27 +18,4 @@ services: | |
FRED_SQL_HOST: postgres | ||
FRED_SQL_PORT: 5432 | ||
ports: | ||
- "80:80" | ||
|
||
postgres: | ||
image: postgres:14.0-alpine | ||
environment: | ||
POSTGRES_PASSWORD: fred | ||
POSTGRES_USER: fred | ||
PGDATA: /var/lib/postgresql/data/pgdata | ||
volumes: | ||
- pgdata:/var/lib/postgresql/data/pgdata:z | ||
- ./docker/exampledb.sql:/docker-entrypoint-initdb.d/exampledb.sql | ||
|
||
pgadmin: | ||
depends_on: | ||
- postgres | ||
image: dpage/pgadmin4:6 | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: '[email protected]' | ||
PGADMIN_DEFAULT_PASSWORD: 'fred' | ||
ports: | ||
- "8080:80" | ||
|
||
volumes: | ||
pgdata: | ||
- "80:80" |
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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
FROM python:3.12-alpine AS runtime | ||
FROM alpine AS runtime | ||
#FROM python:3.12-slim AS runtime | ||
|
||
VOLUME /config | ||
WORKDIR /app | ||
|
||
RUN apk update; apk add --no-cache tesseract-ocr-data-eng re2-dev | ||
RUN apk update; apk add --no-cache python3 tesseract-ocr-data-eng re2-dev | ||
#ENV DEBIAN_FRONTEND=noninteractive APT="apt-get -qq" | ||
#RUN $APT update; \ | ||
# $APT install tesseract-ocr; \ | ||
# $APT clean; \ | ||
# rm -rf /var/lib/apt/lists/* | ||
|
||
FROM python:3.12-alpine AS build | ||
FROM alpine AS build | ||
#FROM python:3.12-slim AS build | ||
|
||
WORKDIR /deps | ||
|
||
RUN pip --no-cache-dir install --progress-bar=off "poetry==1.8" | ||
RUN apk update; apk add g++ git re2-dev | ||
COPY pyproject.toml . | ||
COPY poetry.lock . | ||
RUN poetry install -nvvv --only main --no-root | ||
RUN mv $(poetry env info --path) ./venv | ||
#RUN pip --no-cache-dir install --progress-bar=off "poetry==1.8" | ||
RUN apk update | ||
RUN apk add --no-cache g++ git re2-dev poetry python3-dev | ||
COPY pyproject.toml poetry.lock poetry.toml ./ | ||
RUN python -VV | ||
RUN poetry env use $(which python) | ||
RUN poetry install -nvvv --no-root --compile --only main | ||
COPY fred ./fred/ | ||
RUN poetry install -nvvv --only-root --compile | ||
|
||
FROM runtime | ||
|
||
COPY --from=build /deps/venv ./venv | ||
COPY --from=build /deps/.venv ./venv | ||
COPY fred ./fred/ | ||
COPY *.env . | ||
|
||
CMD ./venv/bin/python3 -m fred | ||
RUN pwd | ||
CMD ./venv/bin/python -m fred | ||
Check warning on line 35 in docker/Dockerfile GitHub Actions / build-and-pushJSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals
Check warning on line 35 in docker/Dockerfile GitHub Actions / build-and-pushJSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals
|
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 |
---|---|---|
|
@@ -19,7 +19,6 @@ | |
"FRED_SQL_PASSWORD", | ||
"FRED_SQL_HOST", | ||
"FRED_SQL_PORT", | ||
# "DIALOGFLOW_AUTH", | ||
) | ||
|
||
for var in ENVVARS: | ||
|
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
Oops, something went wrong.