Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
37f75ff
Add GitHub Actions workflow for pulling code
k-marcello03 Oct 17, 2025
57c2bb4
test
k-marcello03 Oct 17, 2025
a9a819b
Add files via upload
k-marcello03 Oct 20, 2025
5f24125
Create Dockerfile for Alpine with bash and curl
k-marcello03 Oct 20, 2025
6f2f2f6
Add docker-build workflow configuration
k-marcello03 Oct 20, 2025
38cf2dc
Update Docker workflow to build and push image
k-marcello03 Oct 20, 2025
8a27d9b
Update Docker workflow for Docker Hub integration
k-marcello03 Oct 20, 2025
02f3ec1
Change default branch from 'main' to 'master'
k-marcello03 Oct 20, 2025
83d1624
Delete alpine-minirootfs-3.22.2-x86_64.tar.gz
k-marcello03 Oct 20, 2025
185086b
Add CI workflow for pull requests
k-marcello03 Oct 20, 2025
bfe7509
Merge pull request #1 from k-marcello03/k-marcello03-patch-1
k-marcello03 Oct 20, 2025
bee2567
Update test output message in CI workflow
k-marcello03 Oct 20, 2025
0a8d30a
Merge pull request #2 from k-marcello03/k-marcello03-patch-2
k-marcello03 Oct 20, 2025
49f70c7
Rename dockerfile to Dockerfile
k-marcello03 Oct 20, 2025
be7b6e6
Merge pull request #3 from k-marcello03/k-marcello03-patch-3
k-marcello03 Oct 20, 2025
d949abe
Configure Dockerfile for Flask application
k-marcello03 Oct 20, 2025
3d83de4
Fix COPY command syntax in Dockerfile
k-marcello03 Oct 20, 2025
7beb109
Change base image to Python 3.11-alpine
k-marcello03 Oct 20, 2025
99ab861
Update Dockerfile to include additional build dependencies
k-marcello03 Oct 20, 2025
e8a6da5
Switch from Flask to Django with Gunicorn
k-marcello03 Oct 20, 2025
f8e9a9a
Update Dockerfile
k-marcello03 Oct 20, 2025
9604ae7
Change base image from Python 3.11 to 3.1
k-marcello03 Oct 20, 2025
e716016
Update Dockerfile
k-marcello03 Oct 20, 2025
eaaedf2
Refactor Dockerfile for improved dependencies and entrypoint
k-marcello03 Oct 20, 2025
333d64d
Remove collectstatic command during build
k-marcello03 Oct 20, 2025
c8495e8
Update Dockerfile
k-marcello03 Oct 21, 2025
1d2648f
Update Dockerfile to install build dependencies
k-marcello03 Oct 21, 2025
412c305
Update ALLOWED_HOSTS for development settings
k-marcello03 Oct 21, 2025
ef76ac8
Update ALLOWED_HOSTS for development settings
k-marcello03 Oct 21, 2025
f57f666
Update ALLOWED_HOSTS to allow all hosts
k-marcello03 Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI on Pull Request

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests
run: |
echo "Tesztelés"
39 changes: 39 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Push Alpine Docker Image

on:
push:
branches: [ master ]
workflow_dispatch:

env:
IMAGE_NAME: alpine-example
REGISTRY: docker.io
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
registry: ${{ env.REGISTRY }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM python:3.8-alpine

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

WORKDIR /app

RUN apk add --no-cache \
gcc \
musl-dev \
python3-dev \
libffi-dev \
openssl-dev \
make

COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000

# Django indítás
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
2 changes: 1 addition & 1 deletion home/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
SECRET_KEY = '-05sgp9!deq=q1nltm@^^2cc+v29i(tyybv3v2t77qi66czazj'
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']

INSTALLED_APPS = [
'django.contrib.admin',
Expand Down
4 changes: 2 additions & 2 deletions home/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .base import *

ALLOWED_HOSTS += ['127.0.0.1']
ALLOWED_HOSTS += ['*']
DEBUG = True

WSGI_APPLICATION = 'home.wsgi.dev.application'
Expand All @@ -16,4 +16,4 @@

CORS_ORIGIN_WHITELIST = (
'http://localhost:3000',
)
)
1 change: 1 addition & 0 deletions teszt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test