Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k1low/centve
Virtual environments on CentOS using anyenv
https://github.com/k1low/centve
centos docker-image dockerfile perl php ruby
Last synced: 22 days ago
JSON representation
Virtual environments on CentOS using anyenv
- Host: GitHub
- URL: https://github.com/k1low/centve
- Owner: k1LoW
- Created: 2021-03-23T16:24:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-15T01:27:50.000Z (over 3 years ago)
- Last Synced: 2024-10-25T05:03:39.616Z (2 months ago)
- Topics: centos, docker-image, dockerfile, perl, php, ruby
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# centve
Virtual environments on CentOS using [anyenv](https://github.com/anyenv/anyenv)
## Usage
### Use as `container:` on GitHub Actions
``` yaml
name: CIon:
push:jobs:
test:
name: Test using Ruby
runs-on: ubuntu-latest
container: ghcr.io/k1low/centve:latest
steps:
- name: Initialize anyenv and setup Ruby
run: |
anyenv-init
rbenv global 2.7.2- name: Use Ruby
run: |
ruby -v
```### Use as `FROM` in Dockerfile
**Ruby 3.0.0 on CentOS7**
``` dockerfile
FROM ghcr.io/k1low/centve:baseENV RUBY_VERSION=3.0.0
RUN rbenv install $RUBY_VERSION && rbenv global $RUBY_VERSION
```**Ruby 2.7.2 and PHP 5.6.40 on CentOS7**
``` dockerfile
FROM ghcr.io/k1low/centve:baseENV RUBY_VERSION=2.7.2
ENV PHP_VERSION=5.6.40RUN rbenv install $RUBY_VERSION && rbenv global $RUBY_VERSION
RUN phpenv install $PHP_VERSION && phpenv global $PHP_VERSION
```## Language and Runtime
| Tag | Base image | Ruby | Perl | PHP |
| --- | --- | --- | --- | --- |
| `base` `7-base` | `centos:7` | - | - | - |
| `default` `7-default` `latest` | `centos:7` | `3.0` `2.7` | `5.32` | `8` `7` `5` |