This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
-
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.
update terraform to provision endpoints
- Loading branch information
vggonzal
authored and
vggonzal
committed
Aug 5, 2023
1 parent
6d51916
commit d56204d
Showing
6 changed files
with
67 additions
and
62 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 @@ | ||
node_modules |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
FROM public.ecr.aws/lambda/python:3.8 | ||
FROM node:10 | ||
LABEL org.opencontainers.image.source="https://github.com/podaac/hydrocron-api" | ||
RUN npm install forever -g | ||
|
||
COPY $SOURCE . | ||
RUN pip3 install -t /var/task --force ./$SOURCE | ||
ENV project_dir /project | ||
ENV app_dir ${project_dir}/app | ||
ENV config_dir ${project_dir}/config | ||
|
||
# Run the lambda | ||
CMD ["/var/task/podaac/controllers/fts_controller.lambda_handler"] | ||
RUN mkdir ${project_dir} ${app_dir} ${config_dir} | ||
WORKDIR ${app_dir} | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
|
||
CMD ${app_dir}/docker/docker-start-command |
This file was deleted.
Oops, something went wrong.
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
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,27 @@ | ||
#!/bin/bash | ||
|
||
outside_config_dir=/config | ||
work_dir=/work | ||
app_dir=/app | ||
|
||
if [ -e "/config/server.crt" ]; then | ||
echo "server.crt is here" | ||
cp /config/server.crt /project/config/server.crt | ||
fi; | ||
|
||
if [ -e "/config/server.key" ]; then | ||
echo "server.key is here" | ||
cp /config/server.key /project/config/server.key | ||
fi; | ||
|
||
if [ -e "/config/config.js" ]; then | ||
echo "config.js is here" | ||
cp /config/config.js /project/config/config.js | ||
fi; | ||
|
||
if [ -e "/config/private-config.js" ]; then | ||
echo "private-config.js is here" | ||
cp /config/private-config.js /project/config/private-config.js | ||
fi; | ||
|
||
forever server/server.js |
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