Skip to content

Commit

Permalink
Merge pull request #2 from Geode-solutions/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
JulienChampagnol authored Mar 27, 2024
2 parents 92a5598 + 926d205 commit 50a7647
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
requirements.in
.github
.gitignore
README.md
.env
11 changes: 11 additions & 0 deletions .github/workflows/Branch-protection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check branch origin

on:
pull_request:

jobs:
check-branch-protection:
uses: Geode-solutions/actions/.github/workflows/branch-protection.yml@master
with:
branch_from: 'next'
branch_to: 'master'
12 changes: 12 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Docker Image CD
on:
push:
branches: [ master, next ]
jobs:
docker-build-squash-push:
uses: Geode-solutions/actions/.github/workflows/docker-build-squash-push.yml@master
with:
image_name: 'website-viewer'
tag: ${{ github.ref_name }}
secrets:
TOKEN: ${{secrets.GITHUB_TOKEN}}
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.9-slim

WORKDIR /app

COPY . .
RUN pip3 install --user -r requirements.txt && pip3 cache purge
RUN pip3 install https://www.vtk.org/files/release/9.3/vtk_osmesa-9.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ENV PYTHONPATH="/usr/local:$PYTHONPATH"
ENV PYTHON_ENV="prod"

CMD python app.py

EXPOSE 1234
11 changes: 11 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from opengeodeweb_viewer import vtkw_server
import os
import dotenv

basedir = os.path.abspath(os.path.dirname(__file__))
dot_env_path = os.path.join(basedir, "./.env")
if os.path.isfile(dot_env_path):
dotenv.load_dotenv(dot_env_path)

if __name__ == "__main__":
vtkw_server.run_server()
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OpenGeodeWeb-Viewer
66 changes: 66 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile requirements.in
#
aiohttp==3.9.3
# via
# opengeodeweb-viewer
# wslink
aiosignal==1.3.1
# via
# aiohttp
# opengeodeweb-viewer
async-timeout==4.0.3
# via
# aiohttp
# opengeodeweb-viewer
attrs==23.2.0
# via
# aiohttp
# jsonschema
# opengeodeweb-viewer
# referencing
frozenlist==1.4.1
# via
# aiohttp
# aiosignal
# opengeodeweb-viewer
idna==3.6
# via
# opengeodeweb-viewer
# yarl
jsonschema==4.21.1
# via opengeodeweb-viewer
jsonschema-specifications==2023.12.1
# via
# jsonschema
# opengeodeweb-viewer
multidict==6.0.5
# via
# aiohttp
# opengeodeweb-viewer
# yarl
opengeodeweb-viewer==0.1.1
# via -r requirements.in
python-dotenv==1.0.1
# via opengeodeweb-viewer
referencing==0.33.0
# via
# jsonschema
# jsonschema-specifications
# opengeodeweb-viewer
rpds-py==0.18.0
# via
# jsonschema
# opengeodeweb-viewer
# referencing
websocket-client==1.7.0
# via opengeodeweb-viewer
wslink==1.12.4
# via opengeodeweb-viewer
yarl==1.9.4
# via
# aiohttp
# opengeodeweb-viewer

0 comments on commit 50a7647

Please sign in to comment.