added dockerfile for PyZipline
Some checks failed
Docker Build / Build SeaCogs (push) Successful in 5s
Docker Build / Build PyZipline (push) Failing after 11s

This commit is contained in:
Seaswimmer 2024-01-15 05:20:39 -05:00
parent 1ece66e97a
commit c805c95537
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE
2 changed files with 70 additions and 2 deletions

View file

@ -6,7 +6,7 @@ on:
manual: manual:
jobs: jobs:
Build: Build SeaCogs:
runs-on: docker runs-on: docker
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
steps: steps:
@ -20,10 +20,32 @@ jobs:
registry: coastalcommits.com registry: coastalcommits.com
username: SeaswimmerTheFsh username: SeaswimmerTheFsh
password: ${{ secrets.COASTALCOMMITSTOKEN }} password: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Build and push SeaCogs Docker image - name: Build and push Docker image
uses: actions/docker-build-push@v5 uses: actions/docker-build-push@v5
with: with:
context: . context: .
file: ./SeaCogs/Dockerfile file: ./SeaCogs/Dockerfile
push: true push: true
tags: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest tags: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
Build PyZipline:
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Login to CoastalCommits
uses: actions/docker-login@v3
with:
registry: coastalcommits.com
username: SeaswimmerTheFsh
password: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Build and push Docker image
uses: actions/docker-build-push@v5
with:
context: .
file: ./PyZipline/Dockerfile
push: true
tags: coastalcommits.com/seaswimmerthefsh/actionscontainers-pyzipline:latest

46
PyZipline/Dockerfile Normal file
View file

@ -0,0 +1,46 @@
FROM catthehacker/ubuntu:act-latest
# Install APT packages
RUN apt-get update
RUN apt-get install -y \
libcairo2-dev \
libfreetype6-dev \
libffi-dev \
libjpeg-dev \
libpng-dev \
libz-dev \
pngquant
# Install Nodejs
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
node --version
# Install Meli CLI
RUN npm install -g @getmeli/cli@1.2.0
# Set up deadsnakes PPA
RUN add-apt-repository ppa:deadsnakes/ppa -y
# Install Python 3.11
RUN apt-get install -y \
python3.12 \
python3.12-dev \
python3.12-venv
RUN python3.12 --version
# Install Poetry
RUN python3.12 -m pip install poetry
RUN poetry config virtualenvs.create false
# Install dependencies
RUN curl -sSL https://coastalcommits.com/SeaswimmerTheFsh/PyZipline/raw/branch/main/pyproject.toml -o pyproject.toml
RUN curl -sSL https://coastalcommits.com/SeaswimmerTheFsh/PyZipline/raw/branch/main/poetry.lock -o poetry.lock
RUN poetry install --with dev --with docs --no-root