Compare commits

..

31 Commits

Author SHA1 Message Date
6072f79697 python version avoid vulnerabilities
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m26s
2025-02-03 03:22:55 +00:00
58fa7569ff dd
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m41s
2025-01-06 22:56:50 -05:00
0cdcb2ee40 ll
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m6s
2025-01-06 22:43:25 -05:00
35d02cd885 ff
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m48s
2025-01-06 22:38:02 -05:00
0690858dd6 fdsaa
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m38s
2025-01-06 22:23:18 -05:00
0a8b995cc1 fix typo
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m56s
2025-01-06 22:19:58 -05:00
cdfff2161a hhh 2025-01-06 22:18:53 -05:00
bf62a7c6d0 separate 2025-01-06 22:17:35 -05:00
0eb689cef5 jwt issue
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m5s
2025-01-06 22:11:04 -05:00
514ce1e83b username
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m5s
2025-01-06 21:59:57 -05:00
2db7f7f2e0 oauth
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m7s
2025-01-06 21:47:02 -05:00
75313bcdf3 fix typo
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m5s
2025-01-06 21:10:54 -05:00
cf360643df refactor
Some checks failed
Build and Push Docker Image / build (push) Failing after 25s
2025-01-06 21:08:54 -05:00
c28689fe03 info
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m59s
2025-01-05 23:13:19 -05:00
3817378632 s
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m0s
2025-01-05 23:04:05 -05:00
ff9fde556a fix registry
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m18s
2025-01-05 22:46:59 -05:00
6c1444b6dc test secret
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m13s
2025-01-05 22:22:46 -05:00
c887e64557 fix tag
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m2s
2025-01-05 21:36:45 -05:00
d80ac02e77 fix gitea tag
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m1s
2025-01-05 21:28:19 -05:00
9035fab218 fix variables
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m11s
2025-01-05 21:17:29 -05:00
bc57e3c632 use action instead
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m57s
2025-01-05 21:10:14 -05:00
d9940d045e merge jobs
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m58s
2025-01-05 21:01:50 -05:00
56f275cdb7 Merge branch 'main' of https://git.rehounou.ca/remi/cal_heatmap
Some checks failed
Build and Push Docker Image / build (push) Successful in 2m36s
Build and Push Docker Image / push_to_gitea (push) Failing after 54s
2025-01-03 11:44:39 -05:00
27973ac1a0 fix pip chill issue 2025-01-03 11:43:14 -05:00
408fa3b5ea Update README.md
Some checks failed
Build and Push Docker Image / build (push) Successful in 20m39s
Build and Push Docker Image / push_to_gitea (push) Failing after 5s
2025-01-02 23:10:14 +00:00
96451a01a7 update repo endpoints
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
Build and Push Docker Image / push_to_gitea (push) Has been cancelled
2025-01-02 17:52:44 -05:00
3a2779c4a2 image name
Some checks failed
Build and Push Docker Image / build (push) Failing after 20m38s
Build and Push Docker Image / push_to_gitea (push) Has been skipped
2025-01-02 17:24:17 -05:00
cc9df870a1 devops
Some checks failed
Build and Push Docker Image / build (push) Failing after 24m13s
Build and Push Docker Image / push_to_gitea (push) Has been skipped
2025-01-02 16:51:50 -05:00
833091dd3f add config volume 2025-01-02 01:22:57 -05:00
4568d21ff9 standard app name 2025-01-02 01:16:59 -05:00
7db0b08080 standard app name 2025-01-02 01:16:42 -05:00
7 changed files with 89 additions and 21 deletions

View File

@ -0,0 +1,55 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITEA_SERVER: https://git.rehounou.ca
GITEA_REGISTRY: git.rehounou.ca
GITEA_TOKEN: ${{ secrets.REPO_GITEA_TOKEN }}
PROJECT_NAME: cal_heatmap
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.GITEA_REGISTRY }}
username: ${{ secrets.REPO_USERNAME }}
password: ${{ secrets.REPO_GITEA_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest
${{ secrets.DOCKER_USERNAME }}/cal_heatmap:1.0.0
- name: Build and Push Docker Image
run: |
docker tag ${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest git.rehounou.ca/remi/cal_heatmap:1.0.0
docker push git.rehounou.ca/remi/cal_heatmap:latest
docker push git.rehounou.ca/remi/cal_heatmap:1.0.0

1
.gitignore vendored
View File

@ -133,6 +133,7 @@ venv/
ENV/
env.bak/
venv.bak/
cal_env/
# Spyder project settings
.spyderproject

View File

@ -1,20 +0,0 @@
# Use the official Python image as a base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt /app/requirements.txt
# Install the required packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container
COPY . /app
# Expose the port that Streamlit will run on
EXPOSE 8501
# Command to run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
# Use the official Python image as a base image
FROM python:3-slim
# Set the working directory in the container
WORKDIR /app
# Install pip-chill
RUN pip install --no-cache-dir pip-chill
# Copy the application code into the container
COPY . /app
# Generate requirements.txt with pip-chill
#RUN pip-chill > requirements.txt
# Install the required packages based on the newly created requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Create a directory for the configuration files
RUN mkdir /config
# Expose the port that Streamlit will run on
EXPOSE 8501
# Command to run the Streamlit app
CMD ["python","-m","streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

View File

@ -11,7 +11,7 @@ This project generates interactive yearly activity heatmaps using calendar data
## Prerequisites
- Python 3.9+
- Required Python packages (listed in `requirements.txt`)
- Required Python packages (listed in `requirements.txt`)!
## Installation

View File

6
requirements.txt Normal file
View File

@ -0,0 +1,6 @@
calmap==0.0.11
datetime==5.5
pip-chill==1.0.3
plotly==5.24.1
streamlit==1.41.1
vobject==0.9.9