Skip to content

Commit

Permalink
rm redundant 'function/bb.edn' after copying whole 'function' dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes committed Nov 6, 2023
1 parent f193866 commit 5761fb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ All tests run in CI with Github Actions. Some commands link:.github/workflows/fa

=== Unit tests

Run locally the unit tests for `bb` language:
Run locally the unit tests for OpenFaaS Function template `bb` language.

The requirement is that babashka (`bb`) is https://github.com/babashka/babashka#installation[installed].

[source, bash]
----
cd template/bb
Expand Down
9 changes: 5 additions & 4 deletions template/bb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ RUN addgroup --system app && adduser --system --ingroup app app && \
USER app
WORKDIR $HOME

COPY index.clj function/bb.edn ./
COPY lib ./
COPY function function
COPY --chown=app:app index.clj function/bb.edn ./
COPY --chown=app:app lib ./
COPY --chown=app:app function function

RUN bb --deps-root function prepare && bb --deps-root function print-deps
RUN rm function/bb.edn && \
bb --deps-root function prepare && bb --deps-root function print-deps

ENV mode="http"
ENV upstream_url="http://127.0.0.1:8082"
Expand Down

0 comments on commit 5761fb3

Please sign in to comment.