-
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.
- Loading branch information
Showing
4 changed files
with
2,217 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 @@ | ||
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM ubuntu:22.04 | ||
COPY ./package.json ./package.json | ||
COPY ./package-lock.json ./package-lock.json | ||
RUN npm ci | ||
COPY ./lib/ ./lib | ||
COPY ./server.js ./server.js | ||
CMD [ "node", "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
export CONTAINER_REPOSITORY_NAME=cr.yandex/crprkhjar1gq4t8h8u0t/brs-extensions-proxy:latest | ||
export SERVERLESS_CONTAINER_ID=bbamc5stve2edro7t455 | ||
export FOLDER_ID=b1gupi6tnkioua1397gl | ||
export SA_ID=aje2oovtau2cioluf9tp | ||
|
||
|
||
docker build -t ${CONTAINER_REPOSITORY_NAME}:latest . ; | ||
docker push ${CONTAINER_REPOSITORY_NAME}:latest; | ||
|
||
yc sls container revisions deploy \ | ||
--folder-id ${FOLDER_ID} \ | ||
--container-id ${SERVERLESS_CONTAINER_ID} \ | ||
--memory 256M \ | ||
--cores 1 \ | ||
--execution-timeout 30s \ | ||
--concurrency 8 \ | ||
--service-account-id ${SA_ID} \ | ||
--image "${CONTAINER_REPOSITORY_NAME}:latest"; |
Oops, something went wrong.