The one-stop truffleruby docker image, partner.
- ubuntu 18.04 base image
- non-root
appuser
with rbenv installed in profile - truffleruby installed via rbenv
docker pull tlrasor/ubuntu-truffleruby
docker run -it tlrasor/ubuntu-truffleruby ruby
You will be placed into the home directory of the appuser. This is a safe place to put apps without having to deal with root permissions.
Use this image as a base image and copy in your app to the home dir
FROM tlrasor/ubuntu-truffleruby
COPY . $HOME/app
WORKDIR $HOME/app
# need root for chown here, might not be necessary depending on your use case
USER root
RUN chown -R appuser:appgroup $HOME/app
USER appuser
RUN echo "truffleruby-19.2.0.1" > $HOME/app/.ruby-version
Now your project will run with truffle.
- See rbenv documentation for how to install rubies
- See truffleruby documentation for truffle knowledge
- Fork it (https://github.com/tlrasor/ubuntu-truffleruby/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Travis Rasor - creator and maintainer