Skip to content

Commit

Permalink
fix: Add binary to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Oct 12, 2024
1 parent 0a2ccba commit 34832cd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions skyetel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN rm -rf vendor/bundle/ruby/*/cache/ && find vendor/ -name "*.o" -delete && fi

COPY --link app.rb ${LAMBDA_TASK_ROOT}/
COPY --link app/ ${LAMBDA_TASK_ROOT}/app/
COPY --link bin/ ${LAMBDA_TASK_ROOT}/bin/
COPY --link --exclude=*.key --exclude=*.sample.csv config/ ${LAMBDA_TASK_ROOT}/config/
COPY --link lib/ ${LAMBDA_TASK_ROOT}/lib/

Expand Down
1 change: 0 additions & 1 deletion skyetel/bin/somleng-skyetel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require "bundler/setup"
require "optparse"
require_relative "../config/application"
require "pry"

class OptionsParser
class MissingArgumentError < StandardError; end
Expand Down
2 changes: 1 addition & 1 deletion skyetel/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ The image is ready to be deployed to AWS Lambda and can be triggered by a schedu
If you're not using Lambda, you can run your image with the following command:

```bash
docker run --platform linux/amd64 --rm -it -e APP_ENV=production -e SOMLENG_API_KEY='somleng-carrier-api-key' SOMLENG_API_KEY='somleng-carrier-api-key' -e SKYETEL_USERNAME='skyetel-username' -e SKYETEL_PASSWORD='skyetel-password' -e MIN_STOCK=5 -e MAX_STOCK=10 --entrypoint ./bin/somleng-skyetel somleng-skyetel:example
docker run --platform linux/amd64 --rm -it -e APP_ENV=production -e SOMLENG_API_KEY='somleng-carrier-api-key' -e SOMLENG_API_KEY='somleng-carrier-api-key' -e SKYETEL_USERNAME='skyetel-username' -e SKYETEL_PASSWORD='skyetel-password' -e MIN_STOCK=5 -e MAX_STOCK=10 --entrypoint ./bin/somleng-skyetel somleng-skyetel:example
```

0 comments on commit 34832cd

Please sign in to comment.