Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #2

Merged
merged 4 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading