-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add apprunner configuration file
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: 1.0 | ||
runtime: python311 | ||
build: | ||
commands: | ||
build: | ||
- yum install gcc gcc-c++ cpp sqlite-devel libtiff cmake3 tar wget gzip python3 python3-devel -y | ||
|
||
- wget https://download.osgeo.org/proj/proj-6.1.1.tar.gz | ||
- tar -xvf proj-6.1.1.tar.gz | ||
- cd proj-6.1.1 && ./configure && make && make install | ||
|
||
- wget https://github.com/OSGeo/gdal/releases/download/v3.2.1/gdal-3.2.1.tar.gz | ||
- tar -xvf gdal-3.2.1.tar.gz | ||
- cd gdal-3.2.1 &&./configure --with-proj=/usr/local --with-python && make &&make install | ||
|
||
run: | ||
runtime-version: 3.11 | ||
pre-run: | ||
- echo "Installing dependencies..." | ||
- pip3 install poetry | ||
- poetry config virtualenvs.create false | ||
- poetry install | ||
command: poetry run gunicorn glam_api.wsgi --log-file - | ||
network: | ||
port: 8000 |