https://github.com/tlrasor/ubuntu-truffleruby
docker powered ubuntu + truffleruby
https://github.com/tlrasor/ubuntu-truffleruby
docker dockerfile rbenv ruby truffleruby ubuntu
Last synced: 2 months ago
JSON representation
docker powered ubuntu + truffleruby
- Host: GitHub
- URL: https://github.com/tlrasor/ubuntu-truffleruby
- Owner: tlrasor
- Created: 2019-10-10T04:36:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T04:44:16.000Z (over 6 years ago)
- Last Synced: 2025-06-08T02:08:09.062Z (about 1 year ago)
- Topics: docker, dockerfile, rbenv, ruby, truffleruby, ubuntu
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
ubuntu-truffleruby
------
The one-stop truffleruby docker image, partner.

# Features:
* ubuntu 18.04 base image
* non-root `appuser` with rbenv installed in profile
* truffleruby installed via rbenv
## Installation
```bash
docker pull tlrasor/ubuntu-truffleruby
```
## Quickness
```bash
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.
## Suggested Usage
Use this image as a base image and copy in your app to the home dir
```Dockerfile
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](https://github.com/rbenv/rbenv/blob/master/README.md) for how to install rubies
* See [truffleruby documentation](https://github.com/oracle/truffleruby/blob/master/README.md) for truffle knowledge
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## License
[Unlicense](https://unlicense.org/)
## Contributors
- [Travis Rasor](https://github.com/tlrasor) - creator and maintainer