Open bradleyjames opened 7 years ago
On utility script topic I'm thinking of releasing a new project. All it would contain is the below bash script. The reason being that with multiple gemsets, as is the norm these days, if we relied on a ruby gem to install the utility script it would only be available when that gemset is enabled. This is just messy. So I'm thinking of creating an npm module instead with the guidance to install globally.
The below script allows for the setting of the version, defaulting to latest. The user could alias this to rumbda
for a transparent migration to docker.
#!/bin/bash
#
# If wanting a specific version set VERSION
#
# Ex:
# VERSION=1.1 rumbda-docker help
if [ -z "$VERSION" ]; then
# Default to the latest
VERSION=latest
fi
docker run --rm -it rumbda:$VERSION "$@"
TODO:
rumbda-docker
to wrap docker callsThis creates a Docker image that encapsulates rumbda's dependencies to reduce the burden of running rumbda (i.e. ruby 2.2.2 and specific bundler version). It unfortunately results in a large image.
To build rumbda:
To run rumbda: