mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
added pkgconf
This commit is contained in:
parent
710b6b4648
commit
c56641d8dc
3 changed files with 23 additions and 1 deletions
|
|
@ -102,6 +102,28 @@ run the following command with your aws access token exported into your environm
|
||||||
docker run -p 8000:8000 -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION fastapi-local-image:latest
|
docker run -p 8000:8000 -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION fastapi-local-image:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Emulating the lambda locally
|
||||||
|
|
||||||
|
I have set up a script called `run_local_lambda.sh` which will allow you to emulate the lambda locally.
|
||||||
|
You need to have a .env file with the necessary environment variables at backend/env and also
|
||||||
|
and aws credentials file at ~/.aws/credentials, locally.
|
||||||
|
|
||||||
|
To run this, firstly run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
chmod +x run_local_lambda.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Now you can run the script with
|
||||||
|
|
||||||
|
```
|
||||||
|
./run_lambda_local.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run the script with the following command:
|
||||||
|
|
||||||
|
```commandline
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
To run tests, run the following command from the root of the project directory:
|
To run tests, run the following command from the root of the project directory:
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ WORKDIR /var/task/Model
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y make gcc g++ gfortran libgfortran-9-dev liblapack-dev libamd2 libcholmod3 \
|
RUN apt-get update && apt-get install -y make gcc g++ gfortran libgfortran-9-dev liblapack-dev libamd2 libcholmod3 \
|
||||||
libmetis-dev libsuitesparse-dev libnauty2-dev git wget
|
libmetis-dev libsuitesparse-dev libnauty2-dev git wget pkgconf
|
||||||
|
|
||||||
# Compile CBC for arm64
|
# Compile CBC for arm64
|
||||||
RUN mkdir -p ~/build && cd ~/build \
|
RUN mkdir -p ~/build && cd ~/build \
|
||||||
|
|
|
||||||
0
run_lambda_local.sh
Normal file → Executable file
0
run_lambda_local.sh
Normal file → Executable file
Loading…
Add table
Reference in a new issue