Skip to content

Commit

Permalink
Merge pull request #28 from chizmw/dockerize
Browse files Browse the repository at this point in the history
add Dockerfile; maybe for AWS Lambda later
  • Loading branch information
chizmw authored Apr 18, 2023
2 parents 1961f97 + e5c4da0 commit 56eb425
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changes/unreleased/Added-20230418-002418.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Added
body: add Dockerfile; maybe for AWS Lambda later
time: 2023-04-18T00:24:18.693135+01:00
custom:
GithubIssue: ""
5 changes: 5 additions & 0 deletions .changes/unreleased/Changed-20230418-003955.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Changed
body: Change name of pre-commit workflow
time: 2023-04-18T00:39:55.253127+01:00
custom:
GithubIssue: ""
5 changes: 5 additions & 0 deletions .changes/unreleased/Changed-20230418-004142.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Changed
body: update astroid (2.15.2 -> 2.15.3)
time: 2023-04-18T00:41:42.731661+01:00
custom:
GithubIssue: ""
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**/README.md'
- '**/CHANGELOG.md'

name: pre-commit
name: Run pre-commit checks

env:
# https://laszlo.cloud/setting-gopath-in-github-actions
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.11

RUN pip3 install --no-cache-dir poetry==1.4.2
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
RUN poetry config virtualenvs.create false

WORKDIR /app

COPY Makefile ./
COPY fonts ./fonts/
COPY gameinfo ./gameinfo/
COPY icons ./icons/
COPY templates ./templates/

COPY pyproject.toml ./

COPY README.md ./
COPY botcpdf ./botcpdf/

RUN poetry install --only main
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ release: fmt lint changelog
@git push --tags

grab-some-scripts:
# make certain we have a scripts directory
@mkdir -p scripts

# Reptiles! Played it. It's fun. It's also a good test of the pdf generation
@curl -Ls -o scripts/Reptiles.json https://botc-scripts.azurewebsites.net/script/140/1.4.1/download
# No Roles Barred - the first "pretty custom script" I saw, that started me on this journey (nometa)
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56eb425

Please sign in to comment.