-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a way to run the personnel-sync locally, for dev and testing
To do so... 1. Run `docker compose run --rm externalgroupssync bash` 2. In that, run `~/.aws-lambda-rie/aws-lambda-rie ./personnel-sync` 3. In other terminal (on your host), run another `docker compose exec externalgroupssync bash` 4. In that, run `curl -XPOST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{}'` each time you want to invoke the personnel-sync.
- Loading branch information
1 parent
e6557b7
commit 2a02afe
Showing
3 changed files
with
27 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
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,18 @@ | ||
FROM ubuntu:24.04 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
RUN mkdir -p ~/.aws-lambda-rie | ||
RUN curl -Lo ~/.aws-lambda-rie/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie | ||
RUN chmod +x ~/.aws-lambda-rie/aws-lambda-rie | ||
|
||
RUN curl --location -o personnel-sync.tar.gz https://github.com/silinternational/personnel-sync/releases/download/v6.8.3/personnel-sync_6.8.3_linux_amd64.tar.gz | ||
RUN tar -xzf personnel-sync.tar.gz | ||
RUN chmod +x personnel-sync | ||
|
||
CMD ["~/.aws-lambda-rie/aws-lambda-rie", "./personnel-sync"] |