Comments (4)
service: use-docker-file-with-environment
plugins:
- serverless-ruby-layer
custom:
rubyLayer:
use_docker: true
docker_file: Dockerfile
environment:
- GH_PACKAGE_TOKEN: ${param:gh_package_token}
The parameter has to be configured in this format - GH_PACKAGE_TOKEN: ${param:gh_package_token}
from serverless-ruby-layer.
I verified this example,
https://github.com/navarasu/serverless-ruby-layer/tree/master/examples/use-docker-file-with-environment
by mentioning the params.
service: use-docker-file-with-environment
plugins:
- serverless-ruby-layer
custom:
rubyLayer:
use_docker: true
docker_file: Dockerfile
environment:
- USE_HTTPARTY
- NOKOGIRI_VERSION=${param:version}
provider:
name: aws
runtime: ruby3.2
functions:
hello:
handler: handler.hello
Passed the passed the version
sls deploy --param="version=1.13.10"
It works 👍🏼
from serverless-ruby-layer.
@navarasu can you please take a look for this bug? It's stopped work, because I can't sent token to Dockerfile. Thank you!
from serverless-ruby-layer.
@navarasu thank you!
from serverless-ruby-layer.
Related Issues (20)
- Provide option to create layer for specific gem groups HOT 3
- Deprecated warnings are appearing. HOT 3
- The `use_docker` example fails on nokogiri install HOT 6
- Added test case for the pending case to improve the test coverage
- Could not find *gem* in any of the sources w/t require "bundler/setup" HOT 10
- Building via docker on GitHub actions? HOT 3
- Trouble deploying `pg` due to `pg_ext.so` HOT 4
- Docker build doesn't respect `Gemfile.lock` HOT 3
- Add ignore_gemfile_lock option to ignore Gemfile.lock while building gem layer
- Ability to pass build args to a Docker build
- ActiveSupport cache strategies are excluded from gemLayer.zip
- Proposal to speed up repeated Docker based deploys HOT 1
- Release 1.6.0 Milestone HOT 7
- Docker command not found when run on Github Actions HOT 1
- Error while adding local path in Gemfile
- Clean up and test env pass through & build args with single parameter
- Update all examples from ruby 2.5 to 2.7 (as ruby 2.5 is not supported)
- use_docker: false doesn't work as expected
- Support for Ruby 3.2 Runtime HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-ruby-layer.