Skip to content

Commit

Permalink
Merge branch 'NDCUM-1315' of https://github.com/nsidc/lambda-builder
Browse files Browse the repository at this point in the history
…into NDCUM-1315
  • Loading branch information
GitHub Actions committed Aug 30, 2024
2 parents 81cedd3 + 1116ad5 commit 7995ba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ docker build -t ${DOCKER_IMAGE_TAG} "${BUILDER_DIR}" -f "${DOCKERFILE}"

# run the build script on the docker container
docker run \
--user root \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "${PROJECT_DIR}":"${PROJECT_DIR}" \
-e PROJECT_DIR="${PROJECT_DIR}" \
Expand Down
1 change: 1 addition & 0 deletions sam_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ poetry self add poetry-plugin-export

REQUIREMENTS_FILE="${PROJECT_DIR}/src/requirements.txt"
if [ ! -f "${REQUIREMENTS_FILE}" ]; then
echo "No requirements file found, generating one..."
cd "${PROJECT_DIR}"
poetry export -f requirements.txt --output "${REQUIREMENTS_FILE}"
cd -
Expand Down

0 comments on commit 7995ba2

Please sign in to comment.