Skip to content

Commit

Permalink
starting to add support for creating docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Oct 1, 2024
1 parent a258f9c commit b491e4c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci-pipeline__main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ on:

env:
RELEASE_TYPE: 'major'
DOCKER__CONTEXT : "."
DOCKER__FILE : './deploy/docker/osbot-serverless-flows/Dockerfile'
DOCKER_HUB__USERNAME : diniscruz
DOCKER_HUB__TOKEN : ${{ secrets.DOCKER_HUB__TOKEN }}

jobs:

run-unit-tests:
if: False
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -49,5 +54,17 @@ jobs:

- name: publish-to-pypi
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev
#needs:
# - increment-tag
needs:
- increment-tag

publish-to-docker-hub:
name: "Publish to: Docker Hub"
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Deploy to Docker Hub (current version)
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/docker-hub__publish@dev
# needs:
# - wait-for-pypi-publish
12 changes: 12 additions & 0 deletions deploy/docker/osbot-serverless-flows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.12-slim

ARG VERSION=latest
#ARG DOCKER_FOLDER=./deploy/docker/osbot-serverless-flows

RUN echo "going to install version ${VERSION} of osbot-serverless-flows"
RUN pip install osbot_serverless_flows==${VERSION}

WORKDIR /app

#CMD ["python", "-m", "cbr_website_beta"]
CMD ["pip", "list"]
10 changes: 10 additions & 0 deletions deploy/docker/osbot-serverless-flows/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
serverless_flows:
build:
context: ../../..
dockerfile: ./deploy/docker/osbot-serverless-flows/Dockerfile
platform: linux/amd64
container_name: osbot-serverless-flows-web
#ports:
# - "3000:3000"
#entrypoint: ['./start.sh']

0 comments on commit b491e4c

Please sign in to comment.