Skip to content

Commit 63cfe74

Browse files
Update demo service to be compatible with AWS bundler
The lambci docker image updated their bundler version to match AWS, so we need to follow suit. lambci/docker-lambda@5b48a7c#diff-f44c2756eda09ae41c9bc9ff6956aa31
1 parent 9634c86 commit 63cfe74

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,14 @@ yarn test # run the automated test suite
137137
138138
./integration_test.sh # run serverless package on the demo project and observe the results
139139
```
140+
141+
### Troubleshooting the demo_service
142+
143+
* Make sure the version of bundler specified in the demo_service Gemfile.lock
144+
is compatible with the version installed in the lambci/lambda:build-ruby2.5 image.
145+
146+
* Make sure you can invoke the function n in the docker image:
147+
148+
```
149+
./invoke-service.sh
150+
```

__tests__/demo_service/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ DEPENDENCIES
3838
rspec-core
3939

4040
BUNDLED WITH
41-
1.17.3
41+
2.1.4

dev_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
yarn
22
pushd __tests__/demo_service
3-
bundle --standalone --path vendor/bundle
3+
./install-gems.sh
44
yarn
55
popd

integration-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ echo '### 1) EXAMINE PACKAGE'
66
unzip -l .serverless/demo.zip
77
echo
88
echo '### 2) VERIFY FUNCTION CAN LOAD DEPENDENCIES'
9-
serverless invoke local -f hello
9+
./invoke-service.sh

0 commit comments

Comments
 (0)